Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-22 Thread Igor Mironchik
Hi, On 22.02.2016 11:51, Nikos Chantziaras wrote: That will not work. The rpath needs to be $ORIGIN. A string. Not a variable that is expanded. Also, I used the wrong syntax before. Escaping this string is difficult since it contains an "$". This should work:

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-22 Thread Nikos Chantziaras
That will not work. The rpath needs to be $ORIGIN. A string. Not a variable that is expanded. Also, I used the wrong syntax before. Escaping this string is difficult since it contains an "$". This should work: QMAKE_LFLAGS=-Wl,-rpath,\'\$\$ORIGIN\' If you use that one, you should find

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-22 Thread Igor Mironchik
In my Makefile I have: LFLAGS= -Wl,-O1 -Wl,-rpath,/home/igor/Qt/5.5/gcc_64 -Wl,-rpath,${ORIGIN} -Wl,-rpath,/home/igor/Qt/5.5/gcc_64/lib On 22.02.2016 10:26, Nikos Chantziaras wrote: That doesn't do anything useful. It just uses an absolute path. If you move the executable to a

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Nikos Chantziaras
That doesn't do anything useful. It just uses an absolute path. If you move the executable to a different directory, it stops working. You can verify that by looking at the Makefile. For example, here, this: QMAKE_RPATHDIR += ${ORIGIN} becomes: -Wl,-rpath,/home/realnc/projects/myapp/

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Igor Mironchik
Hi, Got it: QMAKE_RPATHDIR += ${ORIGIN} On 22.02.2016 10:11, Nikos Chantziaras wrote: 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

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Nikos Chantziaras
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

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Igor Mironchik
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

Re: [Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Koehne Kai
> -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,

[Interest] Best practice to packages on Ubuntu with QtIF

2016-02-21 Thread Igor Mironchik
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