win7 cmake 编译 opencv 提示变量未定义

YunYun_W 2016-09-09 09:28:47
如图所示:





...全文
4433 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
缥缈之力 2016-12-05
  • 打赏
  • 举报
回复
是的,版本不匹配,我用gcc4.9.2 +cmake2.8.11 rc1 +opencv 2.4.9版本,configure时就没有产生警告,现在正在make中,具体版本该怎么匹配我也不是很清楚,只是在论坛看到有人这样做成功了,就试试看
dawnknights 2016-11-11
  • 打赏
  • 举报
回复
引用 1 楼 baidu_15158067 的回复:
是不是因为版本不匹配 CMake configure后有这样的警告: ----------------------------------- 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) --------------------------------------------
我编译的时候碰到这个警告了,请问这个怎么解决啊,影响大吗?
SimpleUmbrella 2016-09-22
  • 打赏
  • 举报
回复
In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0, from /usr/include/c++/6.1.1/algorithm:62, from /home/fly/ws/opencv-2.4.13/modules/core/include/opencv2/core/core.hpp:53, from /home/fly/ws/opencv-2.4.13/modules/core/precomp.hpp:48: /usr/include/c++/6.1.1/cstdlib:75:25: 致命错误:stdlib.h:No such file or directory #include_next <stdlib.h> ^ 编译中断。 modules/core/CMakeFiles/pch_Generate_opencv_core.dir/build.make:62: recipe for target 'modules/core/precomp.hpp.gch/opencv_core_Release.gch' failed make[2]: *** [modules/core/precomp.hpp.gch/opencv_core_Release.gch] Error 1 CMakeFiles/Makefile2:1108: recipe for target 'modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 [fly@localhost opencv-2.4.13]$
咖啡轻盐 2016-09-21
  • 打赏
  • 举报
回复
楼主有答案了吗?可以提供下吗
YunYun_W 2016-09-11
  • 打赏
  • 举报
回复
是不是因为版本不匹配 CMake configure后有这样的警告: ----------------------------------- 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) --------------------------------------------

4,242

社区成员

发帖
与我相关
我的任务
社区描述
OpenCV相关技术交流专区
计算机视觉人工智能opencv 技术论坛(原bbs) 广东省·深圳市
社区管理员
  • OpenCV
  • 幻灰龙
  • OpenCV中国团队
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

OpenCV中国团队官方博客:https://blog.csdn.net/opencvchina

试试用AI创作助手写篇文章吧