[Solved]CMake can't detect any compiler:The C compiler identification is unknown

Target:

Compile some VTK cases using CMake2.8 and vs2010/vs2012(Win8.1 64bit)

 

Error:

The C compiler identification is unknown 

The CXX compiler identification is unknown

....

 

Slove:

原本以为是64bit机器的问题。

或者是使用的vs2010旗舰版没有装servicepack1..改啊改de。。

后来发现。。原来只是同时安装了vs2010和vs2012。。给跪了。。估计是sys Path。。

一个对此的讨论链接如下。

http://cmake.3232098.n2.nabble.com/Problem-with-Visual-Studio-2010-Windows-7-64bit-td7582484.html

 

 

posted @ 2014-04-10 18:35  PUHAHA  阅读(1388)  评论(0编辑  收藏  举报