Unsolved Building subdirs project with shared libs
DiogoPereira98 last edited by aha_1980
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...
Qt Creator modifies the environment so you may have the
DYLD_LIBRARY_PATHSenvironment variable handled in Qt Creator that you don't have in your terminal, hence the failure.
DiogoPereira98 last edited by DiogoPereira98
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:
otool -Lon your executable as well as on that library and post the output.
DiogoPereira98 last edited by
install_name_tooland modify the libraries
idto contain the full path to their current folder.