Hi,

On 22.02.2016 09:22, Koehne Kai wrote:

-----Original Message-----
From: Interest [mailto:interest-
bounces+kai.koehne=theqtcompany....@qt-project.org] On Behalf Of Igor
Mironchik
Sent: Monday, February 22, 2016 5:56 AM
To: interest@qt-project.org
Subject: [Interest] Best practice to packages on Ubuntu with QtIF

Hi,

What is the best practices to create packages on Ubuntu with QtIF?

I'm interested in one stuff: if my application consists of executable and
shared libraries, so to application start I have to "export
LD_LIBRARY_PATH=." in working directory. So my question is it possible to
set LD_LIBRARY_PATH automatically? How can it be done?
Technically, you could provide a wrapper (myapp.sh). But you shouldn't do that.
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...
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to