Building subdirs project with shared libs
-
Hello, I'm build a subdirs project for the first time, it looks like I have done everything correctly but there is something troubling me, when I run the executable from qt creator opens with the desired libs even though I have the option "Add build library search path to..." unchecked, but then I try to run it from terminal and it cannot find the libraries...
-
Hi,
Qt Creator modifies the environment so you may have the
DYLD_LIBRARY_PATHS
environment variable handled in Qt Creator that you don't have in your terminal, hence the failure. -
I see, is there a way for men executable to "know" the path to my libs?
I've tried this "QMAKE_RPATHDIR += $$PWD/release" in my TEMPLATE subdirs .pro with no success...
This is my output dir:
-
Run
otool -L
on your executable as well as on that library and post the output. -
-
Use
install_name_tool
and modify the librariesid
to contain the full path to their current folder.