Qmake flags
-
Please see:
http://doc.qt.nokia.com/latest/qmake-variable-reference.html#qmake-rpath
and
http://doc.qt.nokia.com/latest/qmake-variable-reference.html#qmake-rpathdirThe -Wl,-rpath part just tells the compiler to pass through the option "-rpath" to the linker.
-
$ORIGIN always represents the directory of the executable. But it doesn't limit you to directory inside the executable directory: you can use, for example, "$ORIGIN/../lib" to put your libraries in a lib directory at the same level as you executable folder:
@.
|-- bin
|-- myexecutable
-- lib
`-- libtoinclude.so
@If the path you want to add is absolute, don't use $ORIGIN, start your path with / (or you could rely on /etc/ld.so.conf to find the correct installed libraries in the default system paths).