OpenCV 3.4, build with MinGW 8.1.0
I recently updated my Code::Block version which optional comes with mingw. Also updated updated OpenCV from 3.2.
CMake does fine so far, generating a Code::Block project file. But compiling OpenCV gives this:
cd /d D:\Guido\Downloads\opencv-3.4.10\build\modules\core && C:\PROGRA~2\CODEBL~1\MinGW\bin\windres.exe -O coff $(RC_DEFINES) $(RC_INCLUDES) $(RC_FLAGS) D:\Guido\Downloads\opencv-3.4.10\build\modules\core\vs_version.rc CMakeFiles\opencv_core.dir\vs_version.rc.obj
gcc: error: long: No such file or directory
C:\PROGRA~2\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.
mingw32-make.exe[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:2589: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
I've to admit - I don't have any clue. Where is "long" not recognized etc.?
Any help much appreciated.
CodeBlocks: 20.03, mingw: MinGW-W64 8.1.0, 32/64 bit, SEH, CMake: 3.17.1
It always makes sense to update one thing at a time, so I would try with the old version of OpenCV first to see if the compiler works ok. If not, you'll know where the problem is and can either fix the compiler prolem or even downgrade MingW to get things working temporarily - CodeBlocks lets you select the compiler separately.
Thank you for your hint. But to my experience it's quite the opposite. If I (have to) do a major update of one component, it is usually necessary to update the other components too, as not to have a "queer" combination (with "queer" problems), which is of no use for anyone. However I can get OpenCV 3.2 get through with mingw 8.1 with some minor changes to the code. But it would be nice to have 3.4. get through. Hopefully this thread will lead to a result. The problem above seems (for me as a newby) not too hopeless. :)