在 Buildroot 中安装后 GIS 的问题



几天以来我就遇到了一个问题:我正在努力在Buildroot上添加postGIS包,但是在配置步骤中收到以下错误:

checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no
configure: error: could not find libpq-fe.h

使用配置命令行:

./configure --target=arm-buildroot-linux-gnueabi --host=arm-buildroot-linux-gnueabi --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix="" --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared  --prefix=/usr/bin

我尝试使用相同的参数自己运行配置,它最初显示了几个错误,包括这个错误,但在安装依赖项后所有这些都消失了

  • Postgresql-all

  • libxml2-dev

  • libgeos-dev

  • libproj-dev

(剩下的唯一错误是关于在我交叉编译时无法运行的测试,但它出现在经过验证的 libpq 检查之后(。 然而,当使用buildroot构建时,libpq-fe.h问题仍然存在(postgresql v11.5软件包也安装在buildroot上(

在查看buildroot日志时,我看到一些命令在配置脚本之前执行, 我尝试在配置之前手动执行它们,结果是它不会更改任何内容,除非修改路径(将构建根/输出/主机/bin 和 sbin 添加到 PATH(,这使得配置失败并出现以下错误:

checking for xml2-config... /usr/bin/xml2-config
checking libxml/tree.h usability... no
checking libxml/tree.h presence... no
checking for libxml/tree.h... no
configure: error: could not find headers include related to libxml2

与以前的错误不同,但相似。我很确定 buildroot 搞砸了配置脚本,它不会在正确的位置查找标头,我可能在某处缺少参数,但我安装了其他一些配置几乎相同的外部包,效果很好!我找不到要修改的内容,如果有人对如何解决这个烂摊子有建议,我很乐意尝试!:) 也请随时向我询问更多详细信息(以下是 postgis.mk 文件和配置文件.log文件(

问候 蒂博

这是我 postgis.mk 文件:

POSTGIS_VERSION = 3.0.1
POSTGIS_SOURCE = postgis-$(POSTGIS_VERSION).tar.gz
POSTGIS_SITE = http://download.osgeo.org/postgis/source
POSTGIS_LICENSE = MIT
POSTGIS_LICENSE_FILES = COPYING
POSTGIS_INSTALL_STAGING = YES
POSTGIS_CFLAGS = $(TARGET_CFLAGS)
POSTGIS_CONF_OPTS = --prefix=/usr/bin 
POSTGIS_CONF_ENV = CFLAGS="$(POSTGIS_CFLAGS)"
POSTGIS_DEPENDENCIES = proj geos postgresql
$(eval $(autotools-package)) ```

配置.log可以在这里找到:https://pastebin.com/NvDi4NQv

自从这个问题被问到这里以来,postgis已被添加到上游Buildroot中,并进行了所有必要的修复。所以它可能不再相关。

最新更新