opencv 2.4.4运行自带的match文件时出错

来源:互联网 发布:mes 生产优化调度算法 编辑:程序博客网 时间:2024/05/20 19:17

Error 1 error LNK2019: unresolved external symbol "class cv::Mat __cdecl cv::findHomography(class cv::_InputArray const &,class cv::_InputArray const &,int,double,class cv::_OutputArray const &)" (?findHomography@cv@@YA?AVMat@1@ABV_InputArray@1@0HNABV_OutputArray@1@@Z) referenced in function "void __cdecl doIteration(class cv::Mat const &,class cv::Mat &,bool,class std::vector<class cv::KeyPoint,class std::allocator<class cv::KeyPoint> > &,class cv::Mat const &,class cv::Ptr<class cv::FeatureDetector> &,class cv::Ptr<class cv::DescriptorExtractor> &,class cv::Ptr<class cv::DescriptorMatcher> &,int,bool,double,class cv::RNG &)" (?doIteration@@YAXABVMat@cv@@AAV12@_NAAV?$vector@VKeyPoint@cv@@V?$allocator@VKeyPoint@cv@@@std@@@std@@0AAV?$Ptr@VFeatureDetector@cv@@@2@AAV?$Ptr@VDescriptorExtractor@cv@@@2@AAV?$Ptr@VDescriptorMatcher@cv@@@2@H2NAAVRNG@2@@Z) 

Error 2 error LNK2019: unresolved external symbol "bool __cdecl cv::initModule_nonfree(void)" (?initModule_nonfree@cv@@YA_NXZ) referenced in function _main

Error 3 error LNK1120: 2 unresolved externals

在运行opencv2.4.4版本中出现这样的错误是怎么回事,库与依赖项都是按照opencv中文论坛里配置的,没有错

 

另外,在配置依赖项里添加了opencv_nonfree244.lib库后,消除错误2,剩余1、3两个错误

原创粉丝点击