Caffe: error "OpenCV 4.x+ requires enabled C++11 support"

Created on 9 Sep 2018  路  1Comment  路  Source: BVLC/caffe

when make all, the error happened as following:

/usr/local/include/opencv2/core/cvdef.h:440:4: error: "OpenCV 4.x+ requires enabled C++11 support"

error "OpenCV 4.x+ requires enabled C++11 support"

Most helpful comment

change Makefile line 420(if you are using the newest caffe)
CXXFLAGS += -MMD -MP
to
CXXFLAGS += -MMD -MP -std=c++11

Also consider changing the NVCCFLAGS if nvcc complains.

>All comments

change Makefile line 420(if you are using the newest caffe)
CXXFLAGS += -MMD -MP
to
CXXFLAGS += -MMD -MP -std=c++11

Also consider changing the NVCCFLAGS if nvcc complains.

Was this page helpful?
0 / 5 - 0 ratings