CXX编译器标识未知 [英] The CXX compiler identification is unknown

查看:921
本文介绍了CXX编译器标识未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们无法使用Visual Studio 2012在Windows 7 64Bit下使用CMake(v2.8.12)编译项目.CMake向我们提供以下错误。我们已经尝试使用管理员权限从Visual Studio命令行启动Cmake。在CMake 2.8.11中似乎有一个类似的错误: http://www.cmake.org/ Bug / view.php?id = 14440



感谢您提供任何帮助!



C:/ Program Files(x86)/ CMake 2.8 / share / cmake-2.8 / Modules / CMakeDetermineCompilerId。 cmake:446(execute_process):
execute_process给出没有值的COMMAND参数。
调用堆栈(最近调用)
C:/ Program Files(x86)/ CMake 2.8 / share / cmake-2.8 / Modules / CMakeDetermineCompilerId.cmake:48(CMAKE_DETERMINE_COMPILER_ID_VENDOR)
:/ Program Files(x86)/ CMake 2.8 / share / cmake-2.8 / Modules / CMakeDetermineCCompiler.cmake:131(CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2(project)

$ b b C编译器标识未知
CMake错误在C:/ Program Files(x86)/ CMake 2.8 / share / cmake-2.8 / Modules / CMakeDetermineCompilerId.cmake:446(execute_process):
execute_process given COMMAND参数没有值。
调用堆栈(最近调用)
C:/ Program Files(x86)/ CMake 2.8 / share / cmake-2.8 / Modules / CMakeDetermineCompilerId.cmake:48(CMAKE_DETERMINE_COMPILER_ID_VENDOR)
:/ Program Files(x86)/ CMake 2.8 / share / cmake-2.8 / Modules / CMakeDetermineCXXCompiler.cmake:127(CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2(project)

$ b b CXX编译器标识未知
在src / CMakeLists.txt:44(消息)中找不到SWIG(缺少:SWIG_EXECUTABLE SWIG_DIR)
CMake警告:
未找到SWIG。你不能为C#编译。


配置不完整,发生错误!
另请参见C:/Users/hci/laser_control/CMakeFiles/CMakeOutput.log。
另请参见C:/Users/hci/laser_control/CMakeFiles/CMakeError.log。


解决方案

我有同样的问题,管理


We are having trouble compiling a project using CMake (v2.8.12) under Windows 7 64Bit using Visual Studio 2012. CMake gives us the following errors. We already tried starting Cmake from the Visual Studio Command Line using admin rights. There seems to have been a similar bug in CMake 2.8.11: http://www.cmake.org/Bug/view.php?id=14440

Thanks in advance for any help!

Karl

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


The C compiler identification is unknown
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


The CXX compiler identification is unknown
Could NOT find SWIG (missing:  SWIG_EXECUTABLE SWIG_DIR) 
CMake Warning at src/CMakeLists.txt:44 (message):
  SWIG was not found.  You will not be able to compile for C#.


Configuring incomplete, errors occurred!
See also "C:/Users/hci/laser_control/CMakeFiles/CMakeOutput.log".
See also "C:/Users/hci/laser_control/CMakeFiles/CMakeError.log".

解决方案

I had the same issue and fixed it running cmake as Admin

这篇关于CXX编译器标识未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆