我正在尝试从源代码构建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时,请使用以下内容:
我得到了这个(稍微剪裁以显示相关部分):
我得到了以下信息:
我已经成功地构建了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
我已经苦苦挣扎了一段时间,但没找到解决方法。 你有任何想法来解决这个问题吗?
注意:
一些库仅为静态库:zlib
、libgeotiff
、tiff
。
其他库都有静态和动态库两种形式。
静态库位于:安装路径/lib
。
动态库位于:安装路径/bin
。