How to correctly add include path?
-
Hi...
I am using Qt Creator,
Recently I am using a webcam and openCV, it works well. Now, it will add a depth camera. After installing the SDK, I want to add it on the .pro file.. But I could not use the new class from the depth camera.
Please help.This is the previous .pro:
@
:
FORMS += dialogapplication.ui
dialogsetup.uiINCLUDEPATH += C:\opencv2.2\include
LIBS +=-LC:\opencv2.2\lib
-lopencv_core220
-lopencv_highgui220
-lopencv_imgproc220
-lopencv_features2d220
-lopencv_calib3d220
-lopencv_video220
@This is after adding the include path:
@
:
FORMS += dialogapplication.ui
dialogsetup.uiINCLUDEPATH += C:\opencv2.2\include
INCLUDEPATH += C:\Program Files\SoftKinetic\DepthSenseSDK\includeLIBS +=-LC:\opencv2.2\lib
-lopencv_core220
-lopencv_highgui220
-lopencv_imgproc220
-lopencv_features2d220
-lopencv_calib3d220
-lopencv_video220
@Thanks.
-
Hi,
You should always $$quote("Your path with spaces") especially on Windows
Also, you don't link to any additional library that is in your additional SDK
-
And insted of "" inside your path use "/"
-
Hi..Thank for reply:
I have modified, now using $$ and add additional LIB, but there is an error message:
LNK1181: cannot open input file 'DepthSense.lib'Few days I cannot solve it, I'm sure that the path is right because I copied it from windows explorer, is there any suggestion?
@
:
INCLUDEPATH += C:\opencv2.2\include
INCLUDEPATH += C:\Program$$Files\SoftKinetic\DepthSenseSDK\includeLIBS +=-LC:\opencv2.2\lib
-lopencv_core220
-lopencv_highgui220
-lopencv_imgproc220
-lopencv_features2d220
-lopencv_calib3d220
-lopencv_video220LIBS +=-LC:\Program$$Files\SoftKinetic\DepthSenseSDK\lib
-lDepthSense
-lDepthSensePlugins
@ -
I didn't say replace space with $$, here:
@
INCLUDEPATH += $$quote("C:/Program Files/SoftKinetic/DepthSenseSDK/include")
LIBS +=-L$$quote("C:/Program Files/SoftKinetic/DepthSenseSDK/lib")
@And as puksec wrote, use forward slashes in your paths