Questions again.
It's said that in
Code: Select all
Settings->Build Settings->gnu g++->Advanced->Global Paths->Libraries Path
However, it seems if I created my project using QMakePlugin , the above "global paths" is useless at all now.
Code: Select all
Plugins->QMake->New qmake based project
I strictly follow the tutorial at http://codelite.org/LiteEditor/QmakePlugin
Then , when I tried to build my QMake project, I obtained the following warning messages .
Code: Select all
make[1]: warning: -jN forced in submake: disabling jobserver mode.
/usr/bin/qmake -spec /usr/share/qt4/mkspecs/linux-g++ -unix -o objcrop.mk objcrop.pro
WARNING: Failure to find: moc_objcrop.cpp
WARNING: Failure to find: ui_objcrop.h
RCC: Warning: No resources in 'objcrop.qrc'.
And finally, I obtained the following error messages:
Code: Select all
g++ -o Debug/objcrop Debug/main.o Debug/moc_objcrop.o Debug/objcrop.o Debug/qrc_objcrop.o Debug/moc_objcrop.o [color=#FF0000] [b]-L/usr/lib[/b][/color] cxcore cv cvaux highgui ml -lQtGui -lQtCore -lpthread
g++: cxcore: No such file or directory
g++: cv: No such file or directory
g++: cvaux: No such file or directory
g++: highgui: No such file or directory
g++: ml: No such file or directory
make[1]: *** [Debug/objcrop] Error 1
make[1]: Leaving directory `/home/jiapei/MyPrograms/codelite/aam/objcrop'
make: *** [All] Error 2
----------Build Ended----------
0 errors, 286 warnings
look at the red word "-L/usr/lib", this seems to tell /usr/lib is the only search paths for linked libraries.
That is to say, QMakePlugin projects ignore "Global Paths->Libraries Path" settings which seems to be a serious bug of CodeLite.
It's then understandable that libraries cxcore, cv, cvaux, highgui, ml are not able to be found under "/usr/local/lib".
Then, in order to build my project, I put "/usr/local/lib" under project->settings->Linker->Library Path.
In this case, error messages still exist as
Code: Select all
g++ -o Debug/objcrop Debug/main.o Debug/moc_objcrop.o Debug/objcrop.o Debug/qrc_objcrop.o Debug/moc_objcrop.o [color=#FF0000] [b]-L/usr/lib /usr/local/lib[/b][/color] cxcore cv cvaux highgui ml -lQtGui -lQtCore -lpthread
g++: cxcore: No such file or directory
g++: cv: No such file or directory
g++: cvaux: No such file or directory
g++: highgui: No such file or directory
g++: ml: No such file or directory
however, libraries cxcore, cv, cvaux, highgui, ml are still not able to be found under these two folders.
Best Regards
JIA Pei