mexOpenCV ORB example compile issue

I came across compile error on the ORB example given by the document.
The error is:
Building with 'Xcode Clang++'.
Error using mexOpenCV (line 114)
Undefined symbols for architecture x86_64:
"ocvKeyPointsToStruct(std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> >&)", referenced from:
_mexFunction in detectORBFeaturesOCV.o
"cv::Algorithm::_create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >
const&)", referenced from:
_mexFunction in detectORBFeaturesOCV.o
"cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>
> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)", referenced
from:
_mexFunction in detectORBFeaturesOCV.o
"cv::FeatureDetector::detect(cv::Mat const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> >&,
cv::Mat const&) const", referenced from:
_mexFunction in detectORBFeaturesOCV.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks in advance!

Réponses (0)

Catégories

En savoir plus sur App Building dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by