1. cmake的时候
CMake Warning at cmake/OpenCVPackaging.cmake:23 (message):
CPACK_PACKAGE_VERSION does not match version provided by version.hpp
header!
Call Stack (most recent call first):
CMakeLists.txt:1105 (include)
CMake Error: The following variables are used in this project, but they are
set to NOTFOUND.
大致这样,解决方法:在cmakelists.txt中修改下面句子
if(NOT GIT_RESULT EQUAL 0)
# set(OPENCV_VCSVERSION "unknown")
set(OPENCV_VCSVERSION "2.4.13")
endif()
else()
# We don't have git:
# set(OPENCV_VCSVERSION "unknown")
set(OPENCV_VCSVERSION "2.4.13")
endif()
2.make时遇到的问题
opencv-2.4.13/modules/contrib/src/rgbdodometry.cpp:65:47: fatal error: unsupported/Eigen/MatrixFunctions: 没有那个文件或目录
compilation terminated.
解决办法:
sudo ln -s /usr/include/eigen3/unsupported /usr/local/include/