Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. deploy the plugandpaint.app shows error
Forum Updated to NodeBB v4.3 + New Features

deploy the plugandpaint.app shows error

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 428 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    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 problem

    I don't why, and I have confuse about how to set the platform plugin libqcocoa.dylib correct, thanks a lot!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should rather macdeployqt. The tool does all the hard work for you.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved