所以我想配置基于本教程YouTube上的一个文件,这是非常简单的:CMake的:C和CXX编译器标识为未知Win10 CMakeGUI
https://www.youtube.com/watch?v=gYmgbqGfv-8
我用CMake的图形用户界面在Windows 10和我有一个在运行Visual Studio 2015年是能够建立C++项目已经(我已经使用了一段时间)
我使用“的Visual Studio 15 2017年”
我创建了一个文件夹,名为hellocmake和hellocmake /为机器人构建^ h输入:
然而,当我试图配置,它说,
在的CMakeLists.txtCMake的错误:1(项目):
没有CMAKE_C_COMPILER可寻。
CMake的错误在的CMakeLists.txt:1(项目):
没有CMAKE_CXX_COMPILER可以找到。
错误日志指定它无法找到这两个文件编译: 编译C编译器识别的源文件“CMakeCCompilerId.c”失败。 编译:
构建国旗: 编号标志:
The output was:
The system cannot find the file specified
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:
The output was:
The system cannot find the file specified
我试着下载“CMakeCXXCompilerId.cpp”和“CMakeCXXCompilerId.c”的文件,并尝试手动添加它们在同一个文件夹中,但它不解决它
我试图查找几个其他来源有类似的情况,但我似乎无法理解他们。 我的旧电脑并不存在这个问题,所以我认为它与Visual Studio有关?
谢谢你们,任何帮助将不胜感激
太谢谢你了!这工作! :D –