Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
None
Description
If you want to incorporate dynamic libraries as part of your Mac OS X
application bundle (the application directory), then you place these
into a directory called Frameworks, a subdirectory of the application
bundle.
This works if using qmake and Makefiles,
The application finds these dynamic libraries if the libraries have an
install name of "@executable_path/../Frameworks/libname.dylib.
If you use qmake and Makefiles, use the QMAKE_LFLAGS_SONAME setting:
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/"
It would be nice if this was supported when generating Xcode. As it is this does not work in Xcode and it is required to run install_name manually afterwards to patch the binary so it can find the dylib in the app.