【问题标题】:Cross-Compiling XZ-5.X.X on Windows在 Windows 上交叉编译 XZ-5.X.X
【发布时间】:2013-01-29 17:04:12
【问题描述】:

我正在尝试在 Windows 上交叉编译 xz-5.0.4。我已按照INSTALL-Windows.txt 中的说明进行操作,但收到错误消息

Initializing Automake:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/c/devel/xz-5.0.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

有人可以帮我找出问题吗?

【问题讨论】:

    标签: c++ gcc cross-platform xz


    【解决方案1】:

    你的 gcc 有问题:configure 无法通过编译 void 文件的简单测试。

    按照文档中的说明安装 GCC,然后确保其二进制文件名为 gcc(通常 Windows 发行版更喜欢 gcc-4.4 之类的东西),如果没有 - 制作符号链接。还要确保它在 PATH 中。

    从命令行尝试命令gcc test.c,其中test.c 是包含int main(void) { return 0; } 内容的文件——这是configure 通常检查编译器的方式。如果不行就让它工作,下次再配置。

    【讨论】:

      猜你喜欢
      • 2012-03-03
      • 1970-01-01
      • 2011-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多