OpenCV BUILD in C++

asked 2019-09-01 18:34:19 -0500

I 'm working with windows 10 and Opencv 3.4.7 witch Cmake 3,14,4 witch i havvev this error Performing Test HAVE_STD_CXX11 - Failed CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:196 (message): OpenCV 4.x requires C++11 Call Stack (most recent call first): CMakeLists.txt:150 (include)

edit retag flag offensive close merge delete


so, which compiler ?

berak gravatar imageberak ( 2019-09-02 04:05:14 -0500 )edit

GCC (min-GW)version 8.1

RawandYezza gravatar imageRawandYezza ( 2019-09-02 05:15:31 -0500 )edit

for mingw, you should pass the compiler's location directly to cmake (all those CMAKE_CXX_COMPILER flags), not rely on the automatic detection. (or use cmake-gui, which should open a box for this)

berak gravatar imageberak ( 2019-09-02 07:48:00 -0500 )edit