[Interest] Best practice to packages on Ubuntu with QtIF

Nikos Chantziaras realnc at gmail.com
Mon Feb 22 08:11:52 CET 2016


On 22/02/16 08:55, Igor Mironchik wrote:
> On 22.02.2016 09:22, Koehne Kai wrote:
>>
>> You should rather utilize rpath, and set it e.g. to $ORIGIN
>>
>> https://en.wikipedia.org/wiki/Rpath
>
> Interesting, but "QMAKE_RPATHDIR += ." doesn't work. It require full
> path to work correctly...

qmake doesn't support it. You have to do it by hand:

   QMAKE_LFLAGS += -Wl,-rpath,\$\$ORIGIN/libs

And then I put all libraries in the "lib" directory of the execututable.

(And this is obviously linker and platform specific.)




More information about the Interest mailing list