Unsolved Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
-
Hi
i link opencv with qt creator 5.7. When i include header file "#include<opencv2/opencv.hpp>" it give error.I try but i cant find any solution... -
Hi and welcome to devnet,
Did you add the folder where the opencv2 include directory can found to
INCLUDEPATH
? -
Thanks for reply..
Yes i include the folder "opencv2"
INCLUDEPATH +=C:\opencv\build\include -
@Faisal_Ali Does C:\opencv\build\include contain opencv2/opencv.hpp ?
-
@Faisal_Ali You should use / instead of \ in pro files.
-
@jsulm
yes "include" folder contain opencv2/opencv.hpp -
@Faisal_Ali What about my other comment: using / instead of \ in INCLUDEPATH +=C:\opencv\build\include ?
-
@jsulm i change it but not solve my error
-
@Faisal_Ali Did you run qmake again after the change in pro file? So, run qmake and do a rebuild.
If it still does not work then please paste the compiler call so we can see which include directories were passed to the compiler. -
@jsulm Thanks Brother And I was About to cry Because of This Error
found on many Places But it wasn't Fruit full
Best regards
Faisal Ali