[Interest] Loading libraries from root folder

Thiago Macieira thiago.macieira at intel.com
Mon Sep 9 17:40:39 CEST 2013


On segunda-feira, 9 de setembro de 2013 11:05:39, Joseph W Joshua wrote:
> Hello all,
> 
> I wish to deploy my application under both Linux and windows. In
> windows, the OS automatically looks for libraries in the application
> startup path. However in Linux, the OS always complains about missing
> libs, even though they are located in the same folder as the app.
> 
> Is there a way, in linux, to tell the application to use the libs in the
> same folder as the app?

Add to your .pro file:

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

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130909/2e6976a0/attachment.sig>


More information about the Interest mailing list