Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
5.12.0, 5.12.3, 5.13.0 Beta3
-
None
-
macos 10.14.4
xcode 10.2.1
qt5.13.b3, compiled using ./configure then make with no changes to options from default
Description
macdeployqt breaks application from running - regression from 5.11.2 version
This issue appears in the entire 5.12 series as well, and possibly appeared in 5.11.3 when some changes were made to macdeployqt (not 100% certain on that). This was 5.13.b3, built on macos 10.14.4, xcode 10.2.1.
Open a qml controls 2 project, I used "gallery" under examples/quickcontrols2/gallery.
Add commands to gallery.pro to deploy using maqcdeployqt:
...<snip>...
images/arrow@3x.png \ images/arrow@4x.png \ images/arrows.png \ images/arrows@2x.png \ images/arrows@3x.png \ images/arrows@4x.png \ images/qt-logo.png \ images/qt-logo@2x.png \ images/qt-logo@3x.png \ images/qt-logo@4x.png target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/gallery INSTALLS += target DEPLOY_COMMAND = macdeployqt DEPLOY_TARGET = $${TARGET}.app DEPLOY_TARGET = $$shell_path($${OUT_PWD}/$${DEPLOY_TARGET}) CONFIG(debug, debug|release) { DEPLOY_OPTIONS = -use-debug-libs #-qmldir=$${OUT_PWD}/qml } else { DEPLOY_OPTIONS = #-qmldir=$${OUT_PWD}/qml } QMAKE_POST_LINK += $${DEPLOY_COMMAND} \"$${DEPLOY_TARGET}\" $${DEPLOY_OPTIONS}
Upon compile (debug), these warnings appear:
macdeployqt "/Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app" -use-debug-libs File exists, skip copy: "/Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/PlugIns/quick/libqtquickcontrols2fusionstyleplugin.dylib" File exists, skip copy: "/Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/PlugIns/quick/libqtquickcontrols2imaginestyleplugin.dylib" File exists, skip copy: "/Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/PlugIns/quick/libqtquickcontrols2materialstyleplugin.dylib" File exists, skip copy: "/Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/PlugIns/quick/libqtquickcontrols2universalstyleplugin.dylib"
On run:
11:52:15: Starting /Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/MacOS/gallery ... objc[30511]: Class QMacAutoReleasePoolTracker is implemented in both /usr/local/Qt-5.13.0/lib/QtCore.framework/Versions/5/QtCore (0x1081af5a0) and /Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore_debug (0x1067550b8). One of the two will be used. Which one is undefined. objc[30511]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /usr/local/Qt-5.13.0/lib/QtCore.framework/Versions/5/QtCore (0x1081af618) and /Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore_debug (0x106755130). One of the two will be used. Which one is undefined. objc[30511]: Class RunLoopModeTracker is implemented in both /usr/local/Qt-5.13.0/lib/QtCore.framework/Versions/5/QtCore (0x1081af640) and /Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore_debug (0x106755158). One of the two will be used. Which one is undefined. QML debugging is enabled. Only use this in a safe environment. qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 11:52:15: The program has unexpectedly finished. 11:52:15: The process was ended forcefully. 11:52:15: /Users/username/Qt5.13.b/5.13.b/examples/quickcontrols2/gallery/gallery.app/Contents/MacOS/gallery crashed.
If you do not use macdeployqt, the application will run correctly.