0
我一直在嘗試使用OpenNI和黑夜使用Qt,但我得到這個錯誤:鏈接OpenNI和黑夜使用Qt
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
同樣與黑夜發生得。 我已經添加了庫與Qt Creator的添加庫接口,我檢查了存在的環境變量。 這是我的.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/