cmake 编译opencv 出现 The C++ compiler "C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe

来源:互联网 发布:linux修改sftp端口号 编辑:程序博客网 时间:2024/06/15 02:06
编译opencv 出现 The C++ compiler "C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe
分类: 编程类 4145人阅读 评论(7) 收藏 举报

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

0 0
原创粉丝点击