linux下编译GDAL外加扩展格式支持(四)

123篇。

8、安装netcdf-4.1.3 [netcdf-4.1.3.tar.gz]
下载地址:http://www.unidata.ucar.edu/downloads/netcdf/index.jsp

mkdir /usr/local/netcdf413
./configure --prefix=/usr/local/netcdf413
#可能会爆出无法连接到HDF5库的错误。解决办法:
CPPFLAGS=-I/usr/local/hdf5188/include LDFLAGS=-L/usr/local/hdf5188/lib ./configure --prefix=/usr/local/netcdf413
#若同时找不到z library,可按下面进行配置:
CPPFLAGS="-O3 -fPIC -I/usr/programs/hdf5188/include" LDFLAGS="-L/usr/programs/zlib126/lib/ -L/usr/programs/hdf5188/lib" ./configure --prefix=/usr/programs/netcdf413
make
make install
#安装成功。出现提示:
+-------------------------------------------------------------+
| Congratulations! You have successfully installed netCDF! |
| |
| You can use script "nc-config" to find out the relevant |
| compiler options to build your application. Enter |
| |
| nc-config --help |
| |
| for additional information. |
| |
| CAUTION: |
| |
| If you have not already run "make check", then we strongly |
| recommend you do so. It does not take very long. |
| |
| Before using netCDF to store important data, test your |
| build with "make check". |
| |
| NetCDF is tested nightly on many platforms at Unidata |
| but your platform is probably different in some ways. |
| |
| If any tests fail, please see the netCDF web site: |
| http://www.unidata.ucar.edu/software/netcdf/ |
| |
| NetCDF is developed and maintained at the Unidata Program |
| Center. Unidata provides a broad array of data and software |
| tools for use in geoscience education and research. |
| http://www.unidata.ucar.edu |
+-------------------------------------------------------------+

 

9、安装ECW插件(3.3-ReadOnly)ERDAS的ECW插件逐渐走向毕源,我们只能找到3.3版本的源码进行安装,注意3.3仅支持读,不支持写。

下载地址:http://www.erdas.com/products/ecw/ERDASECWJPEG2000SDK/Downloads.aspx

./configure --prefix=/usr/local/libecwj233
make
#此处会有一个错误:由于没有创建include文件夹,需要在install前执行:mkdir /usr/local/libecwj233/include
mkdir /usr/local/libecwj233/include
make install

 未完待续。

全部为本人原创码字,请尊重作者辛苦劳动,转载请注明出处!!!

原文地址:https://www.cnblogs.com/yeahgis/p/2446725.html