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
Forum Updated to NodeBB v4.3 + New Features

Macdeployqt dmg disabled build versions in Qt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
macdeployqt
35 Posts 2 Posters 12.7k Views 2 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 13 Dec 2017, 22:16 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 21 Dec 2017, 09:15
    0
    • S SGaist
      13 Dec 2017, 22:16

      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 21 Dec 2017, 09:15 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
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 21 Dec 2017, 21:37 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 27 Dec 2017, 13:20
        0
        • S SGaist
          21 Dec 2017, 21:37

          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 27 Dec 2017, 13:20 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 27 Dec 2017, 21:45 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 28 Dec 2017, 14:11
            0
            • S SGaist
              27 Dec 2017, 21:45

              Not any QML error ?

              R Offline
              R Offline
              RaZp29
              wrote on 28 Dec 2017, 14:11 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 29 Dec 2017, 22:19 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 30 Dec 2017, 14:40
                0
                • S SGaist
                  29 Dec 2017, 22: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.

                  R Offline
                  R Offline
                  RaZp29
                  wrote on 30 Dec 2017, 14:40 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
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 30 Dec 2017, 20:32 last edited by
                    #21

                    If everything goes well, clone the qttools repository and and build macdeployqt from the latest 5.10 branch.

                    Otherwise, you will have to apply two patches since there was a cleanup done in between.

                    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 5 Jan 2018, 14:22
                    0
                    • S SGaist
                      30 Dec 2017, 20:32

                      If everything goes well, clone the qttools repository and and build macdeployqt from the latest 5.10 branch.

                      Otherwise, you will have to apply two patches since there was a cleanup done in between.

                      R Offline
                      R Offline
                      RaZp29
                      wrote on 5 Jan 2018, 14:22 last edited by RaZp29 1 May 2018, 14:26
                      #22

                      @SGaist How do I build macdeployqt after cloning it? Tried to open the macdeployqt.pro file in Qt Creator and just build through there, but I got the error code:

                      ld: can't open output file for writing '/bin/macdeployqt.ld_z0wFts', errno=1 for architecture x86_64
                      clang: error: linker command failed with exit code 1 (use -v to see invocation)
                      make[1]: *** [/bin/macdeployqt] Error 1
                      make: *** [sub-macdeployqt-make_first] Error 2
                      15:19:17: The process "/usr/bin/make" exited with code 2.
                      Error while building/deploying project macdeployqt (kit: Desktop Qt 5.9.2 clang 64bit)
                      When executing step "Make"
                      

                      Or can I do it somehow using the terminal?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 5 Jan 2018, 18:37 last edited by
                        #23

                        /bin ? That strange.

                        I do it from the command line in an out of source folder:

                        mkdir build_macdeployqt
                        pushd build_macdeployqt
                        /path/to/qmake /path/to/Qt/qttools/src/macdeployqt/
                        make
                        make install
                        

                        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 5 Jan 2018, 20:09
                        0
                        • S SGaist
                          5 Jan 2018, 18:37

                          /bin ? That strange.

                          I do it from the command line in an out of source folder:

                          mkdir build_macdeployqt
                          pushd build_macdeployqt
                          /path/to/qmake /path/to/Qt/qttools/src/macdeployqt/
                          make
                          make install
                          
                          R Offline
                          R Offline
                          RaZp29
                          wrote on 5 Jan 2018, 20:09 last edited by RaZp29 1 May 2018, 20:11
                          #24

                          @SGaist when I do /path/to/qmake /path/to/Qt/qttools/src/macdeployqt/
                          I get :
                          Qt5.10.0/5.10.0/clang_64/mkspecs/features/mac/sdk.prf:26: Cannot write cache file /Users/.qmake.stash: Permission denied,
                          Tried it together with sudo, it worked: Info: creating stash file /Users/.qmake.stash
                          But when doing make I get:
                          ld: can't open output file for writing '/bin/macdeployqt.ld_jnQbB4', errno=1 for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [/bin/macdeployqt] Error 1 make: *** [sub-macdeployqt-make_first] Error 2

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 5 Jan 2018, 20:40 last edited by
                            #25

                            Are you using a self-compiled Qt ?

                            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 6 Jan 2018, 08:23
                            0
                            • S SGaist
                              5 Jan 2018, 20:40

                              Are you using a self-compiled Qt ?

                              R Offline
                              R Offline
                              RaZp29
                              wrote on 6 Jan 2018, 08:23 last edited by
                              #26

                              @SGaist No I downloaded the whole package from Qt, with Creator and everything and just used the provided installer.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 6 Jan 2018, 21:39 last edited by SGaist 1 Aug 2018, 09:23
                                #27

                                Ok, I was using my own build of Qt.

                                Configure the complete qttools module then you can just build macdeployqt.

                                mkdir build_qttools
                                pushd build_qttools
                                /path/to/qmake /path/to/Qt/qttools/ -r
                                make -C src/macdeployqt
                                cp bin/macdeploqt /path/to/macdeployqt
                                

                                [edit: added missing option. SGaist]

                                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 8 Jan 2018, 09:00
                                1
                                • S SGaist
                                  6 Jan 2018, 21:39

                                  Ok, I was using my own build of Qt.

                                  Configure the complete qttools module then you can just build macdeployqt.

                                  mkdir build_qttools
                                  pushd build_qttools
                                  /path/to/qmake /path/to/Qt/qttools/ -r
                                  make -C src/macdeployqt
                                  cp bin/macdeploqt /path/to/macdeployqt
                                  

                                  [edit: added missing option. SGaist]

                                  R Offline
                                  R Offline
                                  RaZp29
                                  wrote on 8 Jan 2018, 09:00 last edited by
                                  #28

                                  @SGaist
                                  build_qttools user$ make -C src/macdeployqt gives me:
                                  make: *** src/macdeployqt: No such file or directory. Stop.
                                  and
                                  build_qttools user$ make -C pathTo/qttools/src/macdeployqt make: *** No targets specified and no makefile found. Stop.

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 8 Jan 2018, 09:23 last edited by
                                    #29

                                    There was an option missing. You have to do a recursive configuration. Sorry. I've updated the sample.

                                    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 8 Jan 2018, 12:25
                                    0
                                    • S SGaist
                                      8 Jan 2018, 09:23

                                      There was an option missing. You have to do a recursive configuration. Sorry. I've updated the sample.

                                      R Offline
                                      R Offline
                                      RaZp29
                                      wrote on 8 Jan 2018, 12:25 last edited by
                                      #30

                                      @SGaist thanks for the quick update, now I got this.
                                      cp: cannot overwrite directory pathTo/qttools/src/macdeployqt/macdeployqt with non-directory bin/macdeployqt

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 8 Jan 2018, 12:26 last edited by
                                        #31

                                        When calling make install ?

                                        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 8 Jan 2018, 12:30
                                        0
                                        • S SGaist
                                          8 Jan 2018, 12:26

                                          When calling make install ?

                                          R Offline
                                          R Offline
                                          RaZp29
                                          wrote on 8 Jan 2018, 12:30 last edited by RaZp29 1 Aug 2018, 12:59
                                          #32

                                          @SGaist when calling cp bin/macdeployqt /path/to/macdeployqt

                                          Should there be an / after qttools in /path/to/qmake /path/to/Qt/qttools/ -r?

                                          Or when doing:
                                          make -C src/macdeployqt :
                                          cd macdeployqt/ && ( test -e Makefile || /Users/user/Qt5.10.0/5.10.0/clang_64/bin/qmake -o Makefile /Users/user/qttools/src/macdeployqt/macdeployqt/macdeployqt.pro ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile make[1]: Nothing to be done for first'.`

                                          My files are laid out like this in my home/root folder of the user:
                                          /Qt/5.9.2 which I got from the complete Qt installation.
                                          /Qt5.10.0 New version of Qt downloaded later on
                                          /qttools git cloned version with the patch

                                          I've been referring to the path of macdeployqt from the cloned git version, not the ones inside Qt5.9.2 or 5.10.0,
                                          to qmake inside Qt5.10.0 and to
                                          qttools in my root/home folder not inside Qt5.9.2 or 5.10.0

                                          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