I am running Ubuntu 14.04 and have successfully built OpenCV 3.0.0 from source with CMake.
It turns out that by default there is no support for SIFT/SURF algorithms with OpenCV 3.0.0, and that I need to install xfeatures2d with it.
This is what I did:
1) Downloaded https://github.com/Itseez/opencv_contrib to allow for SIFT/SURF support
2) Extract to /Downloads/opencv_contrib-master/
3) cd modules/xfeatures2d
4) run "cmake ."
And I get this as the output:
> CMake Error at CMakeLists.txt:2 (ocv_define_module):
Unknown CMake command "ocv_define_module".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
I'm not sure why that happens since it's the default zip I downloaded, but I decided to just try to rebuild from source and include OPENCV_EXTRA_MODULES_PATH but then I get this:
>Built target example_tapi_hog
[ 81%] [ 81%] Built target example_tapi_clahe
[ 81%] [ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/cascadeclassifier.cpp.o
Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_inner_functions.cpp.o
Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_tree.cpp.o
[ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/features.cpp.o
[ 81%] Building CXX object apps/createsamples/CMakeFiles/opencv_createsamples.dir/createsamples.cpp.o
[ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/haarfeatures.cpp.o
Linking CXX executable ../../bin/opencv_createsamples
[ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/lbpfeatures.cpp.o
[ 81%] Built target opencv_createsamples
[ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/boost.cpp.o
[ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/HOGfeatures.cpp.o
Linking CXX executable ../../bin/opencv_traincascade
[ 81%] Built target opencv_traincascade
Any help would be greatly appreciated since I seem to be stuck....
↧