Deploy QT Application on any mac
-
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_UI2It 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 :( -
Hi
Unless they get the source and run via Creator you need a deployment folder
http://doc.qt.io/qt-5/osx-deployment.html -
@mrjj said in Deploy QT Application on any mac:
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 :/
-
@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. -
@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 thoThis link helped me doing it if someone has the same problem one day https://stackoverflow.com/questions/2809930/macdeployqt-and-third-party-libraries