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_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 :(
Unless they get the source and run via Creator you need a deployment folder
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 :/
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.
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