Gavin, I was confused by the formatting of your output snippet. It looks to me like your MrSID SDK v8 build succeeded, however the "make install" does not actually install the mrsid library. Should just be a matter of copying libltidsdk.so into your gdal/lib directory and you are good to go. Or if not, post more details and I'm happy to take a look.
Cheers, Kirk. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kirk McKelvey Sent: mardi 10 avril 2012 11:07 To: Gavin Fleming; gdal-dev Subject: RE: [gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue 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. Re. problem finding the .so w/ MrSID SDK v8.5 let me spin up a build and see if I can repro. -----Original Message----- From: [email protected] [mailto:[email protected]] 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/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 _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
