#39;cmake#39; is not recognised as an internal or external command(cmake 未被识别为内部或外部命令)
问题描述
我正在尝试在 Visual Studio 10 中为 esys-particle-win 运行 cmake.
I'm trying to run cmake in Visual Studio 10, for esys-particle-win.
我的 cmake 路径:C:Program Files (x86)CMake 2.8incmake.exe
My path to cmake:C:Program Files (x86)CMake 2.8incmake.exe
我的esys-particle-win路径:C:esys-particle-win runkuildvs2010mkvs10.bat
My path to esys-particle-win:C:esys-particle-win runkuildvs2010mkvs10.bat
我在 Visual Studio 2010 的管理员命令提示符中键入的命令是:
The commands I'm typing in the administrator command prompt of Visual Studio 2010 are:
cd c:esys-particle-win runkuildvs2010
mkvs10.bat
我收到此错误:
'cmake' is not recognized as an internal or external command
mkvs10.bat的内容:
cmake .. -G "Visual Studio 10" -G "NMake Makefiles"
谁能告诉我我错在哪里?我不懂计算机编程.我按照本网站第 2.3.1 节中提到的说明进行操作:`
could anyone tell me where I am wrong?. I don't know computer programming. I followed the instructions mentioned in section 2.3.1 of this site: `
https://launchpadlibrarian.net/139659869/esys-particle-win-%28v2.1%29-build-instructions.pdf
`任何帮助将不胜感激,谢谢.
` Any help would be greatly appreciated, Thank you.
推荐答案
错误信息表示找不到 cmake.
您可以将其位置添加到您的路径中,如下所示:
The error message means it cannot find cmake.
You can add its location to your path from the prompt like this:
set PATH="C:Program Files (x86)CMake 2.8in";%PATH%
这篇关于'cmake' 未被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:'cmake' 未被识别为内部或外部命令
基础教程推荐
- CString 到 char* 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 初始化列表*参数*评估顺序 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
