On 1/19/2011 6:45 PM, ext Jean Pierre Charalambos wrote: > On Wed, Jan 19, 2011 at 12:40 PM, André Pönitz<[email protected]> > wrote: >> On Wednesday 19 January 2011 18:14:52 ext Jean Pierre Charalambos wrote: >>> Hi Qt'rs, >>> >>> I'm using qt-creator 2.0.94 and I want to change the order in which >>> external libraries are searched when building/linking my project. >>> >>> I have two versions of a library called glew: user wide (located at >>> /usr/lib) and personal (located at $HOME/Fun/lib). I used the "add >>> library wizard to add the personal version of the library which is the >>> one I want to use to build my project. Part of the output of the >>> wizard which is added to my .pro file is:
[...] > Thanks for your suggestions. No success yet: > LIBS -= -L/usr/lib doesn't remove the path and thus it get added twice > with LIBS += -L$$PWD/../../Fun/lib/ -L/usr/lib -lGLEW > LIBS = -L$$PWD/../../Fun/lib/ -lGLEW $$LIBS didn't work either. > > More suggestions are welcome. Regards, Not exactly a portable solution, but you could try to remove the /usr/lib inclusion from the mkspec you're using (in $QTDIR/mkspec, e.g. $QTDIR/linux-g++-maemo/qmake.conf if you compile for maemo). QMAKE_LIBDIR seems to be the magic variable in there, so I suggest you also experiment with setting this variable in your .pro file :) Regards Kai > Jean Pierre > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator -- Kai Koehne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
