Undefined Reference to cv::Mat::updateContinuityFlag()

asked 2018-08-31 12:59:16 -0600

Hakuna gravatar image

I'm building Caffe from src on ubuntu 16.04LTS on Nvidia Tx2 Jetpack 3.2

I'm have opencv 3.3.1 installed and have set the flag to build with OpenCV 3.

This is the exact error:

`CXX/LD -o .build_release/examples/cpp_classification/classification.bin .build_release/examples/cpp_classification/classification.o: In function Classifier::WrapInputLayer(std::vector<cv::mat, std::allocator<cv::mat=""> >)': classification.cpp:(.text+0x12c4): undefined reference to 'cv::Mat::updateContinuityFlag()' .build_release/examples/cpp_classification/classification.o: In function 'Classifier::SetMean(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&)': classification.cpp:(.text+0x1fe0): undefined reference to 'cv::Mat::updateContinuityFlag()' collect2: error: ld returned 1 exit status Makefile:630: recipe for target '.build_release/examples/cpp_classification/classification.bin' failed make: ** [.build_release/examples/cpp_classification/classification.bin] Error 1

Any thoughts? Thanks Ahead of Time.

edit retag flag offensive close merge delete

Comments

1

Weird updateContinuityflag is defined in opencv>=3.4.2 but not in opencv 3.3.1 I understand that include files are opencv >=3.4.2 but lib are <3.4.2. may be I'm wrong

LBerger gravatar imageLBerger ( 2018-08-31 13:41:40 -0600 )edit

3.3.1 -- that's very old. please try with latest 3.4.3 instead

(we can also help you better, if you're using the same current version, anyone else uses...)

berak gravatar imageberak ( 2018-09-01 00:41:24 -0600 )edit