ubuntu16.04中安装opencv2.4.13遇到的问题

   日期:2020-08-05     浏览:95    评论:0    
核心提示:1. cmake的时候CMake Warning at cmake/OpenCVPackaging.cmake:23 (message):CPACK_PACKAGE_VERSION does not match version provided by version.hppheader!Call Stack (most recent call first):CMakeLists.txt:1105 (include)CMake Error: The following variables are_fatal

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/
 
打赏
 本文转载自:网络 
所有权利归属于原作者,如文章来源标示错误或侵犯了您的权利请联系微信13520258486
更多>最近资讯中心
更多>最新资讯中心
0相关评论

推荐图文
推荐资讯中心
点击排行
最新信息
新手指南
采购商服务
供应商服务
交易安全
关注我们
手机网站:
新浪微博:
微信关注:

13520258486

周一至周五 9:00-18:00
(其他时间联系在线客服)

24小时在线客服