Ask Your Question

Revision history [back]

Installing opencv for C++ on Windows

Hello everybody,

I have a massive problem as I try to make OpenCV work, the following error occurs while I try to run mingw32-make on cmd:

=============================

[ 41%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj

Der Befehl "D:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

D:\Program Files\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:1279: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1

mingw32-make[2]: * Waiting for unfinished jobs....

mingw32-make[1]: * [CMakeFiles\Makefile2:1676: modules/core/CMakeFiles/opencv_core.dir/all] Error 2

mingw32-make: * [Makefile:162: all] Error 2

=============================

I am using CMake Version 3.11.2 and opencv Version 3.4.1. In my previous research, I disabled ENABLE_PRECOMPILED_HEADERS, BUILD_IPP_IW, BUILD_WITH_DYNAMIC_IPP, WITH_IPP, but unfortunately, nothing works. I followed the instruction of link text

It would be really great, if someone could help me =)

Installing opencv for C++ on Windows

Hello everybody,

I have a massive problem as I try to make OpenCV work, the following error occurs while I try to run mingw32-make on cmd:

=============================

[ 41%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj

Der Befehl "D:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

D:\Program Files\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:1279: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1

mingw32-make[2]: * Waiting for unfinished jobs....

mingw32-make[1]: * [CMakeFiles\Makefile2:1676: modules/core/CMakeFiles/opencv_core.dir/all] Error 2

mingw32-make: * [Makefile:162: all] Error 2

=============================

I am using CMake Version 3.11.2 and opencv Version 3.4.1. In my previous research, I disabled ENABLE_PRECOMPILED_HEADERS, BUILD_IPP_IW, BUILD_WITH_DYNAMIC_IPP, WITH_IPP, but unfortunately, nothing works. I followed the instruction of link text

It would be really great, if someone could help me =)