To install the latest OpenCV from git we follow the instructions on :
But if you stumble on the ‘include<Eigen/Eigenvalues>: No such file or directory’ error during make here’s how to fix that:
1. Install package
sudo apt-get install libeigen3-dev
2. Then change the cmake command to:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D EIGEN_INCLUDE_PATH=/usr/include/eigen3 ..
3. do ‘make’ and ‘sudo make install’ as instructed.