[Qt-interest] Linux Deployment using rpath and $ORIGIN

Thiago Macieira thiago at kde.org
Sun Dec 12 01:11:06 CET 2010


On Saturday, 11 de December de 2010 21:03:45 Joshua Grauman wrote:
> I've read the Qt docs about deploying Qt under Linux. It gives the
> following  three ways to deploy the libraries when using dynamic linking.
> I was wondering if the best option isn't even mentioned here. I just read
> that rpath can take $ORIGIN as an option which looks for libraries in the
> directory of the executable. Wouldn't that avoid all the disadvantages
> listed below, and not require the use of a startup script separate from
> the executable? Couldn't a simple tool called linuxdeployqt (similar to
> the Mac one) be created to set the rpath of the executable to $ORIGIN, and
> copy the libs to that directory? Wouldn't this possibly also avoid the
> setuid problem listed below?

$ORIGIN isn't supported in all systems.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101212/433a9f3f/attachment.bin 


More information about the Qt-interest-old mailing list