Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
-
wrote on 7 Nov 2016, 16:43 last edited by
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
? -
wrote on 9 Nov 2016, 09:44 last edited by
Thanks for reply..
Yes i include the folder "opencv2"
INCLUDEPATH +=C:\opencv\build\include -
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 ?
-
Thanks for reply..
Yes i include the folder "opencv2"
INCLUDEPATH +=C:\opencv\build\include@Faisal_Ali You should use / instead of \ in pro files.
-
@Faisal_Ali Does C:\opencv\build\include contain opencv2/opencv.hpp ?
wrote on 10 Nov 2016, 11:35 last edited by@jsulm
yes "include" folder contain opencv2/opencv.hpp -
@jsulm
yes "include" folder contain opencv2/opencv.hpp@Faisal_Ali What about my other comment: using / instead of \ in INCLUDEPATH +=C:\opencv\build\include ?
-
@Faisal_Ali What about my other comment: using / instead of \ in INCLUDEPATH +=C:\opencv\build\include ?
wrote on 10 Nov 2016, 11:50 last edited by@jsulm i change it but not solve my error
-
@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. -
@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.wrote on 14 Nov 2016, 10:22 last edited by@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
1/10