Search code examples
qtopencvlinkerqmakeinclude-path

QT and OpenCV error: core.hpp not found


i have installed qt 5.0.2 with opencv 2.4.5 with windows 7 32-bit following this tutorial but when i finished i tested it using the example mentioned in the previous link but i had this error

error: opencv2/core/core.hpp: No such file or directory 

Update


top 5 errors:

C:\opencv\opencv_bin\install\include\opencv2\core\core.hpp:4341: In file included from ..\..\..\..\..\..\opencv\opencv_bin\install\include/opencv2/core/core.hpp:4341:0,
C:\Qt\Qt5.0.2\Tools\QtCreator\bin\test2\main.cpp:2: from ..\test2\main.cpp:2:
C:\opencv\opencv_bin\install\include\opencv2\core\operations.hpp:928: error: prototype for 'cv::Vec<_Tp, n> cv::Matx<_Tp, m, n>::solve(const cv::Vec<_Tp, m>&, int) const' does not match any in class 'cv::Matx<_Tp, m, n>'
C:\Qt\Qt5.0.2\Tools\QtCreator\bin\test2\main.cpp:2: In file included from ..\test2\main.cpp:2:0:
C:\opencv\opencv_bin\install\include\opencv2\core\core.hpp:495: error: candidates are: cv::Matx<_Tp, n, 1> cv::Matx<_Tp, m, n>::solve(const cv::Matx<_Tp, m, 1>&, int) const

Could anybody help me please to determine what's the matter and how to solve it.


Solution

  • the problem has been solved... it was copmatability issues between the q creator and opencv,,, i've installed QTsdK , opencv 2.3.1 and cmake 2.8.11 follwing the same tutorial and every think goes in the right way :)