20140402 cmake编译错误原因 同时装了vs2010和vs2012

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就好了。

转载于:https://www.cnblogs.com/yexuannan/p/3641464.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值