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. SOLVED - Problem deploying on OS X
Forum Updated to NodeBB v4.3 + New Features

SOLVED - Problem deploying on OS X

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 3 Posters 2.6k 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.
  • Z Offline
    Z Offline
    ziggx
    wrote on last edited by
    #1

    Hi there,

    I have built the release version of my project and used macdeploy to create a bundle. The bundle runs fine on the development machine, but when I deploy to another machine, it opens but doesn't work properly and eventually crashes. Using otool I get this:

    sudo otool -L ./Stubtiler-v4.app/Contents/MacOS/Stubtiler-v4
    ./Stubtiler-v4.app/Contents/MacOS/Stubtiler-v4:
    @executable_path/../Frameworks/QtMultimediaWidgets.framework/Versions/5/QtMultimediaWidgets (compatibility version 5.3.0, current version 5.3.1)
    @executable_path/../Frameworks/QtMultimedia.framework/Versions/5/QtMultimedia (compatibility version 5.3.0, current version 5.3.1)
    @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.3.0, current version 5.3.1)
    @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.3.0, current version 5.3.1)
    @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.3.0, current version 5.3.1)
    @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.3.0, current version 5.3.1)
    /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 56.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

    I must be missing something - any clues? BTW both machines run OS X 10.9.4. The development machine has QT 5.3.1 and latest Xcode

    TIA
    Ziggx

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mnaydenov
      wrote on last edited by
      #2

      Make sure all your plugins (and shared libs) are bundled and redirected to bundle libs as well. If you don't use plugins, remember that Qt does - imageformats, slqdrivers etc.

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

        Hi,

        Since you are using the Qt Network module, you are probably missing the bearer plugins. This has been fixed for Qt 5.4. You can either deploy them manually or compile macdeployqt from the latest qttools repository.

        Hope it helps

        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
        • Z Offline
          Z Offline
          ziggx
          wrote on last edited by
          #4

          Hi there,

          Network module bearer plugins? Where do I find those? TIA

          Ziggy

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

            There: /path_to_qt5/qtbase/plugins/bearer/

            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
            • Z Offline
              Z Offline
              ziggx
              wrote on last edited by
              #6

              Hmm.... did that but still no go. Any other suggestions?

              TIA
              Ziggx

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

                Did you update the paths from the plugins with install_name_tool ?

                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
                • Z Offline
                  Z Offline
                  ziggx
                  wrote on last edited by
                  #8

                  I guess I need to do that with all the frameworks? I thought the macdeploytool was supposed to handle all of this though.

                  TIA
                  Ziggx

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

                    No you don't, just the bearer plugins. macdeployqt indeed does that for you but it was missing the bearer deployment part which has been fixed in between that's why I suggested to compile it from sources.

                    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
                    • Z Offline
                      Z Offline
                      ziggx
                      wrote on last edited by
                      #10

                      Thanks for the help - cheers
                      ziggx

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

                        You're welcome !

                        If you have it running now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                        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