Hello. I am trying to create a dynamic library on Mac OS X. As long as I wanted to avoid "lib" prefix and versions, in the .pro file I specified the following:
CONFIG += plugin no_plugin_name_prefix
CONFIG += plugin no_plugin_name_prefix
To copy to clipboard, switch view to plain text mode
It did the job, but now I can't set it's install_name. For an ordinary dynamic library (not plugin) the following works:
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
To copy to clipboard, switch view to plain text mode
In case of plugin it doesn't seem to do anything.
I was trying to do something like this:
QMAKE_POST_LINK += install_name_tool -id @executable_path/../Frameworks/$$TARGET <output-file>
QMAKE_POST_LINK += install_name_tool -id @executable_path/../Frameworks/$$TARGET <output-file>
To copy to clipboard, switch view to plain text mode
But it doesn't works, because I have to refer to the output file, which is unknown (or at least, I didn't find any qmake variable for that).
Could somebody help me?
Bookmarks