Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Deploy QT Application on any mac
Forum Updated to NodeBB v4.3 + New Features

Deploy QT Application on any mac

Scheduled Pinned Locked Moved Solved General and Desktop
mac os xdeployingproblem
5 Posts 3 Posters 1.7k 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.
  • E Offline
    E Offline
    EL_Mambo
    wrote on 16 Apr 2018, 12:22 last edited by
    #1

    Hello, i'm trying to develop a menu for a raytracer, it's working fine on my Mac but i'd like to start it on any other Mac so my mates Can use it.
    I gave them the folder containing my project and the folder containing my realease (build_desktop...)
    However, when they try to start it, they get this error :
    dyld: Library not loaded: @rpath/QtWidgets.framework/Versions/5/QtWidgets
    Referenced from: /Users/polomacpro/Desktop/42/mdr/RT_UI2/RT_UI2.app/Contents/MacOS/./RT_UI2
    Reason: image not found
    start.sh: line 2: 33790 Abort trap: 6 ./RT_UI2

    It seems like project can't find libraries, so i tried to give them, i made them install Qt, but nothing works...
    So here i am, asking for your help :(

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 16 Apr 2018, 12:25 last edited by
      #2

      Hi
      Unless they get the source and run via Creator you need a deployment folder
      http://doc.qt.io/qt-5/osx-deployment.html

      1 Reply Last reply
      2
      • E Offline
        E Offline
        EL_Mambo
        wrote on 16 Apr 2018, 12:51 last edited by
        #3

        @mrjj said in Deploy QT Application on any mac:

        http://doc.qt.io/qt-5/osx-deployment.html

        Yea i already found that page while doing my researches, but i cannot find ./configure, seems like i'm missing some files on my Qt dir> Sadly i can't install more cause i'm limited in storage :/

        J 1 Reply Last reply 16 Apr 2018, 13:01
        0
        • E EL_Mambo
          16 Apr 2018, 12:51

          @mrjj said in Deploy QT Application on any mac:

          http://doc.qt.io/qt-5/osx-deployment.html

          Yea i already found that page while doing my researches, but i cannot find ./configure, seems like i'm missing some files on my Qt dir> Sadly i can't install more cause i'm limited in storage :/

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 16 Apr 2018, 13:01 last edited by J.Hilk
          #4

          @EL_Mambo the link provided by @mrjj may be a bit to generic for your situtaion, you don't need to ./configer or static compile anything.

          Take a look at the macdeploy-tool that comes wiht Qt its a command line tool that should make your appbundle executable on other macs.

          It's a command line tool found in your Qt- folder.
          If you havn't strayed to far from pure Qt-code, you won't have to take anything extra into account.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          E 1 Reply Last reply 16 Apr 2018, 13:54
          2
          • J J.Hilk
            16 Apr 2018, 13:01

            @EL_Mambo the link provided by @mrjj may be a bit to generic for your situtaion, you don't need to ./configer or static compile anything.

            Take a look at the macdeploy-tool that comes wiht Qt its a command line tool that should make your appbundle executable on other macs.

            It's a command line tool found in your Qt- folder.
            If you havn't strayed to far from pure Qt-code, you won't have to take anything extra into account.

            E Offline
            E Offline
            EL_Mambo
            wrote on 16 Apr 2018, 13:54 last edited by
            #5

            @J.Hilk said in Deploy QT Application on any mac:

            macdeploy

            Yes you saved my life ! Works perfectly, thanks !
            I had to change @rpath to @executablepath tho

            This link helped me doing it if someone has the same problem one day https://stackoverflow.com/questions/2809930/macdeployqt-and-third-party-libraries

            1 Reply Last reply
            0

            2/5

            16 Apr 2018, 12:25

            • Login

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