opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.43k stars 5.76k forks source link

while running mexopencv opencv_contrib file/ #1111

Open adityaksai opened 7 years ago

adityaksai commented 7 years ago

Error using mex Creating library C:\opencv3.1\mexopencv-3.1.0.1\opencvcontrib+cv\private\BriefDescriptorExtractor.lib and object C:\opencv3.1\mexopencv-3.1.0.1\opencvcontrib+cv\private\BriefDescriptorExtractor.exp BriefDescriptorExtractor_.obj : error LNK2019: unresolved external symbol "struct cv::Ptr<class cv::xfeatures2d::BriefDescriptorExtractor> __cdecl createBriefDescriptorExtractor(class std::_Vector_const_iterator<class std::_Vector_val<struct std::_Simple_types > >,class std::_Vector_const_iterator<class std::_Vector_val<struct std::_Simple_types > >)" (?createBriefDescriptorExtractor@@YA?AU?$Ptr@VBriefDescriptorExtractor@xfeatures2d@cv@@@cv@@V?$_Vector_const_iterator@V?$_Vector_val@U?$_Simple_types@VMxArray@@@std@@@std@@@std@@0@Z) referenced in function mexFunction C:\opencv3.1\mexopencv-3.1.0.1\opencvcontrib+cv\private\BriefDescriptorExtractor.mexw64 : fatal error LNK1120: 1 unresolved externals

Error in mexopencv.make (line 139) if ~opts.dryrun, eval(cmd); end

StevenPuttemans commented 7 years ago

Start with building from OpenCV 3.2 trunk, so the latest github branch, because several things got fixed in the matlab bindings. If that does not work, then head back.