【问题标题】:Running autotools in Windows (MinGW)在 Windows (MinGW) 中运行自动工具
【发布时间】:2017-12-16 01:25:08
【问题描述】:

我正在尝试在 Windows 上从 source 构建 shapelib。该库使用自动工具。我安装了带有适当软件包的 MinGW。当我跑步时

C:\MinGW\msys\1.0\bin\sh autogen.sh

输出

autogen.sh: line 4: readlink: command not found
autogen.sh: line 4: dirname: command not found
**Error**: Directory `' does not look like the top-level package directory

我不希望 readlink 在 Windows 上工作,所以我直接跳到

C:\MinGW\msys\1.0\bin\sh configure

但是,这也会引发错误

configure: line 478: sed: command not found
configure: line 477: expr: command not found
configure: line 478: sed: command not found
configure: line 492: sed: command not found
: error: cannot create .lineno; rerun with a POSIX shell

有没有希望让它在 Windows 上编译?我错过了一些明显的东西吗?我仔细检查并安装了 sed 包。

【问题讨论】:

  • 请注意,在适当的 Autotools 项目中,没有义务重建构建系统(这是 autogen.sh 传统上所做的)以便从未经修改的发行版构建软件本身。事实上,通常最好避免这样做。

标签: c++ c makefile mingw autotools


【解决方案1】:

问题解决了。我的 MinGW 安装已损坏。我删除了 MinGw 并再次安装它。现在autogen.sh 运行良好。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-17
    • 1970-01-01
    相关资源
    最近更新 更多