首页 > 其他 > 详细

20140402

时间:2014-04-03 11:29:26      阅读:471      评论:0      收藏:0      [点我收藏+]

1、cmake编译错误原因

在用cmake编译opencv出现的错误

The CXX compiler identification is MSVC 16.0.30319.1 

The C compiler identification is MSVC 16.0.30319.1 
Check for working CXX compiler using: Visual Studio 10 
Check for working CXX compiler using: Visual Studio 10 -- broken 
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message): 
  The C++ compiler "C:/Program Files/Microsoft Visual Studio 

  10.0/VC/bin/cl.exe" is not able to compile a simple test program.

查了很多资料,发现原来是因为我的电脑上同时装了vs2010和vs2012 vs2012自带的.NET4.5替换了原有的.NET,我卸载了vs2012以及.NET4.5组件,重新安装.NET4.0,再次Configure就好了。

20140402,布布扣,bubuko.com

20140402

原文:http://www.cnblogs.com/yexuannan/p/3641464.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!