【问题标题】:can't compile with cmake无法用 cmake 编译
【发布时间】:2014-07-14 22:49:56
【问题描述】:

几个小时后出现错误,我需要一些帮助。 我正在尝试编译 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,我还尝试输入模块和编译器的路径,但仍然出现这些错误。

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

【问题讨论】:

标签: c++ c


【解决方案1】:

来自 INSTALL.md 文件:

目前 Duke 只能在 Linux 上编译。 MacOs 版本正在路上,Windows 版本未经测试 并且现在可能不会编译。我们希望在不久的将来支持这三个平台。

还有:

您需要一个 C++11 编译器,Duke 可以在 GCC 4.7.1 及更高版本上编译。

如果你觉得很勇敢,你可以安装Cygwin,它提供了一个 C++ 编译器并尝试从 Cygwin 终端构建。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-02-22
    • 1970-01-01
    • 1970-01-01
    • 2012-10-14
    • 2014-04-23
    • 2020-08-02
    相关资源
    最近更新 更多