PDA

View Full Version : INCLUDE lib in qtcreator



shenakan
8th September 2009, 14:59
I need to add a lib like /usr/local/lib/libYARP_OS.so in my program and an include like
/usr/local/include/yarp/.

I setup the following environnement variables in the qtcreator->project->build environement
INCLUDE_PATH=/usr/local/lib/libYARP_OS.so
LD_LIBRARY_PATH=/usr/local/include/yarp/

But when I compile it is still doesnt find yarp... Do you have any idea ?

faldzip
8th September 2009, 18:12
add to your .pro file:


INCLUDEPATH += /usr/local/lib/libYARP_OS.so
LIBS += -lYARP_OS

if it doesnt work adding also path to the LIBS variable:


LIBS += -L/usr/local/lib -lYARP_SO