我试图在Windows上从shapelib构建source。该库使用autotools。我安装了适当的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软件包。
问题解决了。我的MinGW安装已损坏。我删除了MinGw并再次安装。现在autogen.sh
运行良好。