[Ubuntu] Hello and question (2)

Bill Kristan wkristan at gmail.com
Mon Jun 8 19:48:19 EDT 2009


Hi - finally got a chance to try out manageR, and I'm not getting any errors 
with rgdal in 9.04. I'm able to import a mrsid image from qgis to R - I used a 
fairly small file (about 3 MB, 5000 x 5000 pixels, 3 bands), and it brought my 
computer to a crawl, but it worked! I don't do a lot of image analysis, so not 
sure what needs to be tested, but a correlation matrix of the three bands 
worked fine.

To make this work, I did have to download and install rpy2 from a tarball from 
the sourceforge project page, since the package provided by Ubuntu is still 
rpy (and it still is in the next release, so far). And, I installed rgdal 
after gdal-mrsid-src, so both gdal_MrSID and rgdal were built against gdal 
1.6.1.

Bill

On Sunday 07 June 2009 01:39:41 am Agustin Lobo wrote:
> I've found that, on the ubuntu 8.04 machine,
> gdal-mrsid-src (gdal 1.6.1) also creates a problem for package rgdal
>
> in R:
>  > require(rgdal)
>
> Loading required package: rgdal
> Loading required package: sp
> Error in fun(...) :
> 	GDAL Error 1: /usr/lib/gdal16plugins/gdal_MrSID.so: undefined symbol:
> _ZNSs20_S_empty_rep_storageE
>
> I can avoid the error and be able of working with rgdal (obviously not
> using mrsid formats) with
>
> sudo mv gdal_MrSID.so gdal_MrSID.so_nofunciona
>
> in directory
> /usr/lib/gdal16plugins
>
> Just FYI
>
> Agus
>
> Agustin Lobo wrote:
> > Hi!
> >
> > Just tested:
> >
> > 1. For the Intrepid machine:
> > Both
> > gdalinfo -formats
> > and
> > gdalinfo of5mv50sd0f299112ss0r051.sid
> > work fine,
> >
> > and qgis binary downloaded from Jürgen Fisher server also displays
> > the sid imagery fine.
> >
> > 2. For the hardy machine:
> > None of them work. gdalinfo -formats
> > does not list mrsid despite the compilation worked, see the last lines:
> >
> > checking for MrSID JPEG2000 support... enabled
> > checking for XTIFFClientOpen in -lgeotiff... yes
> > configure: creating ./config.status
> > config.status: creating Makefile
> > g++ -DFRMT_mrsid -Wall -I/usr/local/Geo_DSDK-7.0.0.2167/include
> > -I/usr/include/geotiff -fPIC  -DFRMT_mrsid -I/usr/include/gdal
> > -DMRSID_J2K -I/usr/local/Geo_DSDK-7.0.0.2167/include
> > -I/usr/include/geotiff   -c -o mrsiddataset.o mrsiddataset.cpp
> > g++ -DFRMT_mrsid -Wall -I/usr/local/Geo_DSDK-7.0.0.2167/include
> > -I/usr/include/geotiff -fPIC  -DFRMT_mrsid -I/usr/include/gdal
> > -DMRSID_J2K -I/usr/local/Geo_DSDK-7.0.0.2167/include
> > -I/usr/include/geotiff   -c -o mrsidstream.o mrsidstream.cpp
> > g++ -shared  mrsiddataset.o mrsidstream.o -lgeotiff
> > -L/usr/local/Geo_DSDK-7.0.0.2167/lib/Release
> > -L/usr/local/Geo_DSDK-7.0.0.2167/3rd-party/lib/Release -lltidsdk
> > -lpthread -L/usr/lib -lgdal1.6.0  -o gdal_MrSID.so
> > install -d /usr/lib/gdal16plugins
> > cp gdal_MrSID.so /usr/lib/gdal16plugins
> >
> > but then:
> > $ gdalinfo of5mv50sd0f299112ss0r051.sid
> > ERROR 1: /usr/lib/gdal16plugins/gdal_MrSID.so: undefined symbol:
> > _ZNSs20_S_empty_rep_storageE
> > ERROR 1: /usr/lib/gdal16plugins/gdal_MrSID.so: undefined symbol:
> > _ZNSs20_S_empty_rep_storageE
> > ERROR 4: `of5mv50sd0f299112ss0r051.sid' does not exist in the file
> > system, and is not recognised as a supported dataset name.
> >
> >
> > Thanks a lot for your work. Great news regarding ecw!
> >
> > Agus
> >
> > Alan Boudreault wrote:
> >> Hi guys,
> >>
> >> I've updated gdal-mrsid-src in UbuntuGIS. (apt-get update && ...)
> >>
> >> * I fixed symbol lookup errors (There was a new object in 1.6.x to
> >> include in the makefile)
> >> * I enabled MrSID JPEG2000 support by default.
> >>
> >> FYI, a similar package for ECW should be available in the next weeks.
> >>
> >> Thanks a lot for your tests, really appreciated. I've never used MrSID
> >> data, so.. :)
> >>
> >> Alan
> >>
> >> Alan Boudreault wrote:
> >>> Hi Bill,
> >>>
> >>> Can you send me an example of MrSID data which I could use to test
> >>> that ?
> >>> (off list, directly to my email address)
> >>>
> >>> Thanks,
> >>> Alan
> >>>
> >>> On June 4, 2009 12:30:34 pm Bill Kristan wrote:
> >>>> Hi Alan - I know there's at least one other user following this
> >>>> thread, so
> >>>> I'll make my progress report on the list...
> >>>>
> >>>> Your instructions worked great, I managed to get the plugin installed.
> >>>>
> >>>> The next problem is that when I try to run either r.in.gdal or
> >>>> gdal_translate I get an "undefined symbol" error
> >>>>
> >>>> gdal_translate: symbol lookup error:
> >>>> /usr/lib/gdal16plugins/gdal_MrSID.so:
> >>>> undefined symbol: _ZN12LTIVSIStreamC1Ev
> >>>>
> >>>> The configure output (and the command I used) is here:
> >>>>
> >>>> root at wkristanlt:/home/bill# gdal-mrsid-build /usr/local/GeExpress-7.0
> >>>>
> >>>> grep: /usr/local/GeExpress-7.0/include/support/lt_base.h: No such
> >>>> file or
> >>>> directory
> >>>> Extracting GDAL/MrSID tarball
> >>>> Building GDAL/MrSID plugin
> >>>> checking for gcc... gcc
> >>>> checking for C compiler default output file name... a.out
> >>>> checking whether the C compiler works... yes
> >>>> checking whether we are cross compiling... no
> >>>> checking for suffix of executables...
> >>>> checking for suffix of object files... o
> >>>> checking whether we are using the GNU C compiler... yes
> >>>> checking whether gcc accepts -g... yes
> >>>> checking for gcc option to accept ISO C89... none needed
> >>>> checking for g++... g++
> >>>> checking whether we are using the GNU C++ compiler... yes
> >>>> checking whether g++ accepts -g... yes
> >>>> checking for ranlib... ranlib
> >>>> checking for g++ -shared ... yes
> >>>> checking for gdal-config... /usr/bin/gdal-config
> >>>> using /usr/lib/gdal16plugins as GDAL shared library autoload directory
> >>>> checking for lt_base.h in
> >>>> /usr/local/GeExpress-7.0/include/support... not
> >>>> found.
> >>>> checking for lt_base.h in /usr/local/GeExpress-7.0/include... found
> >>>> MrSID
> >>>> DSDK version 7.x or newer.
> >>>> checking for MG3ImageWriter.h in
> >>>> /usr/local/GeExpress-7.0/include/mrsid_writers... no encoding support.
> >>>> checking for MrSID JPEG2000 support... disabled
> >>>> checking for XTIFFClientOpen in -lgeotiff... yes
> >>>> configure: creating ./config.status
> >>>> config.status: creating Makefile
> >>>>
> >>>> I don't see any problems there - maybe a problem with the gcc or g++
> >>>> version I'm using? I have several installed, but when I do g++
> >>>> --version I
> >>>> get
> >>>>
> >>>> g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3
> >>>>
> >>>> and gcc --version gives me:
> >>>>
> >>>> gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
> >>>>
> >>>> Any ideas?
> >>>>
> >>>> Thanks,
> >>>> Bill
> >>>>
> >>>> ps. If it's possible to enable jpeg2000 support in this process, I'd
> >>>> be delighted get that working too.
> >>>>
> >>>> On Wednesday 03 June 2009, Alan Boudreault wrote:
> >>>>> Hi Bill,
> >>>>>
> >>>>> Here's the procedure that you have to do to build mrsid plugin:
> >>>>>
> >>>>> 1- apt-get update (just to be sure that you get the lastest UbuntuGIS
> >>>>> packages list)
> >>>>>
> >>>>> 2- apt-get install gdal-mrsid-src
> >>>>>
> >>>>> 3- apt-get install gdal-bin (we'll use the utility gdalinfo to
> >>>>> check if
> >>>>> the plugin is properly installed)
> >>>>>
> >>>>> 4- Run gdalinfo: gdalinfo --formats | grep -i mrsid  (at this
> >>>>> point... you should not see any output because the plugin is not
> >>>>> installed)
> >>>>>
> >>>>> 5- Download and extract the Lizard GeoSDK.
> >>>>>
> >>>>> 6- Build and install the plugin: gdal-mrsid-build
> >>>>> /usr/local/Geo_DSDK-7.0.0.2167 (this is an example path... you can
> >>>>> use any path you want.. just pass it to gdal-mrsid-build in argument)
> >>>>>
> >>>>> 7- Re-Run gdalinfo: gdalinfo --formats | grep -i mrsid  (now, you
> >>>>> should
> >>>>> see the MrSID plugin entry)
> >>>>>
> >>>>>
> >>>>> Let me know if all is ok.
> >>>>>
> >>>>> Regards,
> >>>>> Alan
> >>>>>
> >>>>> On June 3, 2009 03:40:55 pm Bill Kristan wrote:
> >>>>>> Hello UbuntuGIS!
> >>>>>>
> >>>>>> I'm pleased to see you're working on packages for open source GIS on
> >>>>>> Ubuntu. I'm a GIS user on Kubuntu Jaunty, and it's great to have a
> >>>>>> source of up to date debs.
> >>>>>>
> >>>>>> I've been trying various ways to import mrsid images into GRASS, and
> >>>>>> have yet to find a linux-only solution (I've successfully exported
> >>>>>> sids
> >>>>>> to img files on ArcInfo in Windows, then imported them into GRASS,
> >>>>>> but
> >>>>>> that's less than ideal - Lizard Tech's mrsidgeodecode has small
> >>>>>> maximum
> >>>>>> file sizes on all its output formats, which has been a problem,
> >>>>>> and so
> >>>>>> on). It looks like the gdal-mrsid plugin on the ubuntugis ppa
> >>>>>> archive is just what I need, but... I'm not getting it to compile
> >>>>>> right. I downloaded Lizard Tech's SDK (Geo_DSDK-7.0.0.2167), and
> >>>>>> extracted it into /usr/local, then renamed it GeExpress-7.0 (because
> >>>>>> that's what it
> >>>>>> was called in the gdal-mrsid-build.in script...hoped that would
> >>>>>> work, since I wasn't sure how to point to it with apt-get -b). I
> >>>>>> compiled the
> >>>>>> examples in the sdk, which worked. I then tried to build the package
> >>>>>> with apt-get -b source gdal-mrsid, which gave me a package called
> >>>>>> gdal-mrsid-src_1.6.1-1_all.deb. Installing that with dpkg -i
> >>>>>> seemed to
> >>>>>> work, but then r.in.gdal didn't recognize my test sid file, and
> >>>>>> doesn't
> >>>>>> list mrsid as a supported format. Does anybody know where I might be
> >>>>>> going wrong?
> >>>>>>
> >>>>>> Thanks,
> >>>>>>  Bill Kristan
> >>>>
> >>>> _______________________________________________
> >>>> Ubuntu mailing list
> >>>> Ubuntu at lists.osgeo.org
> >>>> http://lists.osgeo.org/mailman/listinfo/ubuntu



More information about the Ubuntu mailing list