[Qt-creator] lib search path

Jason H scorp1us at yahoo.com
Thu Jul 19 16:41:57 CEST 2012

Ugh, I hate that "seems to work" it indicates a lack of knowledge on how libraries are handled, which can come back to burn you. 

ls.so.conf file is key to "seems to work" same as the ldconfig command, and LD_LIBRARY_PATH environment variable. 

You'll also find problems with plugins (especially the image ones) knowing the command 'ldd' woudl be of great benefit.

My advice is stick to 'make bindist' because it has been written by people much more familiar with packaging in general and Qt packaging in specific. If you don't use bindist, at least take a look at what it does.

 From: Duane <duane.hebert at group-upc.com>
To: qt-creator at qt-project.org 
Sent: Thursday, July 19, 2012 10:17 AM
Subject: Re: [Qt-creator] lib search path
On 07/19/2012 07:42 AM, eike.ziller at nokia.com wrote:
> On 19 Jul 2012, at 13:00, ext Diego Iastrubni wrote:
>> On Thu, Jul 19, 2012 at 1:50 PM, Duane Hebert <duane.hebert at group-upc.com> wrote:
>> I installed Qt from the SDK.  It works fine on my desktop.  But when I install my application on our target controller, it doesn't find them unless I put them in /usr/lib.
>> BTW I would just do this but one of our guys says that libs should be in usr/local/lib.  Is there any reason for this?
>> If you deploy the QtLibs with your application into a non standard lib you might want to wrap your binary with a shell script which set LD_LIBRARY_PATH.
>> You might also read these docs: http://qt-project.org/doc/qt-4.8/deployment.html
> You can also just run "make bindist" in the qt creator build. That creates a deployable bundle that includes the Qt that you used to compile Qt Creator.

Thanks for all of the suggestions.  We decided to just deploy the Qt 
libs in usr/lib.  This seems to work.

Qt-creator mailing list
Qt-creator at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120719/d20c3d0e/attachment.html>

More information about the Qt-creator mailing list