Ask Your Question
0

Cannot build 2.4.9 on Windows7 MinGW32

asked 2014-09-10 10:33:45 -0600

I am trying to build OpenCV 2.4.9 on Windows7, with MinGW32.

I downloaded the unix version, configure cmake for MinGW Makefiles, and pecify the location of c and c++ compilers. cmake --version ==> 2.8.12.

I did not alter anything in cmake. My version of g++: mingw32-g++.exe --version ==> 4.8.1

Configure/generate runs fine, then when running make

I get :

CMakeFiles\opencv_core.dir/objects.a(algorithm.cpp.obj):algorithm.cpp:(.text$_ZN2cv12MatAllocatorD0Ev[__ZN2cv12MatAllocatorD0Ev]+0xf): undefined reference to `operator delete(void*)' CMakeFiles\opencv_core.dir/objects.a(algorithm.cpp.obj):algorithm.cpp:(.text$_ZN2cv9FormatterD0Ev[__ZN2cv9FormatterD0Ev]+0xf): undefined reference to `operator delete(void*)' c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: CMakeFiles\opencv_core.dir/objects.a(algorithm.cpp.obj): bad reloc address 0xf in section `.text$_ZN2cv9FormatterD0Ev[__ZN2cv9FormatterD0Ev]' collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [bin/libopencv_core249.dll] Error 1 mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 mingw32-make: *** [all] Error 2

Am I missing something?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-01 14:59:04 -0600

i'm running into the same issue. did you ever resolve this?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-09-10 10:33:45 -0600

Seen: 365 times

Last updated: Nov 01 '14