[Gdal-dev] Error compiling gdal with MrSid support in ubuntu linux

Frank Warmerdam warmerdam at pobox.com
Wed Mar 29 09:37:56 EST 2006


Mikael Schröder wrote:
> Hello
> I have been trying to add support for MrSid (but also ecw) to the 
> libgdal1c2(a) package in ubuntu breezy (I have also tried to compile 
> directly from source).
> But I get the following error message:
> 
> In file included from 
> /usr/local/MrSid_GeoExpressSDK/include/support/lt_types.h:28,
>                  from mrsiddataset.cpp:117:
> /usr/local/MrSid_GeoExpressSDK/include/support/lt_platform.h:61:8: 
> error: #error PLATFORM ERROR: Unsupported version of GCC
> make[3]: *** [../o/mrsiddataset.o] Error 1
> make[3]: Leaving directory 
> `/home/micke/source/gdal_dpkg_t4/gdal-1.2.6/frmts/mrsid'
> make[2]: *** [mrsid-install-obj] Error 2
> make[2]: Leaving directory 
> `/home/micke/source/gdal_dpkg_t4/gdal-1.2.6/frmts'
> make[1]: *** [frmts-target] Error 2
> make[1]: Leaving directory `/home/micke/source/gdal_dpkg_t4/gdal-1.2.6'
> make: *** [build-stamp] Error 2
> 
> I have installed gcc 3.2.3 from Warty and downloaded the corresponding 
> dsdk from Lizardtech's developer-site.
> Before i run dpkg I execute (as root):
> $ export PATH=/usr/bin/gcc-3.2:$PATH CC=/usr/bin/gcc-3.2          
> $ PATH=/usr/bin/gcc-3.2:$PATH CC=/usr/bin/gcc-3.2 dpkg-buildpackage -us 
> -uc -rfakeroot
> 
> I have also linked gcc to gcc-3.2 in /usr/bin
> What am i doing wrong?

Mikael,

I don't know what dpkg does, but I would guess it is somehow not honouring
your environment.  lt_platforms.h checks for gcc 2 and 3, so I would assume
things are still picking up gcc 4 for some reason.

You might trying setting CXX instead of (or in addition to) CC since this
is a c++ project.

I trust any package you build would only be for internal use, right?  There
are non-trivial requirements to redistribute Lizardtech libraries (even if
you are putting it in non-free).

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list