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 deploy for Mac Os doesn't work
Forum Update on Monday, May 27th 2025

Qt deploy for Mac Os doesn't work

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
15 Posts 4 Posters 1.4k 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.
  • A Offline
    A Offline
    Aj501
    wrote on 13 Jan 2020, 18:00 last edited by
    #1

    I have built an app on qt for MacOS and deployed it. However when I tried using it on an other Mac, it shows error. !![alt text](Screen Shot 2020-01-12 at 11.56.52 PM.png image url)
    This same thing happens on multiple Mac I've tried. I've tried to update Mac OS to the latest one but its still doesnt work.
    Does anyone know why?

    Thank you!

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 13 Jan 2020, 18:34 last edited by
      #2

      Hi, I use macdeployqt and it works for me. How does your command line look when you run macdeployqt?

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Aj501
        wrote on 13 Jan 2020, 18:51 last edited by
        #3

        I deployed it directly in QC by choosing option to build the release version for Mac Desktop. I works fine on my Mac but doesn't on any other Mac.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 13 Jan 2020, 19:00 last edited by mrjj
          #4

          Hi
          You need all the Qt libraries with the ".exe".
          macdeployqt is very helpful for that.
          in QC you simply build a .exe in release mode but its still need other files
          with it. QC does not handle that for you.

          https://www.ics.com/blog/your-guide-deploying-qt-applications-macos

          1 Reply Last reply
          1
          • A Offline
            A Offline
            Aj501
            wrote on 13 Jan 2020, 19:02 last edited by
            #5

            Can you please show me how to use macdeployqt?

            M 1 Reply Last reply 13 Jan 2020, 19:02
            0
            • A Aj501
              13 Jan 2020, 19:02

              Can you please show me how to use macdeployqt?

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 13 Jan 2020, 19:02 last edited by mrjj
              #6

              @Aj501
              hi
              Read the tut. its very good at explaining.

              The actual use is just
              macdeployqt <ApplicationName>.app
              (if you are not using QML)

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Aj501
                wrote on 13 Jan 2020, 19:25 last edited by
                #7

                Thank you! so I navigated to my build directory, which is:
                build-NickBilliardsPrjQT-MacDesktop-Release
                and then I ran the command: macdeployqt NickBilliards.app
                but I got this error saying: zsh: command not found: macdeployqt
                I noticed my macdeployqt is not in the same directory as my build directory. Should this be the problem?

                M 1 Reply Last reply 13 Jan 2020, 19:30
                0
                • A Aj501
                  13 Jan 2020, 19:25

                  Thank you! so I navigated to my build directory, which is:
                  build-NickBilliardsPrjQT-MacDesktop-Release
                  and then I ran the command: macdeployqt NickBilliards.app
                  but I got this error saying: zsh: command not found: macdeployqt
                  I noticed my macdeployqt is not in the same directory as my build directory. Should this be the problem?

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 13 Jan 2020, 19:30 last edited by
                  #8

                  @Aj501
                  Hi
                  Just use the full path to it.
                  It does not have to be (is normally not) in the build directory.

                  1 Reply Last reply
                  1
                  • A Offline
                    A Offline
                    Aj501
                    wrote on 13 Jan 2020, 19:47 last edited by
                    #9

                    While I tried to find the path to macdeployqt using find / -iname macdeployqt, I only found it in Qt version 5.12 .5 and 5.13, which were the previous versions I used. I supposed the macdeployqt in the older version will not work for my newly release app.
                    My qt is now of version 5.14 and the project is in this newer version, but I can't find 5.14, hence I can't find the macdeployqt, in my Qt directory. Do you know why?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 13 Jan 2020, 20:07 last edited by
                      #10

                      Hi,

                      How did you install Qt ?

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

                      A 1 Reply Last reply 13 Jan 2020, 20:33
                      0
                      • A Offline
                        A Offline
                        Aj501
                        wrote on 13 Jan 2020, 20:20 last edited by
                        #11

                        I installed it using usual steps. I started with version 5.12.5 and 5.13 and the app was built and deployed on these two version, but when I updated QC to version 5.14 and deployed the app again, it's not showing up in any directory except the built release version of the app. I don't know what else I can say about my installation of Qt as I followed the standard (normal) installation steps.

                        1 Reply Last reply
                        0
                        • S SGaist
                          13 Jan 2020, 20:07

                          Hi,

                          How did you install Qt ?

                          A Offline
                          A Offline
                          Aj501
                          wrote on 13 Jan 2020, 20:33 last edited by
                          #12

                          @SGaist Even I tried to cd in to the macdeployqt which resides in qt version 5.12.5 and ran the command "macdeployqt myapp.app", it still says this: "zsh: command not found: macdeployqt"

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 13 Jan 2020, 20:36 last edited by
                            #13

                            You are on a Unix system. To run an application from a specific folder either cd into the folder and call ./exec_name or use the full path to the executable file.

                            Please explain the method you used. On macOS, there are at least 3 different ways that can be called standard to install Qt.

                            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
                            2
                            • A Offline
                              A Offline
                              Aj501
                              wrote on 13 Jan 2020, 20:56 last edited by
                              #14

                              @SGaist said in Qt deploy for Mac Os doesn't work:

                              To run an application from a specific folder either

                              I don't remember detail steps but I used the Qt online installation and used the suggested version of Qt for my Mac. Would it be easier now if I uninstall Qt and reinstall it? Do you have a favorite method of installing Qt?

                              1 Reply Last reply
                              1
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 14 Jan 2020, 21:59 last edited by
                                #15

                                The online installer is fine. The goal was to ensure that the version to check is the same for everybody.

                                Did you pass any parameter to macdeployqt ?

                                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

                                1/15

                                13 Jan 2020, 18:00

                                • Login

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