[Geotiff] listgeo/geotifcp and gdal

David Burken dburken at comcast.net
Tue Mar 1 18:42:49 EST 2011


Conrad,

Here's what I do.  I build my own libtiff, libgeotiff and gdal from 
svn.  I install each to a local sandbox.  Then set the sandbox bin in my 
PATH and lib in my LD_LIBRARY_PATH.  A wise friend of mine (thanks 
Scott) taught me a long time ago to make a config script for each 
library for the configure line and run it.  So I do:

// Build libtiff:
cd libtiff
./mylibtiffconfig.sh
make
make install

// Build geotiff:
cd libgeotiff
./mylibgeotiffconfig.sh
make
make install

// Build gdal
cd gdal
./mygdalconfig.sh
make
make install

In you bash dot files add your install bin to your PATH.  If you go to 
/usr/local you may not need.
In you bash dot files add your install lib to your LD_LIBRARY_PATH=$.  
If you go to /usr/local you may not need.

Snip from .bashrc (or wherever):
LD_LIBRARY_PATH=/work/osgeo/local/lib
PATH=/work/osgeo/local/bin:${PATH}
export LD_LIBRARY_PATH PATH

// Contents of mylibtiffconfig.sh
#!/bin/sh
# File: mylibtiffconfig.sh
prefix=/work/osgeo/local
./configure --prefix=${prefix}

// Contents of mylibgeotiffconfig.sh
#!/bin/sh
# File: mylibgeotiffconfig.sh
prefix=/work/osgeo/local
./configure --prefix=${prefix} --with-proj=/work/osgeo/local 
--with-libtiff=/work/osgeo/local

// Contents of mygdalconfig.sh
#!/bin/sh
# File: mygdalconfig.sh
prefix=/work/osgeo/local
./configure --prefix=${prefix} --with-libtiff=/work/osgeo/local 
--with-geotiff=/work/osgeo/local

Obviously your config scripts could have man other options.  Like here 
is my real gdal config:
#!/bin/sh
# File: mygdalconfig.sh
prefix=/work/osgeo/local
./configure --prefix=${prefix} --with-kakadu=/work/drb/kakadu/latest 
--with-hdf4=/work/osgeo/local --with-hdf5=/work/osgeo/local 
--with-libtiff=/work/osgeo/local --with-geotiff=/work/osgeo/local 
--with-mrsid=/work/drb/mrsid/Geo_DSDK-7.0.0.2167

Hope that helps,
Dave

On 03/01/2011 04:55 PM, Conrad Bielski wrote:
> Hello geotiff list!
>
> Today I created my first BifTIFF (6.7 Gb) using gdal (1.8) and I needed to use listgeo for some projection injection which I have done with regular size tiff files in the past. The problem is that when I run listgeo on the BigTIFF, I get an error that states libtiff does not support BigTIFF.
>
> Here is some background to this problem. I'm running CentOS 5.4 which obviously has it's own libtif libraries in the system specified areas required to run many system programs but I build gdal with libtiff and geotiff = internal and keep those libraries in a local directory because I want to have access to the latest and greatest for my geoprocessing.
>
> What I would like to know is how can I install the listgeo/geotifcp tools so that they link to the local gdal tiff libraries (which I know are BigTIFF ready)?
>
> Today, I tried installing geotiff from sources after having installed gdal with the interal tiff libraries. Using the configuration script I passed the local lib and include directories of the gdal install. When it finished, I ran ldd listgeo and geotiff points to the correct local library but tiff points to the system tiff library files in /usr/lib64.
>
> Anyone have any suggestions?
> Thanks and have a great day,
> Conrad :)
>
>
>
> _______________________________________________
> Geotiff mailing list
> Geotiff at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/geotiff
>


More information about the Geotiff mailing list