[gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue

Kirk McKelvey kmckelvey at lizardtech.com
Tue Apr 10 17:09:28 EDT 2012


As far as I know none of the drivers install their dependent DLLs.  But I could be wrong.

Glad you are up and running.

-----Original Message-----
From: Gavin Fleming [mailto:gavin at afrispatial.co.za] 
Sent: mardi 10 avril 2012 16:09
To: Kirk McKelvey
Cc: gdal-dev
Subject: Re: [gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue

Thanks Kirk, that did the trick

On 10/04/2012 18:06, Kirk McKelvey wrote:
> The undefined references you are seeing with MrSID SDK v7 should not be getting compiled for v7, e.g.:
>
> #if defined(LTI_SDK_MAJOR)&&  LTI_SDK_MAJOR>= 8
>      lt_uint8 gen;
>      bool raster;
>      LT_STATUS eStat =
>          MrSIDImageReaderInterface::getMrSIDGeneration(poOpenInfo->pabyHeader, gen, raster);
>      if (!LT_SUCCESS(eStat) || !raster)
>         return FALSE;
> #endif
>
> It seems like you are linking against MrSID SDK v7 after having compiled against MrSID SDK v8?  Make sure you are rebuilding the MrSID driver(s) after reconfiguring for v7.
I did a make clean and then recompiled.
>
> Re. problem finding the .so w/ MrSID SDK v8.5 let me spin up a build and see if I can repro.

As per your next email it does seem that make install is not putting the .so in the right place with v8.5. But I haven't tested by copying it there manually as I'm running smoothly with v7.
>
> -----Original Message-----
> From: gdal-dev-bounces at lists.osgeo.org 
> [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Gavin Fleming
> Sent: mardi 10 avril 2012 05:50
> To: gdal-dev
> Subject: Re: [gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff 
> issue
>
> This worked on one Ubuntu 11.10 box but not on another (where I really need it to work). I'd be grateful for any help:
>
> --with MrSID SDK 7:
>
> ./configure --with-geotiff=internal
> --with-mrsid=/usr/local/Geo_DSDK-7.0.0.2167 --with-threads 
> --with-python
>
> /bin/bash /home/gavin/src/gdal/libtool --mode=link    --tag=LD    g++
> gdalinfo.lo  /home/gavin/src/gdal/libgdal.la -o gdalinfo
> libtool: link: ignoring unknown tag LD
> libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo 
> /home/gavin/src/gdal/.libs/libgdal.so -L/usr/lib 
> -L/usr/lib/x86_64-linux-gnu 
> -L/usr/local/Geo_DSDK-7.0.0.2167/3rd-party/lib/Release
> -L/usr/local/Geo_DSDK-7.0.0.2167/lib/Release -lgeos_c 
> /usr/lib/x86_64-linux-gnu/libsqlite3.so /usr/lib/libodbc.so 
> /usr/lib/libodbcinst.so /usr/lib/x86_64-linux-gnu/libexpat.so 
> -lxerces-c -lNCSEcw -lNCSEcwC -lNCSCnet -lNCSUtil 
> /usr/lib/x86_64-linux-gnu/libjasper.so -lnetcdf /usr/lib/libhdf5.so 
> /usr/lib/libmfhdfalt.so /usr/lib/libdfalt.so /usr/lib/libgif.so 
> /usr/lib/x86_64-linux-gnu/libjpeg.so -lpng -lpq -lz -lm -lrt -ldl 
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so -lltidsdk -lpthread 
> -llt_kakadu -pthread
> /home/gavin/src/gdal/.libs/libgdal.so: undefined reference to `LizardTech::MrSIDImageReaderInterface::getMrSIDGeneration(unsigned char const*, unsigned char&, bool&)'
> /home/gavin/src/gdal/.libs/libgdal.so: undefined reference to `LizardTech::LTISceneBuffer::LTISceneBuffer(LizardTech::LTIPixel const&, unsigned int, unsigned int, void**, unsigned int)'
> /home/gavin/src/gdal/.libs/libgdal.so: undefined reference to `LizardTech::LTISceneBuffer::LTISceneBuffer(LizardTech::LTIPixel const&, unsigned int, unsigned int, void**, unsigned int)'
> /home/gavin/src/gdal/.libs/libgdal.so: undefined reference to 
> `LizardTech::J2KImageReader::initialize(LizardTech::LTIOStreamInf&,
> bool, float, bool)'
> /home/gavin/src/gdal/.libs/libgdal.so: undefined reference to `LizardTech::LTISceneBuffer::getBandData(unsigned short) const'
> collect2: ld returned 1 exit status
> make[1]: *** [gdalinfo] Error 1
> make[1]: Leaving directory `/home/gavin/src/gdal/apps'
> make: *** [apps-target] Error 2
>
> ----------------------------------------------------
> --with MrSID SDK 8:
>
> ./configure
> --with-mrsid=/usr/local/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raste
> r_DSDK --with-geotiff=internal --with-threads --with-python make make 
> install ldconfig gdalinfo
> gdalinfo: error while loading shared libraries: libltidsdk.so: cannot 
> open shared object file: No such file or directory
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

--
regards

Gavin

Gavin Fleming
http://afrispatial.co.za
t: 0218620670
c: 0845965680
f: 0866164820



More information about the gdal-dev mailing list