OpenCV 2.4.13.4使用Mingw64-GCC-5.1产生错误

时间:2017-11-08 09:31:14

标签: opencv build compiler-errors

我正在尝试使用OpenCV 2.4.13.4 Mingw64-GCC-5.1编译Windows 10,但我一直收到以下错误:

[ 95%] Generating perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch
g++.exe: error: unrecognized command line option '-Wo-array-bounds'
modules\stitching\CMakeFiles\pch_Generate_opencv_perf_stitching.dir\build.make:61: recipe for target 'modules/stitching/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch' failed
mingw32-make[2]: *** [modules/stitching/perf_precomp.hpp.gch/opencv_perf_stitching_Release.gch] Error 1
CMakeFiles\Makefile2:6569: recipe for target 'modules/stitching/CMakeFiles/pch_Generate_opencv_perf_stitching.dir/all' failed
mingw32-make[1]: *** [modules/stitching/CMakeFiles/pch_Generate_opencv_perf_stitching.dir/all] Error 2

请注意,此处没有拼写错误,-Wo-array-bounds正是我收到的输出(而不是谷歌搜索建议的-Wno-array-bounds!)。知道如何解决问题吗?我在整个构建文件夹中搜索了-Wo-array-bounds,可能会将其更改为-Wno-array-bounds但我在构建文件夹中的任何文件中都找不到此命令行选项。

0 个答案:

没有答案