Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Two versions of Qt binaries found
Forum Updated to NodeBB v4.3 + New Features

Two versions of Qt binaries found

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 1.4k 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.
  • D Offline
    D Offline
    desperateporter
    wrote on last edited by
    #1

    I want to deploy my application using Qt 4.8.6 on Mac OS X 10.10. I used macdeployqt to integrate the Qt framework into my .app package and build a .dmg image. I checked every dependency (yes, also of the Qt-framework itself) with "otool -L" and all are pointing to the relative Qt binaries integrated into the package:
    @
    @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.6)
    @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.6)
    @

    Still I get multiple errors of this kind:
    @
    Class QCocoaColorPanelDelegate is implemented in both pathToApp/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
    @

    When I copy the app to another Mac that hasn't got Qt installed it runs just fine. Therefore, there can't be any references to the system binaries of Qt since it wouldn't run.

    I also tried setting the dependencies manually with install_name_tool but with the same results. There is an ancient "thread":http://qt-project.org/forums/viewthread/4239 that describes the same issue but doesn't provide a solution that would help me.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      desperateporter
      wrote on last edited by
      #2

      Oops, I didn't mean to post this into Tools but rather into Installation and Deployment, sorry!

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

        Hi,

        No problem, I'll move it.

        Anyway, did you also check the various plugins ?

        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
        0
        • D Offline
          D Offline
          desperateporter
          wrote on last edited by
          #4

          I'm not using an plugins and also setting the -no-plugins flag of macdeployqt. As I said, I also checked the interdependencies of the Qt framework itself and they are fine as well. Plus, since I can copy my .app to another Mac that hasn't got Qt I guess all dependencies must be OK...

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

            Qt uses plugins e.g. the platform plugin which provides QCocoaColorPanelDelegate

            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
            0
            • D Offline
              D Offline
              desperateporter
              wrote on last edited by
              #6

              Holy crap, why didn't I simply try macdeployqt without -no-plugins ... omitting it works, thanks!

              However, this raised another issue: the OpenGL of my app is only visible if I start it from the terminal. Double clicking the .app simply doesn't show the 3D view without any errors...

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

                I just realized that I misled you on a point. Qt 4 doesn't have the platform plugin paradigm… it's for Qt 5

                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
                0

                • Login

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