MingGW (4.7.0) does not build OpenCV2.4.2

asked 2012-10-17 04:33:45 -0500

BDVS gravatar image

I have previously been running OpenCV2.1 but need to upgrade to latest to get extended findHomography implementation with additional parameters.

MINGW gcc 4.7.0 (installed with TDM-GCC-4.7.1.2) drops out when trying to build algorithm.cpp.obj, due I think to not handling template declaration correctly.

Mingw drops out with: ...operations.hpp:2634: error: invalid initialization of reference of type 'cv::Matx<cv::algorithm, m,="" n="">&' from expression of type 'cv::Ptr<cv::algorithm>'

Can anyone point me at a pre-built set of libraries under mingw for OpenCV2.4.2, or has anyone been successful in building it under any mingw release? (I need to use mingw on account of also using Qt 4.8). I get identical operation under mingw4.4, as installed by Qt. Thanks

edit retag flag offensive close merge delete

Comments

When you executed command CMake, have you added -G "MinGW Makefiles" option? And if you want to use the latest version of OpenCV(2.4.2) with support of Java for desktop, I'd recomend to install it on Ubuntu

Andriy gravatar imageAndriy ( 2012-10-17 06:34:09 -0500 )edit