Dynamic library on Mac, Library not loaded
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.
Code:
macx {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/
}
Re: Dynamic library on Mac, Library not loaded
Please help, I am new to the Mac OS:crying:
Re: Dynamic library on Mac, Library not loaded
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.