[Ubuntu] ubuntu configure options for gdal

Jason Paul Joines jason at joines.org
Wed Apr 17 13:01:13 PDT 2013


-------- Original Message --------
Subject: Re: [Ubuntu] ubuntu configure options for gdal
From: Alex Mandel <tech_dev at wildintellect.com>
To: Jason Paul Joines <jason at joines.org>
CC: UbuntuGIS Users <ubuntu at lists.osgeo.org>
Date: 2013.04.17.Wed.14:56:05
> On 04/17/2013 11:39 AM, Jason Paul Joines wrote:
>> -------- Original Message --------
>> Subject: Re: ubuntu configure options for gdal
>> From: Alex Mandel
>> <tech_dev-V1ui0Jp4Xm2ZwHVy+eqOOgC/G2K4zDHf at public.gmane.org>
>> To: Jason Paul Joines <jason-PTE4jOe1oXodnm+yROfE0A at public.gmane.org>
>> CC: UbuntuGIS Users <ubuntu-qjLDD68F18NyQMAyxoHuMA at public.gmane.org>
>> Date: 2013.04.17.Wed.14:24:49
>>> On 04/17/2013 11:07 AM, Jason Paul Joines wrote:
>>>> -------- Original Message --------
>>>> Subject: Re: [Ubuntu] ubuntu configure options for gdal
>>>> From: Hamish <hamish_b-/E1597aS9LQAvxtiuMwx3w at public.gmane.org>
>>>> To: Jason Paul Joines
>>>> <jason-PTE4jOe1oXodnm+yROfE0A at public.gmane.org>, Katie Urey
>>>> <ksurey-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>
>>>> CC: UbuntuGIS Users <ubuntu-qjLDD68F18NyQMAyxoHuMA at public.gmane.org>
>>>> 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
>>>> ===========
>>>>
>>>
>>> So this method no longer works for Mrsid (I haven't tried since I
>>> upgraded but it was working prior to 12.04)?
>>> http://trac.osgeo.org/ubuntugis/wiki/TutorialMrSid
>>> If I recall correctly gdal-build-mrsid is actually just a helper
>>> script. So even if there isn't a package for the new ubuntu versions
>>> you can grab the files from an older one and poke at it.
>>>
>>>
>>> I'll contact Ragi and Frank about the Filegdb driver since one of them
>>> is likely to have gotten it working.
>>>
>>> Thanks,
>>> Alex
>>>
>>
>>
>>      Nope, those directions no longer work.  The package
>> libgdal-mrsid-src is not available for 12.04.  Also, the available
>> lizardtech SDK is now MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44 which
>> seems to be a lot newer than the SDK referenced in that tutorial.
>>
>>
>> Jason
>> ===========
>>
>
> Yes, I know the package isn't available, but what I'm saying is that
> package is just a bash script, nothing else. If you look at the source
> from a previous version you can do the same steps by hand.
>
> Also here is Ragi's Fabric script for filegdb, no idea if it works on
> 12.04 (Ragi said it worked last year), but it can be deciphered into
> how to do it by hand.
> https://gist.github.com/RBURHUM/2955440
>
> Thanks,
> Alex
>


    I eventually found and installed the 1.9.0-2~oneiric1 package
(whichever version of Ubuntu oneiric is) and installed that.  I've tried
to configure it several times.  First it couldn't find lt_base.h:

jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$ ./configure
--with-gdal=/usr/bin/gdal-config
--with-mrsid=../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44 --with-jp2mrsid=yes
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
user supplied gdal-config (/usr/bin/gdal-config)
using /usr/lib/gdalplugins as GDAL shared library autoload directory
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/include/support... not found.
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/include... not found.
configure: error:   MrSID requested, but components not found.
jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$


    I'm not sure whether I need to point it at the Lidar_DSDK or
Raster_DSDK subdirectories of the MrSID DSDK but I went with Raster
which may have been the correct choice but then it hung up on jpeg 2000:

jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$ ./configure
--with-gdal=/usr/bin/gdal-config
--with-mrsid=../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK
--with-jp2mrsid=yes
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
user supplied gdal-config (/usr/bin/gdal-config)
using /usr/lib/gdalplugins as GDAL shared library autoload directory
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include/support...
not found.
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include... found
MrSID DSDK version 7.x or newer.
checking for MG3ImageWriter.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include/mrsid_writers...
no encoding support.
checking for MrSID JPEG2000 support... configure: error: MrSID JPEG2000
support requested, but libltikdu.a not found.
jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$


    So I tried it without jp2mrsid as I read on the post of someone else
failing at this that JPEG 2000 support is built-in to gdal, but it hung
up on libgeotiff:

jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$ ./configure
--with-gdal=/usr/bin/gdal-config
--with-mrsid=../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK
--with-jp2mrsid=no
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
user supplied gdal-config (/usr/bin/gdal-config)
using /usr/lib/gdalplugins as GDAL shared library autoload directory
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include/support...
not found.
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include... found
MrSID DSDK version 7.x or newer.
checking for MG3ImageWriter.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include/mrsid_writers...
no encoding support.
checking for MrSID JPEG2000 support... disabled
checking for XTIFFClientOpen in -lgeotiff... no
configure: error: libgeotiff is required to build GDAL MrSID driver
jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$


    I tried pointing libgeotiff at the version I had from
libgeotiff-dev, /usr/lib/libgeotiff.so, and the version I had from
libgeotiff2, /usr/lib/libgeotiff.so.2, but both resulted in the same
failure:

jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$ ./configure
--with-gdal=/usr/bin/gdal-config
--with-mrsid=../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK
--with-jp2mrsid=no --with-geotiff=/usr/lib/libgeotiff.so
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
user supplied gdal-config (/usr/bin/gdal-config)
using /usr/lib/gdalplugins as GDAL shared library autoload directory
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include/support...
not found.
checking for lt_base.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include... found
MrSID DSDK version 7.x or newer.
checking for MG3ImageWriter.h in
../MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/include/mrsid_writers...
no encoding support.
checking for MrSID JPEG2000 support... disabled
checking for XTIFFClientOpen in -lgeotiff... no
checking for XTIFFClientOpen in -lgeotiff... (cached) no
configure: error: libgeotiff is required to build GDAL MrSID driver
jason at rooibos:~/tmp/mrsid/libgdal-mrsid-1.9.0$


    Then I searched for any other packages with libgeotiff in the name
and installed libgeotiff-epsg which doesn't seem to be a library at all
but a bunch of csv files instead.

    Any ideas?


Jason
===========


More information about the Ubuntu mailing list