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

Qt deploy for Mac Os doesn't work

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
15 Posts 4 Posters 1.5k 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.
  • A Aj501

    Can you please show me how to use macdeployqt?

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on 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 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?

      mrjjM 1 Reply Last reply
      0
      • A Aj501

        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?

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on 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 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            0
            • A Offline
              A Offline
              Aj501
              wrote on 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
              • SGaistS SGaist

                Hi,

                How did you install Qt ?

                A Offline
                A Offline
                Aj501
                wrote on 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
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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 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
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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

                      • Login

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