Qt で OpenNI と NiTE を使用しようとしましたが、次のエラーが発生します。
C:\Users\User\Google Drive\Projects\Qt-Projects\untitled\mainwindow.cpp:3: error: C1083: Cannot open include file: 'OpenNI2/Include/OpenNI.h': No such file or directory
同じことが NiTE でも起こります。Qt Creator の add library インターフェイスでライブラリを追加し、環境変数の存在を確認しました。これが私の .pro ファイルです:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../OpenNI2/Lib/ - lOpenNI2
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../OpenNI2/Lib/ -lOpenNI2d
INCLUDEPATH += $$PWD/../../../../../../OpenNI2/Include/
DEPENDPATH += $$PWD/../../../../../../OpenNI2/Include/
win32:CONFIG(release, debug|release): LIBS += - L$$PWD/../../../../../../PrimeSense/NiTE2/Lib/ -lNiTE2
else:win32:CONFIG(debug, debug|release): LIBS += - L$$PWD/../../../../../../PrimeSense/NiTE2/Lib/ -lNiTE2d
INCLUDEPATH += $$PWD/../../../../../../PrimeSense/NiTE2/Include/
DEPENDPATH += $$PWD/../../../../../../PrimeSense/NiTE2/Include/