Skip to content

windows: OpenCV 4.3.0 build failing on generating vs_version.rc using mingw-w64 #16990

@deadprogram

Description

@deadprogram
System information (version)
  • OpenCV => 4.3.0
  • Operating System / Platform => Windows 64-bit
  • Compiler => mingw-w64 v7.3.0
Detailed description

Our current build script fails on our Appveyor CI build when we update to OpenCV 4.3.0. Not sure about the origin of this issue. Thanks for any help.

[ 43%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
gcc: error: long: No such file or directory
C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1265: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [CMakeFiles\Makefile2:3666: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
Steps to reproduce

See https://ci.appveyor.com/project/deadprogram/gocv/builds/31965264#L1242

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions