Error building opencv3.4.1 windows10 and cmake3.11

asked 2018-03-09 13:41:24 -0600

updated 2018-03-09 14:13:02 -0600

berak gravatar image

Hi I am having a problem when trying to compile a opencv build for QT using MinGW32. I've followed the instructions on https://wiki.qt.io/How_to_setup_Qt_an... but failed build:

mingw32-make[2]: * [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj] Error 1 CMakeFiles\Makefile2:710: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed mingw32-make[1]: [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: ** [all] Error 2

edit retag flag offensive close merge delete

Comments

please lookup a few lines above, and provide us the exact errormsg

opencv support for mingw is poor. (which mingw version is it?)

the protobuf lib needs to be compiled with c++11 support, does your mingw handle that out-of-the-box ?

berak gravatar imageberak ( 2018-03-09 14:03:32 -0600 )edit