gpt4 book ai didi

c++ - 无法使用cmake编译

转载 作者:行者123 更新时间:2023-11-30 17:31:11 28 4
gpt4 key购买 nike

几个小时后出现错误,我需要一些帮助。我正在尝试编译 duke,源代码可以在这里找到: http://opensource.mikrosimage.eu/duke.html

我下载了 Cmake(除了将 python 文件编译到 pyc 之外,我从未编译过其他任何东西),这对我来说是非常新的领域。

这是来自错误日志:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags:
Id flags:

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

我的 PATH 变量中有 cmake,使用 win 7 x64,我还尝试放入模块和编译器的路径,但仍然收到这些错误。

那么我必须单独下载编译器还是我做错了什么?

最佳答案

来自 INSTALL.md 文件:

For the moment Duke can compile on Linux only. The MacOs version is on its way and the Windows version is untested and will probably not compile as of now. We expect to support those three platforms in a near future.

并且:

You'll need a C++11 compiler, Duke is known to compile on GCC 4.7.1 and later.

如果你感觉很勇敢,你可以安装 Cygwin它确实提供了 C++ 编译器并尝试从 Cygwin 终端进行构建。

关于c++ - 无法使用cmake编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24747307/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com