xfeatures2d does not compile (3.0) [closed]
Hello,
I just realized SIFT was moved to xfeatures2d in opencv_contrib. I want to have the feature, so I am trying to compile the new module. However, It is disabled (see below). What dependency is Cmake referring to? (Im using Ubuntu 14.04. BTW, Cmake doesnt seem to find Qt, but this is a minor problem).
-- OpenCV modules:
-- To be built: core imgproc imgcodecs videoio highgui xobjdetect adas video bgsegm bioinspired flann features2d calib3d face ml objdetect photo java optflow reg rgbd shape stitching superres text tracking ts videostab viz ximgproc xphoto
-- Disabled: world
-- Disabled by dependency: xfeatures2d
-- Unavailable: androidcamera cuda cudaarithm
Ok, the dependency is "opencv_cudaarithm", I removed that in order to be able to compile it.
adding a short line, what you changed where would actually be super useful ;)
Sorry, In the list of dependencies in the CMakeLists.txt of the module xfeatures2d, I removed "opencv_cudaarithm". I have no idea wether this is better to keep or remove it, so I didn't any PR for that.
making it optional, instead of removing it might be slightly better:
there is a pull request but it seams that this small change breaks java bindings ... https://github.com/Itseez/opencv_contrib/pull/81/files
yes, i've seen that. i've seen too, that all other successful builds (other pr's) on the contrib buildbot had xfeatures2d disabled due to dependancy, so it's probably the 1st time in a while, that somebotty actually tries to build the xfeatures2d.module.
trying out latest version, it seems that some errors are even suppressed in the logs, i get jni wrappers generated like
(note the dot in the middle, WTF... ) which cause enough errors here to break the build while compiling the java wrapper, and yea, xfeatures2d.java is empty due to that, that's enough reason to stop cmake.
(dot problem only for xfeatures2d, though, no idea, enquiring)
exceeded the comment limit ;)
again, imho it's not actually the fault of this commit, compiling with cudaarithm will most probably lead to the same result. something in the java-wrappers for the contrib module is broken. (the broken dot thing hints at something going wrong with the new namespaces)
and again ;) .... it kinda half worked last week. (though weirdly enough, no java wrappers were build for the whole contrib mod.)
@berak my latest PR made the master branch possible to built the xfeatures2d module fine with CUDA on. Might take a look into this problematic stuff later :D
i had to pull both repos and clean the build folder/cmake-outputs to see the difference
@steven, btw, kudos for the previous contrib related stunt !
@berak still a work in progress, the examples are still giving me headaches. But I am guessing they are experiencing problems from retrievng data from 2 repository locations...