#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' 未被识别为内部或外部命令
基础教程推荐
- 管理共享内存应该分配多少内存?(助推) 2022-12-07
- 为 C/C++ 中的项目的 makefile 生成依赖项 2022-01-01
- 为什么语句不能出现在命名空间范围内? 2021-01-01
- Windows Media Foundation 录制音频 2021-01-01
- 如何在不破坏 vtbl 的情况下做相当于 memset(this, ...) 的操作? 2022-01-01
- 使用从字符串中提取的参数调用函数 2022-01-01
- 在 C++ 中循环遍历所有 Lua 全局变量 2021-01-01
- 从 std::cin 读取密码 2021-01-01
- 如何“在 Finder 中显示"或“在资源管理器中显 2021-01-01
- 如何使图像调整大小以在 Qt 中缩放? 2021-01-01