PDA

View Full Version : Dynamic library on Mac, Library not loaded



grayfox
30th June 2011, 16:15
I have a project that contains a shared library and an application that use the library.
Both will be build to the same directory with CONFIG -= app_bundle.

When launching from Qt creator, the app load successfully, but when launched from Finder, it fails with "Library not loaded"

I tried adding this to the application's pro file but it doesn't help.


macx {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/
}

grayfox
1st July 2011, 15:33
Please help, I am new to the Mac OS:crying:

ChrisW67
2nd July 2011, 02:42
The Qt libraries need to be where the operating system can find them. Qt Creator makes sure of this when running your app. You have to make sure of this when the app is deployed. I am not a Mac OS X user so I cannot provide specifics.

There are details in the Deploying an Application on Mac OS X docs.