Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
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
Thanks for reply..
Yes i include the folder "opencv2"
@Faisal_Ali Does C:\opencv\build\include contain opencv2/opencv.hpp ?
@Faisal_Ali You should use / instead of \ in pro files.
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