使用cmake生成OpenCV源代码工程的解决方案时遇到报错

chennext 2017-08-18 05:39:13
使用的版本opencv-3.0.0.exe,cmake-3.9.1-win32-x86.exe,vs2015.求大神帮我看看怎么解决,网上看了一堆方法都没解决。

CMake Deprecation Warning at CMakeLists.txt:69 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:74 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


The CXX compiler identification is MSVC 19.0.24210.0
The C compiler identification is MSVC 19.0.24210.0
CMake Error at CMakeLists.txt:88 (project):
No CMAKE_CXX_COMPILER could be found.



CMake Error at CMakeLists.txt:88 (project):
No CMAKE_C_COMPILER could be found.



Configuring incomplete, errors occurred!
See also "D:/Program Files/opencv solutions/CMakeFiles/CMakeOutput.log".
...全文
2608 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
挥毫写意绕指 2019-04-14
  • 打赏
  • 举报
回复
问题解决了吗?lz我也遇到类似问题,求教
Time_Waxk 2019-03-29
  • 打赏
  • 举报
回复
我也是遇到这个问题,我用的是Cmake-3.14,win10系统,原因就是版本太高了,换个版本低的,我根据楼上帖用的3.4.3,可以的。
江将奖姜 2017-08-22
  • 打赏
  • 举报
回复
楼主,问题解决了吗,我的也是Win10+vs2015+opencv3.0.0 遇到
robertbo 2017-08-21
  • 打赏
  • 举报
回复
cmake版本不要太高,我用的cmake-3.4.3可以
chennext 2017-08-21
  • 打赏
  • 举报
回复
试了 好像不行 我是win10系统

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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