deploy the plugandpaint.app shows error
-
I want to deploy my mac app, so I follow the document:
http://doc.qt.io/qt-5/macos-deployment.html
to learn to deploy the plugandpaint.app , I had done everything well follow the document, but when I run it on other mac, it shows me the error:Class QMacAutoReleasePoolTracker is implemented in both /Users/lee/Qt5.11.3/Examples/Qt-5.11.3/widgets/tools/plugandpaint/plugandpaint.app/Contents/Framework/Qt/QtCore.framework/Versions/5/QtCore (0x1010bc318) and /Users/lee/Qt5.11.3/5.11.3/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1073f0318). One of the two will be used. Which one is undefined.
objc[44934]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/lee/Qt5.11.3/Examples/Qt-5.11.3/widgets/tools/plugandpaint/plugandpaint.app/Contents/Framework/Qt/QtCore.framework/Versions/5/QtCore (0x1010bc390) and /Users/lee/Qt5.11.3/5.11.3/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1073f0390). One of the two will be used. Which one is undefined.
objc[44934]: Class RunLoopModeTracker is implemented in both /Users/lee/Qt5.11.3/Examples/Qt-5.11.3/widgets/tools/plugandpaint/plugandpaint.app/Contents/Framework/Qt/QtCore.framework/Versions/5/QtCore (0x1010bc3b8) and /Users/lee/Qt5.11.3/5.11.3/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1073f03b8). One of the two will be used. Which one is undefined.2019-01-30 18:02:55.499315+0800 plugandpaint[44934:491389] QObject::moveToThread: Current thread (0x101602910) is not the object's thread (0x101218c30).
Cannot move to target thread (0x101602910)
2019-01-30 18:02:55.499350+0800 plugandpaint[44934:491389] You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
2019-01-30 18:02:55.499436+0800 plugandpaint[44934:491389] [qt.qpa.plugin] Could not load the Qt platform plugin "cocoa" in "" even though it was found.
2019-01-30 18:02:55.499508+0800 plugandpaint[44934:491389] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problemI don't why, and I have confuse about how to set the platform plugin libqcocoa.dylib correct, thanks a lot!
-
Hi,
You should rather
macdeployqt. The tool does all the hard work for you.