OpenCV source make error: OpenCV/modules/features2d/src/matchers.cpp:47:23: fatal error: Eigen/Array: No such file or directory

asked 2016-09-16 07:40:47 -0500

DevelopB gravatar image

Hi, Am using OpenCV3.1,Python2.7. At sudo make of opencv source cloned from git rep, below log excerpt: (Kindly guide. Thanks in advance).

[ 77%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.o [ 77%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.o [ 77%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o /media/bhargav/Bhargav_WD1/temp_dir/home_bhargav/OpenCV/modules/features2d/src/matchers.cpp:47:23: fatal error: Eigen/Array: No such file or directory compilation terminated. modules/features2d/CMakeFiles/opencv_features2d.dir/build.make:552: recipe for target 'modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o' failed make[2]: * [modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o] Error 1 CMakeFiles/Makefile2:5821: recipe for target 'modules/features2d/CMakeFiles/opencv_features2d.dir/all' failed make[1]: [modules/features2d/CMakeFiles/opencv_features2d.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2

edit retag flag offensive close merge delete

Comments

Just before this error, I was getting error for Eigen/Eigenvalues no such file or dir... which was resolved by installing libeigen3-dev. Now, this new error is coming. I checked usr/include/eigen3/ but Array doesnt exist, it seems Array is deprecated in OpenCV3 ? So, how do i go ahead?

DevelopB gravatar imageDevelopB ( 2016-09-16 07:43:19 -0500 )edit

it did not fid the eigen lib (or the wrong one).

can you try to add -DWITH_EIGEN=OFF to your cmake cmdline ?

berak gravatar imageberak ( 2016-09-16 07:44:13 -0500 )edit

Hi Berak, The mentioned error is'nt coming with WITH_EIGEN=OFF but getting below error:

OpenCV/build/make_dir/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory. compilation terminated. CMakeFiles/cmTC_01654.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o' failed make[1]: * [CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o] Error 1

I'd already installed below libs: libv4l-0:amd64 libv4l-dev:amd64 libv4l2rds0:amd64 libv4lconvert0:amd64 v4l-utils cmake cmd used: sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_EIGEN=OFF -DOPENCV_EXTRA_MODULES_PATH=<path of="" opencv_contrib=""> <path of="" opencv="">

DevelopB gravatar imageDevelopB ( 2016-09-17 22:41:07 -0500 )edit