Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Macdeployqt dmg disabled build versions in Qt

Macdeployqt dmg disabled build versions in Qt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
macdeployqt
35 Posts 2 Posters 12.1k Views
  • 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.
  • R Offline
    R Offline
    RaZp29
    wrote on last edited by A Former User
    #1

    Hi! I tried to use macdeployqt in the terminal on my mac along with the path to my Application.app and -dmg to create a dmg of my app, I tried this with my release and profile version and now I can't run them. Gets error message: QQmlApplicationEngine failed to load component when running them in Qt Creator path to main followed by "QtQuick.Controls" is not installed, same goes for "QtQuick.Window" and a lot more of my imported modules. Luckily I haven't messed up my debug build. Does anyone know how to correct my error?

    /Oliver

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

      Hi,

      Are you also using the -qmldir option ?

      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
      • R Offline
        R Offline
        RaZp29
        wrote on last edited by
        #3

        No I haven't used this, what's it used for?

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

          From the macdeployqt documentation:
          Deploy imports used by .qml files in the given path

          So you give it the path to your application sources where you have your .qml files. It will scan them and then deploy the dependencies needed.

          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
          • R Offline
            R Offline
            RaZp29
            wrote on last edited by
            #5

            Okey thanks, I will try this. Before I've deployed through Qt Creator, but now I want to be able to distribute it to a friend of mine, is this the right way to go?

            1 Reply Last reply
            0
            • R Offline
              R Offline
              RaZp29
              wrote on last edited by RaZp29
              #6

              This worked just fine. But I'm using openstreetmap plugin for a map in my application so the map is not visible.
              Quoting macdeployqt: To include a 3rd party library in the application bundle, copy the library into the bundle manually, after the bundle is created.
              What is my bundle? Now I have one folder with my sourceCode with files like myApp.pro, main.cpp, qml files, and so on, and another folder that Qt Creator creates when deploying containing main.o, Makefile, moc_files and myApplication.app.

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

                The bundle is your Application.app.

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

                R 1 Reply Last reply
                0
                • SGaistS SGaist

                  The bundle is your Application.app.

                  R Offline
                  R Offline
                  RaZp29
                  wrote on last edited by
                  #8

                  @SGaist said in macdeployqt dmg disabled build versions in Qt:

                  The bundle is your Application.app.

                  Okey, so how do I: Include a 3rd party library in the application bundle, copy the library into the bundle manually, after the bundle is created. How's this done with OpenStreetMap?

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

                    Copy the OpenStreetMap framework/dylib in the corresponding folder in the bundle structure.

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

                    R 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Copy the OpenStreetMap framework/dylib in the corresponding folder in the bundle structure.

                      R Offline
                      R Offline
                      RaZp29
                      wrote on last edited by
                      #10

                      @SGaist said in macdeployqt dmg disabled build versions in Qt:

                      Copy the OpenStreetMap framework/dylib in the corresponding folder in the bundle structure.

                      Where do I find the OpenStreetMap framework/dylib? isn't that included in QtLocation?

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

                        My bad, I've mixed OpenStreetMap with another one. The osm plugin should be deployed.

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

                        R 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          My bad, I've mixed OpenStreetMap with another one. The osm plugin should be deployed.

                          R Offline
                          R Offline
                          RaZp29
                          wrote on last edited by
                          #12

                          @SGaist So how come no map is shown only my frame around it and all other tools when I deploy using macdeployqt with -dmg and -qmldir ?

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

                            Did you try to start your application from the command line after running macdeployqt ? There might be information printed on the command line.

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

                            R 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Did you try to start your application from the command line after running macdeployqt ? There might be information printed on the command line.

                              R Offline
                              R Offline
                              RaZp29
                              wrote on last edited by RaZp29
                              #14

                              @SGaist I tried this but it didn't work. This is what the folder to the project in Qt Creator looks like 0_1513847225245_Skärmavbild 2017-12-21 kl. 10.06.06.png And this is the folder produced by Qt Creator when deploying 0_1513847235745_Skärmavbild 2017-12-21 kl. 10.06.22.png

                              Before running macdeployqt running my app from the terminal with: open -a RTKCar works just fine. Then I call macdeployqt from my root folder like this:
                              pathToMacdeployqt/macdeployqt pathToDeployedFolder/RTKCar.app -dmg -qmldir=PathToProjectFolder
                              After this I can run it from the terminal but the map won't show, same goes for opening it with the mouse or from the dmg.

                              When running the macdeployqt command, I get the following output:
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquick2plugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libdeclarative_location.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libdeclarative_positioning.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libwindowplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqquicklayoutsplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2plugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2materialstyleplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2universalstyleplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libdialogplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libdialogsprivateplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquicktemplates2plugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqmlfolderlistmodelplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqmlsettingsplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrolsplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickextrasflatplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libwidgetsplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickextrasplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtgraphicaleffectsplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtgraphicaleffectsprivate.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2materialstyleplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2materialstyleplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2universalstyleplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libqtquickcontrols2universalstyleplugin.dylib"
                              File exists, skip copy: "/Users/user/build-RTKCar-Desktop_Qt_5_9_2_clang_64bit-Profile/RTKCar.app/Contents/PlugIns/quick/libmodelsplugin.dylib"

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

                                I didn't expect it to work but to give more clues about what is going wrong. You don't have any message printing on the console ?

                                By the way, you should consider updating Qt. 5.9.3 and 5.10 have been released.

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

                                R 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  I didn't expect it to work but to give more clues about what is going wrong. You don't have any message printing on the console ?

                                  By the way, you should consider updating Qt. 5.9.3 and 5.10 have been released.

                                  R Offline
                                  R Offline
                                  RaZp29
                                  wrote on last edited by RaZp29
                                  #16

                                  @SGaist I Downloaded Qt 5.10 and gave it a try, same output as before. I've also tried this for the Qt Map Viewer Example without any success.

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

                                    Not any QML error ?

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

                                    R 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      Not any QML error ?

                                      R Offline
                                      R Offline
                                      RaZp29
                                      wrote on last edited by
                                      #18

                                      @SGaist Nope. Do you want to give it a try with the Qt Map Viewer Example?

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

                                        That's what I was suspecting: missing plugins.

                                        The quick and easy way would be to build your own version of macdeployqt with this patch applied.

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

                                        R 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          That's what I was suspecting: missing plugins.

                                          The quick and easy way would be to build your own version of macdeployqt with this patch applied.

                                          R Offline
                                          R Offline
                                          RaZp29
                                          wrote on last edited by
                                          #20

                                          @SGaist Wow thanks a lot! Will try this in a few days. Do you reckon linuxdeployqt will have the same issue?

                                          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