Hi Garey, using GDAL 1.7.3, I would recommend using with the ImageI/O Setup guide 1.1.1 (Not sure whether the paragraph number is the same). http://java.net/downloads/imageio-ext/Documentation/ImageioExt-SetupGuide-1.1.pdf
Anyway, if my memory serves me right, these gdal versions also require you specify "--with-threads" in the configure. I remember I saw a warning message on the JNI methods call when loading them without this flag being set. Hope this helps. Regards, Daniele On Mon, Oct 31, 2011 at 7:22 PM, Garey Mills <gmi...@library.berkeley.edu>wrote: > Daniele - > > I found the Image I/O Setup Guide 1.0.8 again and followed the > instructions for Linux. I found the version 7 MrSid DSDK and installed JAI > and the JAI-ImageIO Toolkit. I used gdal-1.7.3 and did not apply the > patches for gdal1.4.5. This is how I configured GDAL: > > ./configure --with-mrsid=/opt/Geo_DSDK --with-jp2mrsid=yes > --with-png=internal --with-libtiff=internal --with-geotiff=internal > --with-jpeg=internal --with-gif=internal --with-hide-internal-symbols > > once I had compiled and installed GDAL, I ran SWIG, though, I left the > lines in GDALmake.opt like this > > CFLAGS = -g -O1 -fvisibility=hidden -Wall > -Wdeclaration-after-statement $(USER_DEFS) > CXXFLAGS = -g -O1 -fvisibility=hidden -Wall $(USER_DEFS) > > assuming the optimization change to be what was required. I then copied > the libraries SWIG generated to $JAVA_HOME/jre/lib/i386 > > > > In any case, when I try to run GeoServer, I get this at startup > > > WARNING: Failed to load the GDAL native libs. This is not a problem unless > you need to use the GDAL plugins: they won't be > enabled.java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.AllRegister()V > > Garey > > On 10/31/2011 1:32 AM, Daniele Romagnoli wrote: > > Hi Garey, > > On Fri, Oct 28, 2011 at 7:14 PM, Garey Mills > <gmi...@library.berkeley.edu>wrote: > >> Daniele - >> >> First let me apologize for having asked this question twice. I just >> plain forgot that I had encountered this problem before. >> > Don't worry, it's not a problem. I was just saying that in case you have > already solved it in the past somehow (and documented how to do it) and you > have forgot it :) > > >> Is the version of GDAL 1.7.3 essential? I could download GDAL >> 1.8.0-4? >> > We didn't tried GDAL 1.8 yet with imageio-ext, just tested with 1.7.3, > therefore I have no idea. > The only thing which could do the difference is related to the JNI > bindings which are invoked by ImageIO-ext. I don't know if something has > been changed on that side (We didn't looked at the swig interface of 1.8 > yet). > You could do a try and see how it works. In case it works, please, let us > know so we can report that. > > Hope this helps. > Regards, > Daniele > >> >> Garey >> >> >> On 10/28/2011 1:52 AM, Daniele Romagnoli wrote: >> >> Hi Garey, >> if my memory serves me right, you have already encountered this error a >> few months ago which is mainly related to the underlying set of libraries >> available on your machine. >> I did a quick search on the web and I found several forum/discussions >> talking about this issue, as well as several solutions/ways/attempts to fix >> it. Some of them worked for some users while some others ways worked for >> other ones. Look for "/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not >> found" on the web. I'll suggest to read some of these threads to better >> investigate on which dependencies you have on your machine and how to >> add/depends on the required ones. (Sometime it's seems only matter of >> updating a few symbolic links). >> >> I'm sorry about not being able to provide you more helps on that topic >> but I guess it's a typical dependencies problem which should be analyzed >> case by case. >> >> Alternatively, you can build GDAL 1.7.3 by yourself on your system >> (therefore using the set of libraries you have on your own machine). >> I can forward you an email I sent to you a few months ago, with pointers >> to the paragraphs of the ImageIO-Ext setup document referring to how to >> build the GDAL native part. Just let me know. >> >> Anyway, let us know if you have both more questions as well as reports on >> how you have fixed that problem too, so we can learn from your experience. >> >> Best Regards, >> Daniele >> >> >> On Thu, Oct 27, 2011 at 10:49 PM, Garey Mills < >> gmi...@library.berkeley.edu> wrote: >> >>> Andrea - >>> >>> Thanks for the info. I downloaded gdal-1.7.3 and installed it as >>> suggested. I am now getting this error: >>> >>> Oct 27, 2011 1:42:35 PM >>> it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL >>> WARNING: Failed to load the GDAL native libs. This is not a problem >>> unless you need to use the GDAL plugins: they won't be >>> enabled.java.lang.UnsatisfiedLinkError: >>> /usr/local/jdk1.6.0_23/jre/lib/i386/libgdaljni.so: /usr/lib/libstdc++.so.6: >>> version `GLIBCXX_3.4.9' not found (required by >>> /usr/local/jdk1.6.0_23/jre/lib/i386/libgdal.so.1) >>> >>> in /usr/lib I have >>> >>> libstdc++.so.6.0.8 >>> >>> What's the best way of getting gdal working from here? >>> >>> Garey >>> >>> >>> >>> >>> On 10/27/2011 11:16 AM, Andrea Aime wrote: >>> >>> On Thu, Oct 27, 2011 at 7:04 PM, Garey Mills < >>> gmi...@library.berkeley.edu> wrote: >>> >>>> Robert - >>>> >>>> >>>> Thank you. Commenting out >>>> >>>> >>>> >>>> <Listener >>>> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> >>>> >>>> >>>> in server.xml worked! >>>> >>>> Now the next thing I want to do is to make the Imagecollection >>>> plugin work with MrSid images. Does anyone have any idea what the steps >>>> would be to do that? In the imagecollection module, the only mention of >>>> formats seems to be in Utils.java where the code checks the file extension. >>>> However, though I add in '.sid', there, when I try to publish a MrSid >>>> image, MrSid is not one of the image formats that show up. >>>> >>> >>> Hmm... do you have the support to read MrSid files to start with? >>> It's part of the GDAL data sources, requires the right GDAL native libs >>> to be installed, distributed >>> along with imageio-ext itself. >>> >>> Anyways, don't know if having those is sufficient.. but for sure if >>> don't have a MrSid store showing >>> up in the store list when you try to create a new store you won't be >>> able to open a .sid file >>> >>> Cheers >>> Andrea >>> >>> >>> -- >>> ------------------------------------------------------- >>> Ing. Andrea Aime >>> GeoSolutions S.A.S. >>> Tech lead >>> >>> Via Poggio alle Viti 1187 >>> 55054 Massarosa (LU) >>> Italy >>> >>> phone: +39 0584 962313 <%2B39%200584%20962313> >>> fax: +39 0584 962313 <%2B39%200584%20962313> >>> >>> http://www.geo-solutions.it >>> http://geo-solutions.blogspot.com/ >>> http://www.youtube.com/user/GeoSolutionsIT >>> http://www.linkedin.com/in/andreaaime >>> http://twitter.com/geowolf >>> >>> ------------------------------------------------------- >>> >>> >> >> >> -- >> ------------------------------------------------------- >> Ing. Daniele Romagnoli >> GeoSolutions S.A.S. >> Software Engineer >> >> Via Poggio alle Viti 1187 >> 55054 Massarosa (LU) >> Italy >> >> phone: +39 0584 962313 <%2B39%200584%20962313> >> fax: +39 0584 962313 <%2B39%200584%20962313> >> >> http://www.geo-solutions.it >> http://geo-solutions.blogspot.com/ >> http://www.youtube.com/user/GeoSolutionsIT >> http://it.linkedin.com/in/danieleromagnoli >> >> >> ------------------------------------------------------- >> >> > > > -- > ------------------------------------------------------- > Ing. Daniele Romagnoli > GeoSolutions S.A.S. > Software Engineer > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://it.linkedin.com/in/danieleromagnoli > > > ------------------------------------------------------- > > -- ------------------------------------------------------- Ing. Daniele Romagnoli GeoSolutions S.A.S. Software Engineer Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://it.linkedin.com/in/danieleromagnoli -------------------------------------------------------
------------------------------------------------------------------------------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users