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. QT 5.1 Deployment on mac OS X, macdeployqt does not change a links to qt libs inside application
Forum Updated to NodeBB v4.3 + New Features

QT 5.1 Deployment on mac OS X, macdeployqt does not change a links to qt libs inside application

Scheduled Pinned Locked Moved Installation and Deployment
35 Posts 9 Posters 28.0k 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.
  • M Offline
    M Offline
    miks131
    wrote on 15 Jul 2013, 19:27 last edited by
    #26

    Well, I can see only one reason - qml files inside colorCorrection folder does not have any import statements, or it is empty.

    Can't guess other reason.

    I dont think that size of project matters, I have quite a few files inside qml dir, and it works fine for me.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stereomatching
      wrote on 15 Jul 2013, 19:33 last edited by
      #27

      I find out the reason, I load an old shell, that is why the deployment always fail.Thanks for your helps and deeply hope this bug could be fixed on the next version(5.1.1), deal with the dependencies of Qt on mac is a real pain.

      Anybody know why the mac os make 99% of the dylib come with absolute path?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qtnext
        wrote on 29 Jul 2013, 16:33 last edited by
        #28

        is there a fix for this that will come for Qt5.1.1 ? it seems a verious serious issue for using Qt on Mac ?

        1 Reply Last reply
        0
        • U Offline
          U Offline
          Uflex
          wrote on 2 Aug 2013, 10:01 last edited by
          #29

          I just started looking at Mac deployment and am a bit confused about how hard it seems to be. I am not even a Mac user so might have missed or not understood things.

          I tried using the macdeployqt tool but it seems to leave a lot of work for the developer (modifying the paths, etc), if I understood what's written above, this is a bug in Qt 5.1 and will be corrected soon, right? I don't see any recent work on "git":https://qt.gitorious.org/qt/qttools/trees/stable/src/macdeployqt , does the tool need some love/contribution?

          I was wondering as well why the dylibs are burried deep inside Frameworks/QtX.framework/Versions/5/QtX and not directly copied in a Libraries directory in the root of the bundle (aside the MacOS folder)? Having this long path is a bit annoying when you have to manually fix the paths with install_name_tools. Is there a particular reason to have all this hierarchical directories? Aren't Frameworks for developers, containing the headers as well?

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qtnext
            wrote on 6 Aug 2013, 09:34 last edited by
            #30

            some news about this issue in the post on the Qt dev mailing list with thread
            "
            [Development] Puzzled by desktop development priorities, Mac OS specifically "

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MrJoshua
              wrote on 4 Nov 2013, 22:47 last edited by
              #31

              I'm using Qt 5.1.1, and deploying to OSX, but I am still getting errors similar to these.
              Specifically the qml imports:

              QQmlApplicationEngine failed to load component
              module "QtQuick.LocalStorage" is not installed
              module "QtQuick.Layouts" is not installed
              module "QtQuick.Controls" is not installed
              module "QtQuick" is not installed
              module "QtQuick.Dialogs" is not installed
              module "QtQuick.Controls.Styles" is not installed

              I'm using qtcreator & macdeployqt, but there is not a -qml option. Most sources say the macdeployqt command just works now in 5.1.1, but that still does not seem to be the case with qml. After all the debugging in this thread what is the canonical way to deploy to mac now?

              Thanks

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                zokipirlo
                wrote on 27 Nov 2013, 09:06 last edited by
                #32

                [quote author="MrJoshua" date="1383605264"]I'm using Qt 5.1.1, and deploying to OSX, but I am still getting errors similar to these.
                Specifically the qml imports:

                QQmlApplicationEngine failed to load component
                module "QtQuick.LocalStorage" is not installed
                module "QtQuick.Layouts" is not installed
                module "QtQuick.Controls" is not installed
                module "QtQuick" is not installed
                module "QtQuick.Dialogs" is not installed
                module "QtQuick.Controls.Styles" is not installed

                I'm using qtcreator & macdeployqt, but there is not a -qml option. Most sources say the macdeployqt command just works now in 5.1.1, but that still does not seem to be the case with qml. After all the debugging in this thread what is the canonical way to deploy to mac now?

                Thanks[/quote]

                Yep. And also on 5.2.0 beta1 and rc1 (26.11.) snapshot.

                I'm using QtQuick2ApplicationViewer.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jogu
                  wrote on 28 Nov 2013, 18:00 last edited by
                  #33

                  I believe this is fixed in the qt 5.2rc. You need to tell macdeployqt where your qml files are using -qmldir= (I believe it isn't recursive, so specify multiple times if you have multiple directories).

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    zokipirlo
                    wrote on 29 Nov 2013, 07:30 last edited by
                    #34

                    [quote author="jogu" date="1385661621"]I believe this is fixed in the qt 5.2rc. You need to tell macdeployqt where your qml files are using -qmldir= (I believe it isn't recursive, so specify multiple times if you have multiple directories).[/quote]
                    Thanks! You saved my life :) Using -qmldir=/full/path/to/qmldir works.

                    Update:
                    Maybe someone will also need that. It's possible to create a deployment shortcut using Tools->External->Configure. Add new and in Executable locate macdeployqt app. In arguments insert @%{CurrentProject:BuildPath}/%{CurrentProject:Name}.app -qmldir=%{CurrentProject:Path}/qml/%{CurrentProject:Name}@
                    It's faster and much easier with that :)

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      bovilexic
                      wrote on 1 Dec 2013, 23:49 last edited by
                      #35

                      Would like to back up jogu's response: in 5.2rc this seems to be working correctly -- I've managed to use macdeployqt on several projects, and they all run when copied to a Mac with no Qt installed

                      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