使用cmake的正确方法是什么
我遵循在 Windows 中编译软件的说明,如下所述: https://github.com/solvespace/solvespace< /a> .但是当我启动第一个 cmake 命令时,它指出以下内容:
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw64.cmake -DCMAKE_BUILD_TYPE=Release
CMake Error at CMakeLists.txt:42 (project):
Running
'nmake' '-?'
failed with:
Impossibile trovare il file specificato
-- Configuring incomplete, errors occurred!
See also "C:/Users/user/Documents/experiments/SolveSpaceFolder/solvespace/build/CMakeFiles/CMakeOutput.log".
我已经安装了 mingw64 并添加到 PATH,实际上它可以单独工作。而且我可以看到隐含了 nmake 。我就是不知道出了什么问题。
I was following instructions for compiling a software in windows as described here: https://github.com/solvespace/solvespace . But when i launch the first cmake command it points out the following :
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw64.cmake -DCMAKE_BUILD_TYPE=Release
CMake Error at CMakeLists.txt:42 (project):
Running
'nmake' '-?'
failed with:
Impossibile trovare il file specificato
-- Configuring incomplete, errors occurred!
See also "C:/Users/user/Documents/experiments/SolveSpaceFolder/solvespace/build/CMakeFiles/CMakeOutput.log".
i've alredy installed mingw64 and added to PATH, in fact it work alone. Moreover I can see that there is nmake implied. I just can't figure out what's the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除 CMakeCache.txt 并尝试设置生成器
相关问题:CMake & Windows 上的 MinGW 编译,无需 -G“MinGW Makefiles”标志。
Remove CMakeCache.txt and try to set the generator
Related question: CMake & MinGW Compilation on Windows, without needing the -G "MinGW Makefiles" flag.