[Qt5-feedback] Qt major versions (was: C++ api to use for UI in addition to QML)

Konstantin Tokarev annulen at yandex.ru
Sat May 28 15:53:05 CEST 2011



28.05.2011, 03:59, Craig.Scott at csiro.au:
> On 27/05/2011, at 5:33 PM, BRM wrote:
>
> There is also the various linker options to add the 'lib' directory in your
> program path to the binary's search.
> We install Qt to /usr/local/TrollTech/Qt-<version> on our systems and link
> specifically against that path. No editing LD_LIBRARY_PATH on Linux.
>
> That's okay if you don't want your package to be relocatable. If you want a relocatable package, using RPATH support (which I think is what you are talking about here) breaks. But if you don't care about relocatable packages and you know where your Qt libs will be installed (ie a very controlled set of deployment machines), then RPATH does save you from having to modify LD_LIBRARY_PATH. There's still the issue of QT_PLUGIN_PATH, but if you are not providing your own designer plugins, etc., then that shouldn't affect you. The situation on Mac is effectively the same as on Linux too.

It's always possible to use launcher script setting proper LD_LIBRARY_PATH exclusively for your application

-- 
Regards,
Konstantin


More information about the Qt5-feedback mailing list