Ask Your Question

Eris's profile - activity

2017-02-12 16:00:51 -0600 asked a question error compililng opencv 3.1

I'm trying to compile3.1.0 on Slackware64 14.2 and I'm getting the following error. I have no idea how to fix this. Any suggestions?

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp: In member function 'void {anonymous}::CaffeImporter::addParam(const google::protobuf::Message&, const google::protobuf::FieldDescriptor*, cv::dnn::LayerParams&)':

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp:90:59: error: 'const class google::protobuf::Reflection' has no member named 'GetRepeatedField'

                 const RepeatedField<gtype> &v = refl->GetRepeatedField<gtype>(msg, field);  \
                                                       ^

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp:100:17: note: in expansion of macro 'SET_UP_FILED'

             SET_UP_FILED(GetInt32, arrayInt, ::google::protobuf::int32);
             ^

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp:90:81: error: expected primary-expression before '>' token

                 const RepeatedField<gtype> &v = refl->GetRepeatedField<gtype>(msg, field);  \
                                                                             ^

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp:100:17: note: in expansion of macro 'SET_UP_FILED'

             SET_UP_FILED(GetInt32, arrayInt, ::google::protobuf::int32);
             ^

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp:90:88: warning: left operand of comma operator has no effect [-Wunused-value]

                 const RepeatedField<gtype> &v = refl->GetRepeatedField<gtype>(msg, field);  \
                                                                                    ^

/tmp/SBo/opencv-3.1.0/opencv_contrib-3.1.0/modules/dnn/src/caffe/caffe_importer.cpp:100:17: note: in expansion of macro 'SET_UP_FILED'

             SET_UP_FILED(GetInt32, arrayInt, ::google::protobuf::int32);