[gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue
Gavin Fleming
gavin at afrispatial.co.za
Thu Apr 5 04:31:22 EDT 2012
On 03/04/2012 23:31, Even Rouault wrote:
> Le mardi 03 avril 2012 23:07:51, Gavin Fleming a écrit :
>> Hi
>>
>> I've just upgraded to gdal 1.9 on Ubuntu 11.10. When I tried to compile
>> MrSID support (which was working fine in 1.8) I get this:
>>
>> checking for XTIFFClientOpen in -lgeotiff... no
>> configure: error: libgeotiff is required to build GDAL MrSID driver
>>
>> with both these MrSID versions:
>>
>> gdal-mrsid-build
>> /usr/local/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/
>> (for this I also had to disable jp2mrsid in the gdal-mrsid-build script)
>>
>> and
>>
>> gdal-mrsid-build /usr/local/Geo_DSDK-7.0.0.2167/
>>
>> I have libgeotiff 1.3 and 1.2.5 installed.
>>
>> Anyone had the same experience?
> Hum, this should be something to report to the ubuntugis team. This build
> script isn't maintained by the GDAL project itself.
>
> Looking at the symbols needed by libltidsdk.so from the 8.0.0 SDK, there's no
> reason from requiring libgeotiff to build the MrSID SDK.
>
> I'm wondering if this error doesn't come from the fact that GDAL 1.9.0 in
> ubuntugis is now built with versionned symbols now.
Thanks Even, Frank
1) I've created a ticket on UbuntuGIS for this issue
(http://trac.osgeo.org/ubuntugis/ticket/21).
I got around it by checking out trunk and doing
./configure --with-threads --with-geotiff=internal
--with-mrsid=/usr/local/Geo_DSDK-7.0.0.2167 --with-python
then ldconfig after installing.
$ gdalinfo --formats | grep MrSID
MrSID (rov): Multi-resolution Seamless Image Database (MrSID)
JP2MrSID (rov): MrSID JPEG2000
2) This however did not work on another Ubuntu 11.10 box (where I really
need it to work):
2a)
./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
2b)
./configure
--with-mrsid=/usr/local/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_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
More information about the gdal-dev
mailing list