I added my inclusions in paths and characters, but they are not added at qt compilation time. To compile, qt uses these functions and ignores the words I added:
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Idebug -I. -o debug/bp.o bp.cpp g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Idebug -I. -o debug/Navigation.o Navigation.cpp Navigation.cpp:16:22: error: XnOpenNI.h: No such file or directory Navigation.cpp:17:26: error: XnCppWrapper.h: No such file or directory Navigation.cpp:18:20: error: XnHash.h: No such file or directory Navigation.cpp:19:19: error: XnLog.h: No such file or directory Navigation.cpp:22:16: error: cv.h: No such file or directory Navigation.cpp:23:18: error: cv.hpp: No such file or directory
I found the answer here: QT Eclipse Integration - Adding External Libs
This seems to be a conflict between the CDT and the Qt constructor, so even if you add options to the CDT, as shown in the screenshot above, the compiler will not find them!
You need to add them to the xxx.pro file as follows: http://doc.qt.digia.com/4.5/qmake-variable-reference.html#includepath
source share