OpenCV build error

asked 2018-04-16 09:13:10 -0600

updated 2018-04-16 09:18:31 -0600

berak gravatar image

Hi: CMake 3.11.0 opencv-3.4.1-vc14_vc15 OS Window 7 Pro MinGW-W64

C:\PC\Documents\opencv\sources\modules\videoio\src\cap_ffmpeg.cpp:65:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 static const HMODULE cv_GetCurrentModule()
        ^~~~~
[ 46%] Building RC object modules/videoio/CMakeFiles/opencv_videoio.dir/vs_version.rc.obj
gcc: error: PC\Documents\opencv\sources\3rdparty\include\ffmpeg_: No such file or directory
C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\windres.exe: preprocessing failed.

mingw32-make[2]: *** [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:188: modules/videoio/CMakeFiles/opencv_videoio.dir/vs_version.rc.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:5071: modules/videoio/CMakeFiles/open
cv_videoio.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2

opencv\sources\3rdparty\include\ffmpeg_: No such file or directory

I checked the fresh extracted files, there is no ffmpeg (files or folder?) I am stuck with this.. How can i resolved this?

Thanks

edit retag flag offensive close merge delete

Comments

the windres error might go away with cmake -DENABLE_PRECOMPILED_HEADERS=OFF

berak gravatar imageberak ( 2018-04-16 09:20:09 -0600 )edit