Opencv how to fix xfeatures2d error in .lib file

谁说胖子不能爱 提交于 2019-12-14 03:08:21

问题


I am trying to use opencv's feature matcher so I download opencv's extra modules and moved the xfeatures2d.hpp file into include/opencv2 but when ever I try to run Local Windows Debuger I get two errors this: Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "public: static struct cv::Ptr __cdecl cv::xfeatures2d::SURF::create(double,int,int,bool,bool)" (?create@SURF@xfeatures2d@cv@@SA?AU?$Ptr@VSURF@xfeatures2d@cv@@@3@NHH_N0@Z) referenced in function main TheRealFlannBasedMatcher C:\Users\Jacks\source\repos\TheRealFlannBasedMatcher\TheRealFlannBasedMatcher\TheRealFlannBasedMatcher.obj 1

and this error: Severity Code Description Project File Line Suppression State Error LNK1120 1 unresolved externals TheRealFlannBasedMatcher C:\Users\Jacks\source\repos\TheRealFlannBasedMatcher\x64\Debug\TheRealFlannBasedMatcher.exe 1

so I went through my included header files one at a time and the problem goes away way I comment out #include "opencv2/xfeatures2d.hpp" but a whole new slew of problems pop up with the stuff that was relieing on it. so I did some digging online and I think that the problem lies with my linked opencv_world400d.lib file please help.

来源:https://stackoverflow.com/questions/54317036/opencv-how-to-fix-xfeatures2d-error-in-lib-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!