【发布时间】: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