Cannot Use OfxCV

I want to use OfxCV in OpenFrameworks0.10.0. in ubuntu 16.04
So at first ,I created new App.and wrote addon setting in addons.make .
ofxCv
ofxOpenCv
and compiled in qt creator
but I got a lot of link error.
so next compiled from terminal by make command ,and it returned OK

So I think Qtcreater’s link path and CUI env path is not same.
But I cannot know how to check it.
Please tell me how to correct this

error is this.

/usr/local/include/opencv2/core/persistence.hpp:1201: error: undefined reference to ‘cv::operator<<(cv::FileStorage&, cv::String const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:116: error: undefined reference to ‘cv::FileStorage::FileStorage(cv::String const&, int, cv::String const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:136: error: undefined reference to ‘cv::FileStorage::FileStorage(cv::String const&, int, cv::String const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:324: error: undefined reference to ‘cv::cornerSubPix(cv::InputArray const&, cv::InputOutputArray const&, cv::Size<int>, cv::Size<int>, cv::TermCriteria)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:370: error: undefined reference to ‘cv::calibrateCamera(cv::_InputArray const&, cv::InputArray const&, cv::Size<int>, cv::_InputOutputArray const&, cv::_InputOutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, cv::TermCriteria)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Calibration.cpp:450: error: undefined reference to ‘cv::stereoCalibrate(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_InputOutputArray const&, cv::_InputOutputArray const&, cv::_InputOutputArray const&, cv::InputOutputArray const&, cv::Size<int>, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, cv::TermCriteria)’

/usr/local/include/opencv2/core/persistence.hpp:1189: error: undefined reference to ‘cv::error(int, cv::String const&, char const*, char const*, int)’

/usr/local/include/opencv2/core/persistence.hpp:1190: error: undefined reference to ‘cv::write(cv::FileStorage&, cv::String const&, cv::Mat const&)’

/usr/local/include/opencv2/core/persistence.hpp:1189: error: undefined reference to ‘cv::error(int, cv::String const&, char const*, char const*, int)’

/usr/local/include/opencv2/core/persistence.hpp:1190: error: undefined reference to ‘cv::write(cv::FileStorage&, cv::String const&, int)’

/usr/local/include/opencv2/core/persistence.hpp:1189: error: undefined reference to ‘cv::error(int, cv::String const&, char const*, char const*, int)’

/usr/local/include/opencv2/core/persistence.hpp:1190: error: undefined reference to ‘cv::write(cv::FileStorage&, cv::String const&, float)’

/usr/local/include/opencv2/core/persistence.hpp:1189: error: undefined reference to ‘cv::error(int, cv::String const&, char const*, char const*, int)’

/usr/local/include/opencv2/core/persistence.hpp:1246: error: undefined reference to ‘cv::read(cv::FileNode const&, int&, int)’

/usr/local/include/opencv2/core/persistence.hpp:1246: error: undefined reference to ‘cv::read(cv::FileNode const&, float&, float)’

/usr/local/include/opencv2/core/persistence.hpp:1079: error: undefined reference to ‘cv::internal::WriteStructContext::WriteStructContext(cv::FileStorage&, cv::String const&, int, cv::String const&)’

/usr/local/include/opencv2/core/persistence.hpp:1079: error: undefined reference to ‘cv::internal::WriteStructContext::~WriteStructContext()’

/usr/local/include/opencv2/core/persistence.hpp:1079: error: undefined reference to ‘cv::internal::WriteStructContext::~WriteStructContext()’

/usr/local/include/opencv2/core/cvstd.hpp:601: error: undefined reference to ‘cv::String::allocate(unsigned long)’

/usr/local/include/opencv2/core/cvstd.hpp:647: error: undefined reference to ‘cv::String::deallocate()’

/usr/local/include/opencv2/core/cvstd.hpp:655: error: undefined reference to ‘cv::String::deallocate()’

/usr/local/include/opencv2/core/cvstd.inl.hpp:83: error: undefined reference to ‘cv::String::allocate(unsigned long)’

/usr/local/include/opencv2/core/persistence.hpp:854: error: undefined reference to ‘cv::FileNodeIterator::readRaw(cv::String const&, unsigned char*, unsigned long)’

/usr/local/include/opencv2/core/persistence.hpp:820: error: undefined reference to ‘cv::FileStorage::writeRaw(cv::String const&, unsigned char const*, unsigned long)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/ContourFinder.cpp:70: error: undefined reference to ‘cv::findContours(cv::_InputOutputArray const&, cv::OutputArray const&, int, int, cv::Point<int>)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Flow.cpp:133: error: undefined reference to ‘cv::calcOpticalFlowPyrLK(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_InputOutputArray const&, cv::_OutputArray const&, cv::OutputArray const&, cv::Size<int>, int, cv::TermCriteria, int, double)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Flow.cpp:272: error: undefined reference to ‘cv::calcOpticalFlowFarneback(cv::_InputArray const&, cv::_InputArray const&, cv::_InputOutputArray const&, double, int, int, int, int, double, int)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Kalman.cpp:44: error: undefined reference to ‘cv::setIdentity(cv::InputOutputArray const&, cv::Scalar<double> const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Kalman.cpp:45: error: undefined reference to ‘cv::setIdentity(cv::InputOutputArray const&, cv::Scalar<double> const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Kalman.cpp:46: error: undefined reference to ‘cv::setIdentity(cv::InputOutputArray const&, cv::Scalar<double> const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Kalman.cpp:47: error: undefined reference to ‘cv::setIdentity(cv::InputOutputArray const&, cv::Scalar<double> const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/ObjectFinder.cpp:22: error: undefined reference to ‘cv::CascadeClassifier::load(cv::String const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/ObjectFinder.cpp:56: error: undefined reference to ‘cv::CascadeClassifier::detectMultiScale(cv::InputArray const&, std::vector<cv::Rect<int>, std::allocator<cv::Rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/RunningBackground.cpp:35: error: undefined reference to ‘cv::accumulateWeighted(cv::_InputArray const&, cv::_InputOutputArray const&, double, cv::_InputArray const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/RunningBackground.cpp:38: error: undefined reference to ‘cv::accumulateWeighted(cv::_InputArray const&, cv::_InputOutputArray const&, double, cv::_InputArray const&)’

/usr/local/include/opencv2/core/persistence.hpp:1201: error: undefined reference to ‘cv::operator<<(cv::FileStorage&, cv::String const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Wrappers.cpp:9: error: undefined reference to ‘cv::FileStorage::FileStorage(cv::String const&, int, cv::String const&)’

/media/kokawa2003/2ef39caa-192e-4e36-8eed-1919c6c9791f/openFrameworks/addons/ofxCv/libs/ofxCv/src/Wrappers.cpp:14: error: undefined reference to ‘cv::FileStorage::FileStorage(cv::String const&, int, cv::String const&)’

/usr/local/include/opencv2/core/persistence.hpp:1190: error: undefined reference to ‘cv::write(cv::FileStorage&, cv::String const&, cv::Mat const&)’

collect2: error: ld returned 1 exit status

Process failed with exit code 1.

The following products could not be built for configuration qtc_qt5_デバッグ:

OFNewPlayer

Solved. I Install opencv from source build (3.3.0)
but today I checked my system apt repo and found opencv 2.4.? in it.:tongue:
so uninstalled it.
and err is vanished

I think this is come from Openframeworks’s setup script install_dependencies.sh
This script install libopecv_dev from apt repo.
But in Ubuntu 16.04 opencv in apt is ver 2.4.*
Is it not ver3
So it is not userful