It seems to me that you might consider LIBS = -L$$PWD/../../Fun/lib/ -lGLEW $$LIBS or something like that.
/s/ Adam On Wed, Jan 19, 2011 at 11:14 AM, Jean Pierre Charalambos <[email protected]> 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: > > unix:!macx:!symbian: LIBS += -L$$PWD/../../Fun/lib/ -lGLEW > > However, when building the application the system tries to link with > the system wide version of the library (the one found at /usr/lib). > Looking into the generated Makefile I could see that the problem is > that the /usr/lib path is listed first: > > LIBS = $(SUBLIBS) -L/usr/X11R6/lib -L/usr/lib > -L/home/pierre/projects/mountains/../../Fun/lib/ -lGLEW -lpthread > -lXext -lX11 -lm > > Modifying by hand the Makefile solves the problem, but I want to do it > from Qt-Creator (i.e., from the .pro file). Anyone know how to do it? > > Best regards, > > Jean Pierre > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator > _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
