c++ - 在 Windows 中运行 autotools (MinGW)

标签 c++ c makefile mingw autotools

我正在尝试构建 shapelib来自 source在 Windows 上。该库使用自动工具。我安装了带有适当软件包的 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

我不希望阅读链接适用于 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 包。

enter image description here

最佳答案

问题解决了。我的 MinGW 安装已损坏。我删除了 MinGw 并重新安装了它。现在 autogen.sh 运行正常。

关于c++ - 在 Windows 中运行 autotools (MinGW),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47841742/

相关文章:

c++ - 为 sf::String 使用字符串文字时出现链接器错误

c++ - C++:如果没有来自串行端口的新数据,如何忽略ReadFile()?

iphone - NSString stringWithFormat 很慢

µ Controller 上的 C 编程 : printf() and FDEV_SETUP_STREAM?

打印输出的 cs50 首字母缩写错误

c++ - 从 Fortran 调用 C++(链接问题?)

linux - $(VAR) : in makefile 的含义

c++ - 在 C++ 控制台应用程序中显示动态值

makefile - 从 makefile 中动态生成文件/对象列表

c++ - 如何从 ID3DXEffect 获取所有着色器常量(统一)?