[Interest] qmake and rpath

Wilhelm wilhelm.meier at fh-kl.de
Fri Apr 26 15:23:55 CEST 2013


Hi all,

I have a problem with qmake setting rpath:

the sources are in

~/Software/qtwm/branches/macros/apps/apps5/app
~/Software/qtwm/branches/macros/apps/apps5/aedit
~/Software/qtwm/branches/macros/apps/apps5/lib

then the debug-build gives me the executable / lib in

~/Software/qtwm/branches/macros/apps/build-apps5-QT5-Debug/app
~/Software/qtwm/branches/macros/apps/build-apps5-QT5-Debug/aedit
~/Software/qtwm/branches/macros/apps/build-apps5-QT5-Debug/lib

I can start the program (e.g. the executable in .../app) via qtcreator, 
but not from shell because my lib in ../lib is missing.

Therefore I tried to set the rpath in the .pro file

QMAKE_RPATHDIR += ../lib

by this gives me

-Wl,-rpath,/home/lmeier/Software/qtwm/branches/macros/apps/apps5/lib

in the Makefile, and that's not correct.

How do I set the rpath to point to the build dir and not to the source 
dir of the lib?

-- 
Wilhelm




More information about the Interest mailing list