SOLVED - Problem deploying on OS X
I have built the release version of my project and used macdeploy to create a bundle. The bundle runs fine on the development machine, but when I deploy to another machine, it opens but doesn't work properly and eventually crashes. Using otool I get this:
sudo otool -L ./Stubtiler-v4.app/Contents/MacOS/Stubtiler-v4
@executable_path/../Frameworks/QtMultimediaWidgets.framework/Versions/5/QtMultimediaWidgets (compatibility version 5.3.0, current version 5.3.1)
@executable_path/../Frameworks/QtMultimedia.framework/Versions/5/QtMultimedia (compatibility version 5.3.0, current version 5.3.1)
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.3.0, current version 5.3.1)
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.3.0, current version 5.3.1)
@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.3.0, current version 5.3.1)
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.3.0, current version 5.3.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
I must be missing something - any clues? BTW both machines run OS X 10.9.4. The development machine has QT 5.3.1 and latest Xcode
Make sure all your plugins (and shared libs) are bundled and redirected to bundle libs as well. If you don't use plugins, remember that Qt does - imageformats, slqdrivers etc.
Since you are using the Qt Network module, you are probably missing the bearer plugins. This has been fixed for Qt 5.4. You can either deploy them manually or compile macdeployqt from the latest qttools repository.
Hope it helps
Network module bearer plugins? Where do I find those? TIA
Hmm.... did that but still no go. Any other suggestions?
Did you update the paths from the plugins with install_name_tool ?
I guess I need to do that with all the frameworks? I thought the macdeploytool was supposed to handle all of this though.
No you don't, just the bearer plugins. macdeployqt indeed does that for you but it was missing the bearer deployment part which has been fixed in between that's why I suggested to compile it from sources.
Thanks for the help - cheers
You're welcome !
If you have it running now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)