All Projects → arl → macdeployqtfix

arl / macdeployqtfix

Licence: MIT license
To bundle a Qt application on Mac OSX, there is macdeployqt. To finish the job there is macdeployqtfix! ✅

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to macdeployqtfix

Wechatdemo
macOS WeChat 仿微信MAC端 QQ NSCollectionView,NSSplitView,ect..
Stars: ✭ 87 (+42.62%)
Mutual labels:  mac-osx
Destroyer
🔮💀🔮 Open-source lossless audio player
Stars: ✭ 125 (+104.92%)
Mutual labels:  mac-osx
Macos Dev Basic
Mac osx 开发基础视频项目工程
Stars: ✭ 171 (+180.33%)
Mutual labels:  mac-osx
Pcapplusplus
PcapPlusPlus is a multiplatform C++ library for capturing, parsing and crafting of network packets. It is designed to be efficient, powerful and easy to use. It provides C++ wrappers for the most popular packet processing engines such as libpcap, WinPcap, DPDK and PF_RING.
Stars: ✭ 1,322 (+2067.21%)
Mutual labels:  mac-osx
Shoes4
Shoes 4 : the next version of Shoes
Stars: ✭ 1,509 (+2373.77%)
Mutual labels:  mac-osx
Cmd Key Happy
Swap cmd and alt keys in Terminal (useful when running emacs over ssh)
Stars: ✭ 126 (+106.56%)
Mutual labels:  mac-osx
Atomify
Where Atom meets Spotify (for Macs)
Stars: ✭ 76 (+24.59%)
Mutual labels:  mac-osx
Macos Dark
Dark version of macOS theme
Stars: ✭ 231 (+278.69%)
Mutual labels:  mac-osx
Kaishi
A shell script to convert any Mac OS X or Linux computer into a real development machine
Stars: ✭ 116 (+90.16%)
Mutual labels:  mac-osx
Desktop Google Keep Osx
A Super Simple Desktop Client for Mac OSX Built in Javascript and MacGap
Stars: ✭ 159 (+160.66%)
Mutual labels:  mac-osx
Pprows
It Can Calculate how many lines of code you write on Mac ; 在Mac上计算你写了多少行代码
Stars: ✭ 1,393 (+2183.61%)
Mutual labels:  mac-osx
Armenian Phonetic
Armenian phonetic keyboard layout for Mac OSX. Հայերեն ֆոնետիկ ստեղնաշար Mac OSX-ի համար։
Stars: ✭ 110 (+80.33%)
Mutual labels:  mac-osx
Syncthing Bar
A statusbar for syncthing on Mac OS X
Stars: ✭ 133 (+118.03%)
Mutual labels:  mac-osx
Freecad
This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler. Issues are managed on our own bug tracker at https://www.freecadweb.org/tracker
Stars: ✭ 10,366 (+16893.44%)
Mutual labels:  mac-osx
Animatedgif
A screensaver for Mac OSX / macOS that plays animated GIFs and APNGs
Stars: ✭ 174 (+185.25%)
Mutual labels:  mac-osx
Lipika Ime
Input Method Engine (IME) for Mac OS X with built-in support for all Indic Languages
Stars: ✭ 76 (+24.59%)
Mutual labels:  mac-osx
Pong Command
pong is not ping. pong is CLI game.
Stars: ✭ 121 (+98.36%)
Mutual labels:  mac-osx
Systemtray
Cross-platform SystemTray support for Swing/AWT, GtkStatusIcon, and AppIndicator on Java 8+
Stars: ✭ 253 (+314.75%)
Mutual labels:  mac-osx
Pomodoro
Pomodoro time managment tool build with electron 🍅
Stars: ✭ 204 (+234.43%)
Mutual labels:  mac-osx
Stitch
Python Remote Administration Tool (RAT)
Stars: ✭ 2,018 (+3208.2%)
Mutual labels:  mac-osx

macdeployqtfix

To bundle a Mac OSX application dynamically linked with Qt, there is macdeployqt.
To finish the job there is macdeployqtfix...

What does 'Finish the job' mean?

  • Find dependencies and rpaths of :
    • the main binary of the bundle (i.e your app)
    • the dependencies of your app, and their dependencies, and their... (you got it!)
    • the plugins present in the bundle
  • Copy into the bundle the missing QT libs on which your app depends, that should normally have been taken care of by macdeployqt
  • Fix incorrect permissions
  • Fix incorrect rpaths

Prerequisites

macdeployqtfix relies on otool and install_name_tool being on the PATH

Usage

Use macdeployqt first, then call macdeployqtfix

$ python macdeployqtfix.py -h
usage: macdeployqtfix.py [-h] [-q] [-nl] [-v] exepath qtpath

finish the job started by macdeployqt!
 - find dependencies/rpaths  with otool
 - copy missed dependencies  with cp and mkdir
 - fix missed rpaths         with install_name_tool

 exit codes:
 - 0 : success
 - 1 : error
 

positional arguments:
  exepath             path to the binary depending on Qt
  qtpath              path of Qt libraries used to build the Qt application

optional arguments:
  -h, --help          show this help message and exit
  -q, --quiet         do not create log on standard output
  -nl, --no-log-file  do not create log file './macdeployqtfix.log'
  -v, --verbose       produce more log messages(debug log)

Example usage

Let's say that:

  • your Qt application is named APP
  • the bundle is located at /path/to/bundle/
  • the path to those Qt libs used to build your app is /usr/local/Cellar/qt5/5.5.0/
  1. Run macdeployqt first, as they say in the doc
  2. Finish the job by calling:
python macdeployqtfix.py /path/to/bundle/Contents/MacOS/APP /usr/local/Cellar/qt5/5.5.0/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].