Solved 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.
EDIT:
Or just listen to @SGaist, who works on mac and don't laugh too hard at my comment ... :) -
Hi,
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.
Thx -
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/libWhen 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/myAppThan 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