[Qt-interest] controlling search order for finding link libraries in qtCreator (Linux)

hugh hdixon at bigpond.net.au
Sat Mar 5 01:35:18 CET 2011


Hi,
I am trying to build a qt application using the exiv2 package on a Mandrivia 
Linux distribution and have encountered a problem with linking, which I hope 
is more general than my specific situation.

The linker command line shown in qtcreator is:

g++ -Wl,  --snip--    -L/usr/lib -L/usr/local/lib -lexiv2  --snip--

I have an old  exiv2 in /usr/lib and the one I want to use in /usr/local/lib.   
Using the old lib either causes the link to fail, or the application to crash 
when I run it.   

If I take the qtcreator command above to bash and run

g++ -Wl,  --snip--    -L/usr/local/lib -L/usr/lib -lexiv2  --snip--

the link works and all is sweet.
is there some way that I can control the search order for the link libraries 
in qtcreator?

Thanks for any help,

Hugh





More information about the Qt-interest-old mailing list