Jason, I understand that the script gdal-mrsid-build no longer works for modern ubuntu versions and that gdal must be compiled with Mrsid/ecw support. Could you post directions for this? Thanks Agus
On Thu, Apr 18, 2013 at 4:19 AM, Jason Paul Joines <[email protected]> wrote: > -------- Original Message -------- > Subject: Re: ubuntu configure options for gdal > From: Jason Paul Joines <[email protected]> > To: UbuntuGIS Users <[email protected]> > Date: 2013.04.17.Wed.21:00:36 >> -------- Original Message -------- >> Subject: Re: ubuntu configure options for gdal >> From: Jason Paul Joines <[email protected]> >> To: UbuntuGIS Users <[email protected]> >> Date: 2013.04.17.Wed.14:07:53 >>> -------- Original Message -------- >>> Subject: Re: [Ubuntu] ubuntu configure options for gdal >>> From: Hamish <[email protected]> >>> To: Jason Paul Joines <[email protected]>, Katie Urey <[email protected]> >>> CC: UbuntuGIS Users <[email protected]> >>> Date: 2013.04.17.Wed.1:31:28 >>>> Hi, >>>> >>>> >>>> Jason wrote: >>>>> I'm trying to rebuild gdal to get mrsid and filegdb support >>>>> in GRASS and QGIS on Kubuntu 12.04.2. >>>> note you don't actually have to rebuild gdal for that, at >>>> least mrsid can be installed as a plugin. >>>> (same with many license-problematic format filters which can't >>>> be built in by default) >>>> >>>> perhaps you just need the libgdal1-dev package installed to >>>> build plugins? (idealy) >>>> >>>> >>>> I notice that libgdal-mrsid isn't prebuilt for Precise/12.04: >>>> https://launchpad.net/~ubuntugis/+archive/ppa/ >>>> https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable >>>> >>>> you can get the build rules and re-run "debuild" to make your >>>> own package though. Once you get it set up and figured out it's >>>> a very simple one liner to build your own packages. >>>> >>>> https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+sourcepub/2354547/+listing-archive-extra >>>> >>>> >>>>> I'm using the ubuntugis-unstable and ubuntugis-testing >>>>> repositories. I'd like to build the gdal packages the >>>>> same way as the build in the repositories was built but >>>>> with mrsid and filegdb support as well. How can I tell >>>>> what options were passed to configure to build the gdal >>>>> packages hosted there? >>>> for rebuilding all of the gdal packages with some slight >>>> modifications, what I'd do is get the DebianGIS packaging >>>> rules and rebuild from there (perhaps with slight mod- >>>> ifications as needed). >>>> >>>> go to http://wiki.debian.org/DebianGis and scroll down to >>>> the git repo. >>>> >>>> you can use the instructions here, they'll work just as well >>>> for GDAL as they do for rebuilding the GRASS packages: >>>> >>>> http://trac.osgeo.org/grass/browser/grass/trunk/debian/README.debian >>>> >>>> just swap the names around. >>>> >>>> >>>> there are many ways to do it... that's just one! >>>> >>>> >>>> good luck, >>>> Hamish >>>> >>> Thanks for the information. I'll read up on all of these options and >>> give them a try. >>> >>> However, from what I can tell, no one has every been able to get mrsid >>> and filegdb to work with Ubuntu 12.04. I've tried every guideline I >>> could find online without success. Mostly, the information is outdated. >>> There seem to be a lot of people in my situation who have tried >>> everything without success and can't find out if anyone has ever been >>> able to make it work. >>> >>> At this point I'm afraid GIS is going to be the end of my 13 years of >>> exclusive open source use on my desktop. >>> >>> >>> Jason >>> =========== >>> >>> >> I got the source package for the gdal version I'm currently using. >> Then I modified debian/rules to point to the appropriate locations for >> ECW, FileGDB, and MrSID. I ran debuild and twenty-something minutes >> later it spit out these errors and failed: >> >> ... >> +#MISSING: 1.9.2-2~precise4# (c++)"vtable for OGRXLSDataSource@GDAL_1.8" >> 1.9.0 >> +#MISSING: 1.9.2-2~precise4# (c++)"vtable for OGRXLSDriver@GDAL_1.8" 1.9.0 >> +#MISSING: 1.9.2-2~precise4# (c++)"vtable for OGRXLSLayer@GDAL_1.8" 1.9.0 >> (c++)"vtable for OGRXPlaneAPTBoundaryLayer@GDAL_1.8" 1.8.0 >> (c++)"vtable for OGRXPlaneAPTLayer@GDAL_1.8" 1.8.0 >> (c++)"vtable for OGRXPlaneAPTLightBeaconLayer@GDAL_1.8" 1.8.0 >> # Forces failure when symbols change >> #dh_makeshlibs >> dh_installdeb >> dh_shlibdeps -L libgdal1 -l debian/libgdal1/usr/lib >> dpkg-shlibdeps: warning: couldn't find library libltidsdk.so needed by >> debian/libgdal1/usr/lib/libgdal.so.1.16.2 (ELF format: 'elf64-x86-64'; >> RPATH: ''). >> dpkg-shlibdeps: warning: couldn't find library liblti_lidar_dsdk.so >> needed by debian/libgdal1/usr/lib/libgdal.so.1.16.2 (ELF format: >> 'elf64-x86-64'; RPATH: ''). >> dpkg-shlibdeps: error: no dependency information found for >> /usr/local/lib/libNCSEcwC.so.0 (used by >> debian/libgdal1/usr/lib/libgdal.so.1.16.2). >> dh_shlibdeps: dpkg-shlibdeps -Tdebian/libgdal1.substvars >> -Sdebian/libgdal1 debian/libgdal1/usr/lib/libgdal.so.1.16.2 returned >> exit code 2 >> make[1]: *** [binary-common] Error 2 >> make[1]: Leaving directory `/home/jason/tmp/mrsid/gdal/gdal-1.9.2' >> make: *** [binary-arch] Error 2 >> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit >> status 2 >> debuild: fatal error at line 1350: >> dpkg-buildpackage -rfakeroot -D -us -uc failed >> jason@rooibos:~/tmp/mrsid/gdal/gdal-1.9.2$ >> >> >> I don't know what caused the warnings because libltidsdk.so and >> liblti_lidar_dsdk.so both exist where I pointed debian/rules. I have no >> idea what the error about >> libNCSEcwC.so.0 even means. >> >> >> Jason >> =========== >> >> > > > The warnings went away when I added > /usr/local/lib/FileGDB_API/lib > > /usr/local/lib/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Lidar_DSDK/lib > > /usr/local/lib/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/lib > to /etc/ld.so.conf.d/zz_qgis.conf/etc/ld.so.conf.d/zz_gis.conf and ran > ldconfig. > > The error went away when I changed > dh_shlibdeps -L libgdal1 -l debian/libgdal1/usr/lib > to > dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info -L libgdal1 > -l debian/libgdal1/usr/lib > > and was replaced with these warnings: > dpkg-shlibdeps: warning: dependency on libNCSCnet.so.0 could be avoided > if "debian/libgdal1/usr/lib/libgdal.so.1.16.2" were not uselessly linked > against it (they use none of its symbols). > dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be avoided > if > "debian/python-gdal/usr/lib/python2.7/dist-packages/osgeo/_gdalconst.so" > were not uselessly linked against it (they use none of its symbols). > dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be avoided > if > "debian/python3-gdal/usr/lib/python3/dist-packages/osgeo/_gdalconst.cpython-32mu.so" > were not uselessly linked against it (they use none of its symbols). > > At any rate, the packages built. I force purged gdal-bin, libgdal1, > and python-gdal then installed the newly built copies. QGIS was then > able to open a sid file. Progress! Now for testing the other formats > as well as sid more thoroughly. > > > Jason > =========== > > _______________________________________________ > UbuntuGIS mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/ubuntu > http://trac.osgeo.org/ubuntugis/wiki _______________________________________________ UbuntuGIS mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
