mexOpenCV ORB example compile issue
显示 更早的评论
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!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Code Generation, GPU, and Third-Party Support 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!