Ask Your Question
0

LNK2019 error in SURF_FlannMatcher.cpp

asked 2012-12-10 09:46:57 -0600

Done with OpenCV2.4.3 settings. SURF_FlannMatcher.cpp is giving LNK2019 error as follows :

Error 1 error LNK2019: unresolved external symbol "public: __thiscall cv::SURF::SURF(void)" (??0SURF@cv@@QAE@XZ) referenced in function _main C:\Users\Ankit\Documents\Visual Studio 2010\Projects\FLANN\FLANN\SURF_FlannMatcher.obj

There should not be any error as this code is in the tutorial book by OpenCV2.4.3 Somebody please help me out...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-12-11 00:57:56 -0600

What is your OS and build target? You can get the error in case of building for Android. SURF is non-free algorithm and it is a part of nonfree module. This module is not linked in opencv_java.so due legal issues. You can compile OpenCV for Android with nonfree from the latest stable version tag (2.4.3.1 for now) from git.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-10 09:46:57 -0600

Seen: 666 times

Last updated: Dec 11 '12