Ask Your Question
0

unresolved external symbol : xfeatures2d problem with SIFT

asked 2016-02-08 03:47:51 -0600

AdamIB gravatar image

Hi,

I've a problem related to SIFT, when I try to build my program I got this error

unresolved external symbol public static struct cv::Ptr <class cv::xfeatures2d::sift="">

regarding to opencv librarries I have defined these two only

opencv_ts300d.lib opencv_world300d.lib

so does the problem related to the missing xfeatures2d.lib? although I have the folder xfeatured and file xfeatured.cpp

On the other hand, if you ask me about cmake: In fact I have tried to build xfeatures.lib but I got error it says that xfeatures2d.lib is missing

So, any help will be appreicated :)

edit retag flag offensive close merge delete

Comments

1

i guess, you have to start from scratch here. since using the contrib repo requres tight synchronization regarding versions, you'll have to get opencv & opencv_contrib src from github, and rebuild the whole thing, cmake, build, build INSTALL . see contrib readme

berak gravatar imageberak ( 2016-02-08 03:54:38 -0600 )edit

hi berak, and thank you for your reply, so I have the OPENCV 3 and contrib that i got it from https://github.com/Itseez/opencv_contrib , can you tell me which version of OPENCV i should have?

AdamIB gravatar imageAdamIB ( 2016-02-08 03:57:57 -0600 )edit

that's an easy answer: latest ;) (for both)

(e.g. hal was moved back into core in 3.1, so you can't build opencv3.0 with recent contrib)

berak gravatar imageberak ( 2016-02-08 04:02:40 -0600 )edit

ok , I've downloaded the latest for both and when I try to compile it in cmake (new version of opencv) it says "Failed to download opencv_ffmpeg.dll. Status=7;"Couldn't connect to server" is there any ideas? thx

AdamIB gravatar imageAdamIB ( 2016-02-08 13:31:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-14 23:27:35 -0600

AdamIB gravatar image

OK i have solved the problem by using the old version of OPENCV 3 and contrib 3 so it works now

edit flag offensive delete link more

Comments

how to do it?

devansh20la gravatar imagedevansh20la ( 2016-02-15 16:26:16 -0600 )edit

ok you need to get OpenCV3 and Opencv_contrib 3 (same version), it's difficult to get it from the github because now it's build using opencv3.1, but just try opencv 3.1 and opencv_contrib 3.1 you might get a good result and don't forget to have a proper disk space as well, cheers

AdamIB gravatar imageAdamIB ( 2016-02-16 23:51:39 -0600 )edit

hi adamIB

i try to install opencv3 for my project with extra module (i want to use sift algorithm for image processing) but i cannot configure cmake with contrib (contain feature2d) ..i got error "CMake Error at cmake/OpenCVModule.cmake:277 (add_subdirectory):

The binary directory C:/opencv/build/modules/calib3d/.calib3d" and for other modules "core,cudaarithm,cudabgsegm,cudacodec,cudacodec,cudafeatures2d,cudafilters,cudaimgproc,cudalegacy,cudaobjdetect,cudaoptflow,cudastereo,cudawarping,cudev,features2d,flann,highgui,imgcodecs, etc.)

Amir.t gravatar imageAmir.t ( 2016-05-18 03:30:10 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-08 03:47:51 -0600

Seen: 1,168 times

Last updated: Feb 14 '16