OpenCV doesn't compile with MinGW under Windows 7 (Bug #1828)
Description
Hi!
I've used r8126 under Win7 32 bit, compiling with MinGW, without gpu and cuda.
It gives following log:
[ 20%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.obj
Linking CXX shared library ..\..\bin\libopencv_core240.dll
Creating library file: ..\..\lib\libopencv_core240.dll.a
c:/progra~1/codebl~1/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/
ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.621 ' unrecognized
Cannot export _ZN12_GLOBAL__N_112GpuFuncTableD0Ev: symbol not found
Cannot export _ZN12_GLOBAL__N_112GpuFuncTableD1Ev: symbol not found
Cannot export _ZTVN12_GLOBAL__N_112GpuFuncTableE: symbol not found
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/libopencv_core240.dll] Error 1
mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [all] Error 2
Does anybody know what's the reason may be?
Associated revisions
Merge pull request #1828 from SpecLad:merge-2.4
History
Updated by Anatoly Baksheev almost 13 years ago
Vlad, could you see this?
- Assignee changed from Anatoly Baksheev to Vladislav Vinogradov
Updated by Andrey Kamaev almost 13 years ago
The reason was CV_EXPORTS
macro used inside anonymous namespace. r8131 should fix this problem.
- Status changed from Open to Done