简体   繁体   English

在Windows中运行autotools(MinGW)

[英]Running autotools in Windows (MinGW)

I am trying to build the shapelib from source on Windows. 我正在尝试从Windows上的源代码构建shapelib The library uses autotools. 该库使用autotools。 I have MinGW installed with the appropriate packages. 我安装了适当的MinGW包。 When I run 我跑的时候

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

it outputs 它输出

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

I don't expect readlink to work with Windows so I just skipped right to 我不希望readlink与Windows一起工作所以我只是跳过了

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

However, that also throws errors 但是,这也会引发错误

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

Is there any hope of getting this to compile on windows? 有没有希望在Windows上编译? Am I missing something obvious? 我错过了一些明显的东西吗 I double checked and the sed package is installed. 我仔细检查并安装了sed软件包。

在此输入图像描述

Problem solved. 问题解决了。 My MinGW install was corrupted. 我的MinGW安装已损坏。 I removed MinGw and installed it again. 我删除了MinGw并再次安装。 Now autogen.sh runs fine. 现在autogen.sh运行正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM