mexOpenCV ORB example compile issue
Show older comments
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!
Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!