GDAL编译安装配置_超详细_SQLite_libtiff_CURL_PROJ_GEOS_HDF4_HDF5_HDF5_Linux_C++

一、SQLite X64库安装与 测试(X86库同理)

下载网址: http://www.sqlite.org/download.html

1、下载源码sqlite-autoconf**

2、编译

./configure  --prefix=/xx/xx/xx
make
make install

3、移植

cd /xx/xx/xx/include
sudo cp * /usr/include/
cd /xx/xx/xx/lib
sudo cp * /usr/lib/

二、安装libtiff库

1、下载地址:http://download.osgeo.org/libtiff/

2、编译

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/home/xx/xx" ..
make -j4
make install

3、配置环境变量

三、安装CURL库

1、下载地址:https://github.com/curl/curl

2、同上Libtiff

四、编译PROJ

1、下载地址:https://github.com/OSGeo/PROJ

2、用Cmake进行编译

五、编译GEOS

1、下载:http://download.osgeo.org/geos/

2、同上

六、配置HDF4/HDF5

针对HDF5高版本不再包含ZLIB和SZIP库,对数据造成读取失败等问题,需要对HDF5进行源码编译!

0、编译并配置ZLIB、SZIP

下载:ZLIBSZIP

编译:同上

1、下载:

HDF5:https://support.hdfgroup.org/ftp/HDF5/releases/(下载源码SRC)

HDF:https://support.hdfgroup.org/ftp/HDF/releases/

2、编译安装

七、编译GDAL(不出意外这一步骤非常快)

1、下载GDAL http://download.osgeo.org/gdal/

2、编译

 
posted @ 2023-04-05 22:32  HaijianYang  阅读(202)  评论(0编辑  收藏  举报