My Question is, wher i must setup my profile for mac .
My App compiles fine, but macdeplyqt can't find my created libs.
After make i have my lib (libMyAppCore.1.0.0.dylib*) in my MyAppCore folder and my App
in the created MyApp.app i can only find my executable and macdeployqt says
can not find /usr/lib/libMyAppCore.1.dylib
When i manualy copy the dylib in the MyApp.app it works, but how can do this Job macdeployqt?
I haven't used the tool, but I think this goes beyond its scope. The idea of the *deployqt tools is to pull in the needed Qt/system dependencies, not your own libraries.
Or just listen to @SGaist, who works on mac and don't laugh too hard at my comment ... :)
Did you properly setup the RPATH of your library ? If not then macdeployqt won't be able to find it.
No. I didn't set the Rpath. How can I do this for Mac?
Must I also set through Rpath for other libs like qrencode.dylib? This macdeployqt will find and copy.
Qt Creator's rpath.pri shows a nice way to handle that.
@SGaist thx 😉
@SGaist sorry do not work
What must i do after compile?
My App compile and will found my corelib. But must i copy the lib manualy to the package?
macdeployqt allway say ERROR no file at "/usr/lib/mycorelib.dylib" i can't copy it to /usr/lib
When i copy mylib manualy to Contents/MacOS it works. No matter if rpath is set or not.
Which version of Qt are you using ?
I'm using Qt 5.6
i must run
install_name_tool -change libMyCore.1.dylib @exectable_path/libMyCore.1.dylib myApp.app/Contents/MacOS/myApp
Than the lib was found, but macdeployqt always had the same ERROR. The app is working but why the lib was searching in /usr/lib when i to the install_name_tool.
Add QMAKE_LIBS += -Wl,-rpath,@executable_path/libMyCore.1.dylib or anythink else was ignored.
I must to this manualy with install_name_tool -change.
macdeployqt has improved with the latest versions of Qt so you'll likely have better result running a more recent version of the tool.
I doit now with install_name_tool -change. No other option will work for me. Thx