Ask Your Question

Compile error in building *modified* Tutorial 4

asked 2012-07-12 11:42:42 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

The error in my title occurs in the compilation of a modified version of OpenCV 2.4.2 Tutorial 4 in Eclipse Indigo. The modifications allow stereo feature matching.

Here is the complete error:

In file included from ../../sdk/native/jni/include/opencv2/flann/miniflann.hpp:49, from ../../sdk/native/jni/include/opencv2/features2d/features2d.hpp:46, from jni/jnipart.cpp:4: ../../sdk/native/jni/include/opencv2/flann/defines.h:79: error: expected constructor, destructor, or type conversion before 'namespace' make: *** [obj/local/armeabi-v7a/objs/mixedsample/jni_part.o] Error 1

I'm really not sure why this error pops up. I actually was able to run my modified tutorial before I accidentally overwrote the file and had to re-modify it. However, I never once touched any of the header files (and especially not defines.h in flann because I don't use flann - I use BruteForceMatcher). I'm thinking there's something wrong with my set-up in Eclipse.

Thanks in advance. -Ruifei

edit retag flag offensive close merge delete


May show us your code!??

Mahdi gravatar imageMahdi ( 2012-10-29 04:45:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-21 17:16:10 -0500

I think you made an accidental small change in the code. Download the original tutorial code again and try to run that. If that does not work anymore, something in the settings is wrong.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-07-12 11:42:42 -0500

Seen: 297 times

Last updated: Jul 12 '12