Macdeployqt not working.
-
Hi,
I've tried the macdeployqt tool in both Qt 5.3.2 and the Qt 5.4.0 beta.
Neither work.
Open the window example project, build it and run macdeployqt tool on it and then the app no longer works.
Is it possible to build projects for other devices?
Thanks
-
Please run the otool -L and ldd on the resulting binary to see which libraries are missing/ mislinked.
-
ok, so before I run macdeployqt, otool shows,
@ /Users/Dunny/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.3.0, current version 5.3.2)
/Users/Dunny/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/QtQml (compatibility version 5.3.0, current version 5.3.2)
/Users/Dunny/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.3.0, current version 5.3.2)
/Users/Dunny/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.3.0, current version 5.3.2)
/Users/Dunny/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/QtGui (compatibility version 5.3.0, current version 5.3.2)
/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 60.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)@and then when I run macdeployqt, whereby the app stops working, otool shows,
@ @executable_path/../Frameworks/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.3.0, current version 5.3.2)
@executable_path/../Frameworks/QtQml.framework/Versions/5/QtQml (compatibility version 5.3.0, current version 5.3.2)
@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.3.0, current version 5.3.2)
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.3.0, current version 5.3.2)
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.3.0, current version 5.3.2)
/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 60.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)@*any advice?
Thanks*
-
That output looks correct. Check with ldd just to be sure.
It's been a while since I've use macdeployqt, but it used to work fine. Try running it with all the debug options:
@
macdeployqt -verbose=3
@ -
Also, if Mac OS displays it's standard message for crashing applications, please take a look at the report inside it: usually contains a nice stack and memory trace, which is mightily helpful.
3/5