gcc编译显示不存在这个文件,
windres.exe 就报错
gcc: error: long: No such file or directory
C:\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1506: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [CMakeFiles\Makefile2:2237: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:179: all] Error 2
附上解决办法
关闭cmake里OPENCV_ENABLE_ALLOCATOR_STATS这个选型就可以了
已验证OpenCV4.3.0 和 OpenCV3.14.0