我正在尝试在Windows10机器上安装OpenCV-3.2.0。我使用CMake3.8.0-rc1来 配置并生成opencv,并使用git bash通过'mingw32-make -j8'编译了opencv。 以下是我收到的消息(这是仅使用“ make”重新运行的结果)
[ 3%] Built target zlib
[ 10%] Built target libjpeg
[ 10%] Built target opencv_core_pch_dephelp
[ 18%] Built target libwebp
[ 23%] Built target libjasper
[ 23%] Built target opencv_flann_pch_dephelp
[ 23%] Built target opencv_imgproc_pch_dephelp
[ 23%] Built target opencv_ml_pch_dephelp
[ 23%] Built target opencv_photo_pch_dephelp
[ 23%] Built target opencv_video_pch_dephelp
[ 23%] Built target opencv_imgcodecs_pch_dephelp
[ 24%] Built target opencv_shape_pch_dephelp
[ 24%] Built target opencv_videoio_pch_dephelp
[ 25%] Built target opencv_highgui_pch_dephelp
[ 26%] Built target opencv_objdetect_pch_dephelp
[ 26%] Built target opencv_superres_pch_dephelp
[ 26%] Built target opencv_features2d_pch_dephelp
[ 26%] Built target opencv_calib3d_pch_dephelp
[ 26%] Built target opencv_stitching_pch_dephelp
[ 26%] Built target opencv_videostab_pch_dephelp
[ 32%] Built target libtiff
[ 35%] Built target libpng
[ 35%] Built target pch_Generate_opencv_core
[ 46%] Built target IlmImf
[ 47%] Built target pch_Generate_opencv_flann
[ 47%] Built target pch_Generate_opencv_imgproc
[ 48%] Built target pch_Generate_opencv_ml
[ 48%] Built target pch_Generate_opencv_photo
[ 49%] Built target pch_Generate_opencv_video
[ 49%] Built target pch_Generate_opencv_imgcodecs
[ 50%] Built target pch_Generate_opencv_shape
[ 50%] Built target pch_Generate_opencv_videoio
[ 50%] Built target pch_Generate_opencv_highgui
[ 50%] Built target pch_Generate_opencv_objdetect
[ 50%] Built target pch_Generate_opencv_superres
[ 50%] Built target pch_Generate_opencv_features2d
[ 51%] Built target pch_Generate_opencv_calib3d
[ 51%] Built target pch_Generate_opencv_stitching
[ 51%] Built target pch_Generate_opencv_videostab
[ 51%] Linking CXX shared library ..\..\bin\libopencv_core320.dll
CMakeFiles\opencv_core.dir/objects.a(parallel_pthreads.cpp.obj):parallel_pthreads.cpp:(.text$_ZL6sscanfPKcS0_z.constprop.23+0x1b): undefined reference to `__mingw_vsscanf'
CMakeFiles\opencv_core.dir/objects.a(persistence.cpp.obj):persistence.cpp:(.text$_ZL10icv_strtodP13CvFileStoragePcPS1_+0x15): undefined reference to `__mingw_strtod'
CMakeFiles\opencv_core.dir/objects.a(persistence.cpp.obj):persistence.cpp:(.text$_ZL10icv_strtodP13CvFileStoragePcPS1_+0x13c): undefined reference to `__mingw_strtod'
D:/Qt/mingw32_482/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\opencv_core.dir/objects.a(persistence.cpp.obj): bad reloc address 0x13c in section `.text$_ZL10icv_strtodP13CvFileStoragePcPS1_'
collect2.exe: error: ld returned 1 exit status
modules\core\CMakeFiles\opencv_core.dir\build.make:1475: recipe for target 'bin/libopencv_core320.dll' failed
mingw32-make[2]: *** [bin/libopencv_core320.dll] Error 1
CMakeFiles\Makefile2:1365: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:161: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
我做了一些搜索,但没有好的答案。有人可以给我提示什么地方吗?