使用源代码构建的Geotiff库在构建GDAL时出现错误。

4
我正在尝试从源代码构建gdal 1.9.2。我的系统是Windows 7 64位,并且我正在msys环境中工作。
我已经成功地构建了zlib 1.2.7,jpeg9a,proj 4.8.0,tiff,geotiff 1.4.0和geos 3.4.2。
现在,当配置gdal时,请使用以下内容:
./configure --prefix=/d/PRUEBAS/LIBS/gdal_1.9.2/install/ --with-libz=/d/PRUEBAS/LIBS/zlib-1.2.7/install/lib --with-jpeg=/d/PRUEBAS/LIBS/libjpeg9a/install/bin --with-libtiff=/d/PRUEBAS/LIBS/libtiff/install_with_jpeg/bin --with-geos=/d/PRUEBAS/LIBS/geos_3.4.2/install/bin/geos-config  --with-static-proj4=/d/PRUEBAS/LIBS/proj_4.8.0/install/lib

我得到了这个(稍微剪裁以显示相关部分):
GDAL is now configured for i686-pc-mingw32
  LIBTOOL support:           yes

  LIBZ support:              external
  LIBLZMA support:           no
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          internal
  LIBPNG support:            internal
  GTA support:               no
  LIBTIFF support:           external (BigTIFF=no)
  LIBGEOTIFF support:        internal
  LIBJPEG support:           external
  GEORASTER support:         no
  GEOS support:              yes

  SWIG Bindings:          no

  Statically link PROJ.4:    yes
  enable OGR building:       yes
  enable pthread support:    yes
  enable POSIX iconv support:no, consider installing GNU libiconv
  hide internal symbols:     no

我理解所有配置都已正确,因为我从源代码构建的库被“检测”并显示为“外部”。

现在,如果我尝试使用geotiff构建gdal

 --with-geotiff=/d/PRUEBAS/LIBS/libgeotiff_1.4.0/install/lib/libgeotiff

我得到了以下信息:
checking for libtiff... using libtiff from /d/PRUEBAS/LIBS/libtiff/install_with_jpeg/bin.
checking for TIFFScanlineSize64 in -ltiff... no
checking for XTIFFClientOpen in -lgeotiff... no
checking for XTIFFClientOpen in -lgeotiff... (cached) no
configure: error: We require at least GeoTIFF 1.2.1. Consider using the one supplied with GDAL

我已经苦苦挣扎了一段时间,但没找到解决方法。 你有任何想法来解决这个问题吗?

注意: 一些库仅为静态库:zliblibgeotifftiff

其他库都有静态和动态库两种形式。

静态库位于:安装路径/lib

动态库位于:安装路径/bin

1个回答

0

以下是来自GDAL网站的Linux配置帮助: http://trac.osgeo.org/gdal/wiki/BuildingOnUnix

我知道这不是你实际使用的系统,但由于你正在使用GCC和MinGW,因此其中有一个“注意事项”符号点涵盖了类似的失败,可能适用于你。也就是说,“configure”脚本对库版本不太敏感。

因此,您可以尝试他们建议的解决方法,并设置“--with-geotiff=internal”。

除此之外,我建议你去找到在“configure: error:”之前产生那些行的位置。它是一个脚本,所以你应该能够在文本编辑器中看到它在做什么(甚至可以尝试更改它以使其适合你的需求)。


我需要外部的那个。其他库正在使用那个GeoTiff。但我会检查这些脚本,看看是否找到了问题所在的行。 - Adri C.S.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接