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. deploying Mac app using macdeployqt fails
Qt 6.11 is out! See what's new in the release blog

deploying Mac app using macdeployqt fails

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 2.3k 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.
  • N Offline
    N Offline
    Nitenq
    wrote on last edited by
    #1

    Hello

    I would like to build a self contained .app bundle with all Qt frameworks embed inside. I try to use macdeployqt on the .app. (build with QtCreator / Qt 5.8)
    I get those warnings :
    WARNING: Could not find any external Qt frameworks to deploy in "WaveTag.app"
    WARNING: Perhaps macdeployqt was already used on "YourApp.app" ?
    WARNING: If so, you will need to rebuild "YourApp.app" before trying again.

    .. and no framework is copied into the bundle

    The paths showed by otool looks ok :
    @rpath/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.8.0, current version 5.8.0)
    @rpath/QtQml.framework/Versions/5/QtQml (compatibility version 5.8.0, current version 5.8.0)
    @rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.8.0, current version 5.8.0)
    .. etc

    Any Idea ?

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

      Hi,

      How are you calling 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
      • N Offline
        N Offline
        Nitenq
        wrote on last edited by
        #3

        terminal command :
        ~/Qt/5.8/clang_64/bin]$ macdeployqt ~/(pathToReleaseBuild)/MyApp.app

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nitenq
          wrote on last edited by
          #4

          ok my bad, I had another macdeployqt installed somewhere on my machine.
          Thanks!

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Nitenq
            wrote on last edited by
            #5

            for completeness : macdeployqt needs also to copy all qml plugins. So the complete command is :

            ./macdeployqt <path_to_app_bundle> -qmldir=<full_path_to_qml_files_folder>
            

            (called from the Qt install directory)

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

              On a side note for people coming here: <full_path_to_qml_files_folder> means path to the project qml files folder.

              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