Ask Your Question

Ray Grene's profile - activity

2014-07-28 23:27:51 -0600 commented question unable to use opencv on windows

@berak thanks :)

2014-07-28 23:04:48 -0600 received badge  Editor (source)
2014-07-28 23:03:27 -0600 asked a question unable to use opencv on windows

I installed the 2.4.9 version on my windows 8. I am trying to use it with code::Blocks. I have included the include files and the libraries in the compiler setting as found on this tutorial. But when i compile the following errors show up

D:\cppproj\opencvtest\main.cpp|12|undefined reference to cv::imread(std::string const&, int)'| D:\cppproj\opencvtest\main.cpp|13|undefined reference tocv::namedWindow(std::string const&, int)'| D:\cppproj\opencvtest\main.cpp|14|undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)'| D:\cppproj\opencvtest\main.cpp|14|undefined reference tocv::imshow(std::string const&, cv::_InputArray const&)'| D:\cppproj\opencvtest\main.cpp|15|undefined reference to cv::waitKey(int)'| obj\Debug\main.o||In functionZN2cv3MatD1Ev':| D:\OpenCV\opencv\build\include\opencv2\core\mat.hpp|278|undefined reference to cv::fastFree(void*)'| obj\Debug\main.o||In functionZN2cv3MataSERKS0_':| D:\OpenCV\opencv\build\include\opencv2\core\mat.hpp|298|undefined reference to cv::Mat::copySize(cv::Mat const&)'| obj\Debug\main.o||In functionZN2cv3Mat7releaseEv':| D:\OpenCV\opencv\build\include\opencv2\core\mat.hpp|367|undefined reference to `cv::Mat::deallocate()'|

I searched for this issues on the net and learnt that this could be because of missing libraries but i have included all the libraries under the \opencv\opencv\build\x86\vc12\lib :\

I tried building it from source using Cmake but the include and lib folders are empty. I have also tried the same on Eclipse and met with the same errors :\

Any ideas on how to fix this?? :\