OpenCV 2.4.3 Windows installation error (Bug #2523)
Description
Hello,
While I am trying to build OpenCV 2.4.3, i got following error.
[ 33%] Built target pch_Generate_opencv_perf_core
Linking CXX executable ..\..\bin\opencv_perf_core.exe
Info: resolving vtable for cv::_OutputArray by linking to impZTVN2cv12_OutputArrayE (auto-import)
Info: resolving vtable for cv::_InputArray by linking to imp_ZTVN2cv11_InputArrayE (auto-import)
Info: resolving vtable for cv::Exception by linking to imp_ZTVN2cv9ExceptionE (auto-import)
Creating library file: ..\..\bin\libopencv_perf_core.dll.a
c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Cannot export _ZN12_GLOBAL_N_13ROp3allEv: symbol not found
Cannot export ZN12_GLOBAL_N_17CmpType3allEv: symbol not found
collect2: ld returned 1! exit status
mingw32-make2: * [bin/opencv_perf_core.exe] Error 1
mingw32-make1: [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
mingw32-make: ** [all] Error 2
I am using mingw32 compiler version 4.4 that is shipped with QT 4.8
I have attached the snapshot of the error and my cmake options.
The same cmake options works fine for linux and Opencv 2.3.1 to OpenCV 2.4.2 in windows.
I need the suggestions to overcome from this error.
Thank you.
Suman
Associated revisions
Merge pull request #2523 from ilya-lavrenov:tapi_filters
History
Updated by Vadim Pisarevsky over 12 years ago
We recommend to use newer versions of ffmpeg.
Or, please, consider the free Microsoft Platform SDK or the free Visual Studio 2012 Express. MinGW, especially the older versions, is loaded with bugs, unfortunately.
- Assignee set to Vadim Pisarevsky
- Category set to build/install
- Target version set to 3.0
Updated by Toby Zhang about 12 years ago
I have the same problem when I built OpenCV 2.4.3 with mingw32 (gcc4.4.0) in Qt4.7.3
After modified code as below, it worked for me.
remove anonymous namespace in the following code:
- opencv\modules\ts\include\opencv2\ts\ts_perf.hpp
- opencv\modules\gpu\perf\perf_core.cpp
- opencv\modules\gpu\perf\perf_imgproc.cpp
- opencv\modules\gpu\perf\perf_filters.cpp
- opencv\modules\stitching\src\motion_estimators.cpp
Hope it's useful for you
Updated by guan-jhih chen about 12 years ago
Dear Toby:
I followed ur rules, and built the OpenCV 2.4.3 with mingw32 (gcc4.4.0) in Qt4.7.3 successfully.
But the program crashed when i use the function - cv::fitellipse.
It (cv::fitellipse) can be used when I build the OpenCV 2.4.0 with mingw32 (gcc4.4.0) in Qt4.7.3
I dont know what happened in the function: cv::fitellipse between the OpenCV 2.4.0 and 2.4.3 (2.4.2, 2.4.1 or later) ?
Anyone found it?
Thanks for help.
littlefree.
Toby Zhang wrote:
I have the same problem when I built OpenCV 2.4.3 with mingw32 (gcc4.4.0) in Qt4.7.3
After modified code as below, it worked for me.remove anonymous namespace in the following code:
- opencv\modules\ts\include\opencv2\ts\ts_perf.hpp
- opencv\modules\gpu\perf\perf_core.cpp
- opencv\modules\gpu\perf\perf_imgproc.cpp
- opencv\modules\gpu\perf\perf_filters.cpp
- opencv\modules\stitching\src\motion_estimators.cppHope it's useful for you
Updated by Michele Adduci over 10 years ago
- Assignee deleted (
Vadim Pisarevsky) - Status changed from Open to Cancelled