opencv 3.0 build error
Hi, all,
I had downloaded opencv 3.0 master branch. (Before I had installed basic required packages for installing opencv)
After cmake it, and make, I came across the following build error :
==================================================================
[ 61%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/posit.cpp.o
[ 61%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/homography_decomp.cpp.o
[ 61%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/p3p.cpp.o
[ 61%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/ptsetreg.cpp.o
[ 61%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/dls.cpp.o
/root/Downloads/opencv-3.0/modules/calib3d/src/dls.cpp:11:31: fatal error: Eigen/Eigenvalues: No such file or directory
compilation terminated.
make[2]: * [modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/dls.cpp.o] Error 1
make[1]: * [modules/calib3d/CMakeFiles/opencv_calib3d.dir/all] Error 2
make: * [all] Error 2
root@ubuntu:~/Downloads/opencv-3.0/release#
==================================================================
It seems that the package cannot find "Eigen/Eigenvalues". Does it mean that I missed some prerequisites in my system? Hope someone could give me some suggestion to fix it?
P.S. My system is Ubuntu 12.04
Best regards,
Milton
Hello Milton, I faced the same issue, even with EIGEN on the correct location it didn't seem to build. Solution is to build with -D WITH_EIGEN=OFF for now. However there are several other errors popping up. Already provided some fixes for it.. take a look here!
just to add to the confusion, i don't have eigen (well, not where cmake can see it), and even leaving the switch ON compiles fine. seems to be a prob only if the eigen lib is actually present ?
hmmm I even had the problem when eigen wasn't installed. I did built with CUDA QT SAMPLES ... probably a dependency throwing up?
oh, neither qt, nor cuda here, maybe that narrows it down
Thanks the suggestions from all of you. I shifted to build the opencv-3.0-alpha, rather than master branch on github repositories. Then the building process succeeded.
About the EIGEN problem, just fixed it on my system. Basically you need to assure that once you built Eigen library manual that the Eigen folder and the unsupported/Eigen folder is copied to /usr/local/include and has reading rights. After that it builded perfectly for me. Other fixes for the master are due to get merged and then a stable building master should be achieved!
I do not have eigen3, only eigen2 exists. Does anyone know how I can get it?
On linux, like Ubuntu, simply do
sudo apt-get install eigen2-dev eigen3-dev