I was trying to build opencv to use in Code::Blocks following this guide: link: https://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw. While building, I got the following error. How to proceed?
[ 39%] Building RC object modules/videoio/CMakeFiles/opencv_videoio.dir/vs_version.rc.obj
gcc: error: SOFTWARE\opencv\sources\3rdparty\include\ffmpeg_: No such file or directory gcc: error: unrecognized command line option '-\' C:\MinGW\bin\windres.exe: preprocessing failed. modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:236: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/vs_version.rc.obj' failed mingw32-make[2]: * [modules/videoio/CMakeFiles/opencv_videoio.dir/vs_version.rc.obj] Error 1 CMakeFiles\Makefile2:2912: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed mingw32-make[1]: [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: ** [all] Error 2