Skip to content

Instantly share code, notes, and snippets.

@hezhao
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save hezhao/09e76411f99b1c417afd to your computer and use it in GitHub Desktop.

Select an option

Save hezhao/09e76411f99b1c417afd to your computer and use it in GitHub Desktop.
Create and deploy Xcode project from Qt 4 .pro file
## http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/
## http://bleepsandpops.com/post/8447919182/adding-the-fmod-api-to-an-xcode-4-project
$ qmake -spec macx-xcode yourprojectname.pro
$ macdeployqt yourappname.app -dmg
## $ otool -L yourappname.app/Contents/MacOS/yourappname
## $ install_name_tool -change /app_dir/lib.dylib @executable_path/../Frameworks/Versions/lib.dylib yourappname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment