Changes between Version 25 and Version 26 of ADAGUC


Ignore:
Timestamp:
Jul 26, 2013, 12:58:10 AM (11 years ago)
Author:
maartenplieger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ADAGUC

    v25 v26  
    164164
    165165----
     166
     167
     168== Installation instructions for UBUNTU and GDAL 1.10 - 2013-07-26==
     169
     170Here is a short guide for installing the GDAL ADAGUC driver on Ubuntu.
     171
     172{{{
     173sudo apt-get install libcurl4-openssl-dev libcairo2-dev libxml2-dev libgd2-xpm-dev libproj-dev
     174sudo apt-get install libudunits2-dev udunits-bin
     175
     176# Install latest hdf,netcdf and gdal libraries
     177# Source is put into /data/software, binaries are put into /data/build
     178# Note that slightly older versions of HDF5 and NetCDF4 can be installed with the packagemanager as well.
     179
     180export CPPFLAGS="-I/data/build/include/"
     181export LDFLAGS="-L/data/build/lib/"
     182export LD_LIBRARY_PATH="/data/build/lib/:$LD_LIBRARY_PATH"
     183export PATH="/data/build/bin/:$PATH"
     184
     185# You can add these exports to your ~/.bashrc file
     186
     187
     188
     189### INSTALL HDF5 from source ###
     190cd /data/software
     191wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.11.tar.gz
     192tar -xzvf hdf5-1.8.11.tar.gz
     193cd hdf5-1.8.11/
     194./configure --prefix=/data/build
     195make
     196make install
     197
     198### INSTALL NetCDF4 from source ###
     199cd /data/software
     200wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.3.0.tar.gz
     201tar -xzvf netcdf-4.3.0.tar.gz
     202cd netcdf-4.3.0/
     203./configure --prefix=/data/build --enable-netcdf-4
     204make
     205make install
     206
     207### INSTALL GDAL from source with the ADAGUC driver###
     208cd /data/software
     209wget http://download.osgeo.org/gdal/1.10.0/gdal-1.10.0.tar.gz
     210tar -xzvf gdal-1.10.0.tar.gz
     211
     212# Install GDAL ADAGUC driver (optional)
     213cd gdal-1.10.0/frmts/netcdf
     214
     215wget http://trac.osgeo.org/gdal/raw-attachment/wiki/ADAGUC/GDAL_ADAGUC_source_v0.3.tar.gz
     216tar -xzvf GDAL_ADAGUC_source_v0.3.tar.gz
     217
     218# Move source files to this directory
     219mv GDAL_ADAGUC_source_v0.3/* .
     220
     221# Adjust GNUMakefile with e.g. vi and add  adagucdataset.o to the OBJ list
     222
     223# Register the ADAGUC driver in GDAL:
     224#  -1) add "GDALRegister_ADAGUC();" between GMT and NetCDF drivers in /data/software/gdal-1.10.0/frmts/gdalallregister.cpp
     225#  -2) add "void CPL_DLL GDALRegister_ADAGUC(void);" between GMT and NetCDF drivers in /data/software/gdal-1.10.0/gcore/gdal_frmts.h
     226
     227# Compile GDAL
     228cd /data/software/gdal-1.10.0/
     229./configure --prefix=/data/build LIBS="-ludunits2"
     230
     231make
     232make install
     233
     234# The environment has now been setup completely for the ADAGUC GDAL installation #
     235
     236
     237
     238}}}
     239
     240----