[gdal-dev] gdal-1.6.0 fails to build with Geo_DSDK-7.0.0.2167.linux.x86.gcc41.tar.gz on Centos 5.2

Stephen Woodbridge woodbri at swoodbridge.com
Tue Dec 23 00:48:22 EST 2008


Hi all,

I have run into a problem that gdal-1.6.0 fails to build with 
Geo_DSDK-7.0.0.2167.linux.x86.gcc41.tar.gz on Centos 5.2

I think this may be the same issue in http://trac.osgeo.org/gdal/ticket/2410

I you think it is and my additional info would be helpful, I can update 
the bug.

$ uname -a
Linux centos 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:30:27 EST 2008 i686 
i686 i386 GNU/Linux

$ gcc --version
gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)


./configure --without-ld-shared --with-libtiff=internal 
--with-geotiff=internal 
--with-mrsid=/home/woodbri/work/mrsid/Geo_DSDK-7.0.0.2167 
--with-jp2mrsid=yes

the problem(s) I ran into are:


1) if you use a relative path to the SDK it will fail build when it 
traverses into gdal sub dirs. Using a command like:

--with-mrsid=../Geo_DSDK-7.0.0.2167


2) The SDK does is not laid out in the directory tree gdal is expecting. 
This might be an issue with how the SDK is packaged that you need to 
talk to LizardTech about. I was about to work around this by adding some 
additional symlinks like this:

[woodbri at centos Geo_DSDK-7.0.0.2167]$ ls -l include | grep -v .h
total 668
lrwxrwxrwx 1 woodbri woodbri     1 Dec 22 12:13 base -> .
lrwxrwxrwx 1 woodbri woodbri     1 Dec 22 12:14 j2k_readers -> .
lrwxrwxrwx 1 woodbri woodbri     1 Dec 22 12:14 metadata -> .
lrwxrwxrwx 1 woodbri woodbri     1 Dec 22 10:31 mrsid_writers -> .
lrwxrwxrwx 1 woodbri woodbri     1 Dec 22 10:28 support -> .

[woodbri at centos Geo_DSDK-7.0.0.2167]$ ls -l lib
total 4
lrwxrwxrwx 1 woodbri woodbri   20 Dec 22 10:32 libltidsdk.a -> 
Release/libltidsdk.a
lrwxrwxrwx 1 woodbri woodbri   39 Dec 22 14:58 liblt_kakadu.a -> 
../3rd-party/lib/Release/liblt_kakadu.a
drwxr-xr-x 2 woodbri woodbri 4096 May  9  2008 Release

With these additions I was about to get through a configure, compile, 
and link. Unfortunately, I can't test anything yet, because I get an 
illegal instruction when I try to execute anything in the 
Geo_DSDK-7.0.0.2167, which I have reported to the LizardTech SDK forum.

Let me know if you want this added to the ticket above or I shold open a 
new ticket or whatever.

Thanks,
   -Steve


More information about the gdal-dev mailing list