Have you tried the Qt tool macdeployqt? It will bundle all necessary libraries and frameworks into your application bundle.
Have you tried the Qt tool macdeployqt? It will bundle all necessary libraries and frameworks into your application bundle.
It's nice to be important but it's more important to be nice.
Ah I see, you already have problems compiling your appilcation. What are the exact error messages you get?
It's nice to be important but it's more important to be nice.
Not quite. The projects compile perfectly. First the libraries, then the executables that depend on those libraries (which should mean that the linker finds the libs and links successfully). It's all fine. The app bundles that are created, though, contain only the executables, and nothing more.
When I try to run the application, it crashes saying (libKtX is one of my libraries the executable depends on):
dyld: Library not loaded: libKtX.0.dylib
Reason: image not found
Add the directories containing the libraries to DYLD_LIBARY_PATH.
It's nice to be important but it's more important to be nice.
Vnuce (20th October 2009)
Set DYLD_LIBRARY_PATH as an env var, right? I did... no good![]()
Should I restart the machine, or some service in order to take it into account?
Ok.. setting the DYLD_LIBRARY_PATH as an system-wise env var didn't work, but setting it in project's run settings did the trick. Thanks Axel.![]()
Last edited by Vnuce; 19th October 2009 at 15:13.
Bookmarks