[Interest] To rpath or not when building Qt

Michael Jackson imikejackson at gmail.com
Wed Mar 11 13:47:58 CET 2015


On Mar 11, 2015, at 5:56 AM, Bo Thorsen <bo at vikingsoft.eu> wrote:

> Den 10-03-2015 kl. 20:07 skrev Scott Aron Bloom:
>> 
>> When building Qt for distribution via LGPL of a closed source product 
>> using shared libraries.
>> 
>> What is the best method to make sure the plugins pickup the Qt 
>> libraries you are shipping?
>> 
> 
> In this case you mean this as a help to the user, right? That he can 
> just start the application and then it works.
> 
> The usual approach on unix based systems is to ship a script that runs 
> the executable with the proper library path set. This way you can 
> support multiple install locations which rpath can't do.
> 
> Bo.
> 
> -- 
> Viking Software
> Qt and C++ developers for hire
> http://www.vikingsoft.eu


Are the binaries that Qt ships for LINUX built this way? I used the "offline" installer for Qt 5.4.1 and I can not seem to make a distribution of my application. (Asked on another thread). Some blogs seem to hint at adjusting the path during the packaging process.

Thanks
Mike Jackson


More information about the Interest mailing list