Building opencv contrib_module on linux
Hello,
I am trying to use the Tracking module in https://github.com/Itseez/opencv_contrib. I have used the ccmake and successfully generated and run make -j5 without error. Modules have been built in the build directory but there's no (Extra) libraries in the /include/opencv2 . In other terms I can't locate the .hpp files generated from the contrib_modules.
Thanks
did you run a
make install
after that ? this should copy headers & libsYes, indeed. I get several lines like this one ([ 86%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o) but it's not copying the extra libs built (the one from contrib).
Actually I had some libraries disabled the first time I run the make. When I try to build all contrib library I get this error.
Linking CXX shared library ../../lib/libopencv_xobjdetect.so /usr/bin/ld: cannot find -lWRAP /usr/bin/ld: cannot find -lpython collect2: error: ld returned 1 exit status make[2]: * [lib/libopencv_xobjdetect.so.3.0.0] Error 1 make[1]: [modules/xobjdetect/CMakeFiles/opencv_xobjdetect.dir/all] Error 2 make: ** [all] Error 2
Any idea how to fix it ?
It means that you use latest version of opencv_contrib with non-latest version of opencv. Please, choose two revisions from the same time moment.