<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
<FONT COLOR="#000000">Hi Frank</FONT> (sorry for double posting, i missed the cc to the gdal-list)<BR>
<FONT COLOR="#000000">Thank you for your tip regarding CXX. After some googling I found the right packages to back it up. </FONT><BR>
<FONT COLOR="#000000">I installed the following packages (from warty):</FONT><BR>
<FONT COLOR="#000000">cpp-3.2_3.2.3-9_i386.deb</FONT><BR>
<FONT COLOR="#000000">g++-3.2_3.2.3-9_i386.deb</FONT><BR>
<FONT COLOR="#000000">gcc-3.2-base_3.2.3-9_i386.deb</FONT><BR>
<FONT COLOR="#000000">gcc-3.2_3.2.3-9_i386.deb</FONT><BR>
<FONT COLOR="#000000">libstdc++5-dev_3.2.3-9_i386.deb</FONT><BR>
<BR>
<FONT COLOR="#000000">And after that used the following two commands to execute the right version of the compiler:</FONT><BR>
<FONT COLOR="#000000">$ export CXX=/usr/bin/g++-3.2 PATH=/usr/bin/gcc-3.2:$PATH CC=/usr/bin/gcc-3.2 </FONT><BR>
<FONT COLOR="#000000">$ CXX=/usr/bin/g++-3.2 PATH=/usr/bin/gcc-3.2:$PATH CC=/usr/bin/gcc-3.2 dpkg-buildpackage -us -uc -rfakeroot</FONT><BR>
<BR>
<FONT COLOR="#000000">This worked out fine but I found that I also needed to compile "libgeos" withe the same compiler, to get "libgdal" with ogr working.</FONT><BR>
<FONT COLOR="#000000">Unfortunately I did not manage to compile gdal with both MrSid and ECW with gcc 3.2. So I disabled ECW for now... (any tips on this?)</FONT><BR>
<FONT COLOR="#000000">When everything was compiled and installed I run:</FONT><BR>
<FONT COLOR="#000000">$ gdalinfo --formats to se if my newly installed packages were functioning. Unfortunately I got the same error message as before the installation, as me and the wrong one as root (se below). So I suppose that my previous cvs-source-compiled "gdal" that I manage to install but never got functioning is now somehow disturbing my system.</FONT><BR>
<FONT COLOR="#000000">It seems my system is not responding on the gdal-package installation, so how do I disable / uninstall my previously cvs-source-compiled and installed "gdal" ?</FONT><BR>
<FONT COLOR="#000000">I found no: "make uninstall". Or how do I change the system settings so it will use my now correct libgdal-package instead of the source compiled one?</FONT><BR>
<FONT COLOR="#000000">Below you find my current system's response to "gdalinfo --formats" both as me and as root (with the new MrSid enabled libgdal-package installed and "active"). </FONT><BR>
<FONT COLOR="#000000">Lots of questions.... </FONT><BR>
<FONT COLOR="#000000">/Best Regards, Mikael</FONT><BR>
<BR>
<FONT COLOR="#000000">-----------------alt 1 --me------------------------------</FONT><BR>
<FONT COLOR="#000000">micke@ubuntu32:~$ gdalinfo --formats</FONT><BR>
<FONT COLOR="#000000">*** glibc detected *** malloc(): memory corruption: 0x080621e8 ***</FONT><BR>
<FONT COLOR="#000000">Interrupted (SIGABRT)</FONT><BR>
<BR>
-<FONT COLOR="#000000">------------------alt 2 --root --------------------------</FONT><BR>
<FONT COLOR="#000000">root@ubuntu32:~# gdalinfo --formats</FONT><BR>
<FONT COLOR="#000000">Supported Formats:</FONT><BR>
<FONT COLOR="#000000">VRT (rw+): Virtual Raster</FONT><BR>
<FONT COLOR="#000000"> GTiff (rw+): GeoTIFF</FONT><BR>
<FONT COLOR="#000000"> NITF (rw+): National Imagery Transmission Format</FONT><BR>
<FONT COLOR="#000000"> HFA (rw+): Erdas Imagine Images (.img)</FONT><BR>
<FONT COLOR="#000000"> SAR_CEOS (ro): CEOS SAR Image</FONT><BR>
<FONT COLOR="#000000"> CEOS (ro): CEOS Image</FONT><BR>
<FONT COLOR="#000000"> ELAS (rw+): ELAS</FONT><BR>
<FONT COLOR="#000000"> AIG (ro): Arc/Info Binary Grid</FONT><BR>
<FONT COLOR="#000000"> AAIGrid (rw): Arc/Info ASCII Grid</FONT><BR>
<FONT COLOR="#000000"> SDTS (ro): SDTS Raster</FONT><BR>
<FONT COLOR="#000000"> DTED (rw): DTED Elevation Raster</FONT><BR>
<FONT COLOR="#000000"> PNG (rw): Portable Network Graphics</FONT><BR>
<FONT COLOR="#000000"> JPEG (rw): JPEG JFIF</FONT><BR>
<FONT COLOR="#000000"> MEM (rw+): In Memory Raster</FONT><BR>
<FONT COLOR="#000000"> JDEM (ro): Japanese DEM (.mem)</FONT><BR>
<FONT COLOR="#000000"> GIF (rw): Graphics Interchange Format (.gif)</FONT><BR>
<FONT COLOR="#000000"> ESAT (ro): Envisat Image Format</FONT><BR>
<FONT COLOR="#000000"> FITS (rw+): Flexible Image Transport System</FONT><BR>
<FONT COLOR="#000000"> BSB (ro): Maptech BSB Nautical Charts</FONT><BR>
<FONT COLOR="#000000"> XPM (rw): X11 PixMap Format</FONT><BR>
<FONT COLOR="#000000"> BMP (rw+): MS Windows Device Independent Bitmap</FONT><BR>
<FONT COLOR="#000000"> AirSAR (ro): AirSAR Polarimetric Image</FONT><BR>
<FONT COLOR="#000000"> RS2 (ro): RadarSat 2 XML Product</FONT><BR>
<FONT COLOR="#000000"> PCIDSK (rw+): PCIDSK Database File</FONT><BR>
<FONT COLOR="#000000"> PCRaster (rw): PCRaster Raster File</FONT><BR>
<FONT COLOR="#000000"> ILWIS (rw+): ILWIS Raster Map</FONT><BR>
<FONT COLOR="#000000"> RIK (ro): Swedish Grid RIK (.rik)</FONT><BR>
<FONT COLOR="#000000"> SGI (ro): SGI Image File Format 1.0</FONT><BR>
<FONT COLOR="#000000"> Leveller (ro): Leveller heightfield</FONT><BR>
<FONT COLOR="#000000"> GMT (rw): GMT NetCDF Grid Format</FONT><BR>
<FONT COLOR="#000000"> netCDF (ro): network Common Data Format</FONT><BR>
<FONT COLOR="#000000"> HDF4 (ro): Hierarchical Data Format Release 4</FONT><BR>
<FONT COLOR="#000000"> HDF4Image (rw+): HDF4 Dataset</FONT><BR>
<FONT COLOR="#000000"> PNM (rw+): Portable Pixmap Format (netpbm)</FONT><BR>
<FONT COLOR="#000000"> DOQ1 (ro): USGS DOQ (Old Style)</FONT><BR>
<FONT COLOR="#000000"> DOQ2 (ro): USGS DOQ (New Style)</FONT><BR>
<FONT COLOR="#000000"> ENVI (rw+): ENVI .hdr Labelled</FONT><BR>
<FONT COLOR="#000000"> EHdr (rw+): ESRI .hdr Labelled</FONT><BR>
<FONT COLOR="#000000"> PAux (rw+): PCI .aux Labelled</FONT><BR>
<FONT COLOR="#000000"> MFF (rw+): Vexcel MFF Raster</FONT><BR>
<FONT COLOR="#000000"> MFF2 (rw+): Vexcel MFF2 (HKV) Raster</FONT><BR>
<FONT COLOR="#000000"> FujiBAS (ro): Fuji BAS Scanner Image</FONT><BR>
<FONT COLOR="#000000"> GSC (ro): GSC Geogrid</FONT><BR>
<FONT COLOR="#000000"> FAST (ro): EOSAT FAST Format</FONT><BR>
<FONT COLOR="#000000"> BT (rw+): VTP .bt (Binary Terrain) 1.3 Format</FONT><BR>
<FONT COLOR="#000000"> LAN (ro): Erdas .LAN/.GIS</FONT><BR>
<FONT COLOR="#000000"> CPG (ro): Convair PolGASP</FONT><BR>
<FONT COLOR="#000000"> IDA (rw+): Image Data and Analysis</FONT><BR>
<FONT COLOR="#000000"> NDF (ro): NLAPS Data Format</FONT><BR>
<FONT COLOR="#000000"> DIPEx (ro): DIPEx</FONT><BR>
<FONT COLOR="#000000"> JPEG2000 (rw): JPEG-2000 part 1 (ISO/IEC 15444-1)</FONT><BR>
<FONT COLOR="#000000"> L1B (ro): NOAA Polar Orbiter Level 1b Data Set</FONT><BR>
<FONT COLOR="#000000"> FIT (rw): FIT Image</FONT><BR>
<FONT COLOR="#000000"> RMF (rw+): Raster Matrix Format</FONT><BR>
<FONT COLOR="#000000"> USGSDEM (rw): USGS Optional ASCII DEM (and CDED)</FONT><BR>
<FONT COLOR="#000000"> GXF (ro): GeoSoft Grid Exchange Format</FONT><BR>
<FONT COLOR="#000000"> GRASS (ro): GRASS Database Rasters (5.7+)</FONT><BR>
<BR>
<BR>
<FONT COLOR="#000000">ons 2006-03-29 klockan 09:37 -0500 skrev Frank Warmerdam:</FONT><BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Mikael,</FONT>
<FONT COLOR="#000000">I don't know what dpkg does, but I would guess it is somehow not honouring</FONT>
<FONT COLOR="#000000">your environment. lt_platforms.h checks for gcc 2 and 3, so I would assume</FONT>
<FONT COLOR="#000000">things are still picking up gcc 4 for some reason.</FONT>
<FONT COLOR="#000000">You might trying setting CXX instead of (or in addition to) CC since this</FONT>
<FONT COLOR="#000000">is a c++ project.</FONT>
<FONT COLOR="#000000">I trust any package you build would only be for internal use, right? There</FONT>
<FONT COLOR="#000000">are non-trivial requirements to redistribute Lizardtech libraries (even if</FONT>
<FONT COLOR="#000000">you are putting it in non-free).</FONT>
<FONT COLOR="#000000">Best regards,</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
<BR>
ons 2006-03-29 klockan 09:37 -0500 skrev Frank Warmerdam:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Mikael Schröder wrote:</FONT>
<FONT COLOR="#000000">> Hello</FONT>
<FONT COLOR="#000000">> I have been trying to add support for MrSid (but also ecw) to the </FONT>
<FONT COLOR="#000000">> libgdal1c2(a) package in ubuntu breezy (I have also tried to compile </FONT>
<FONT COLOR="#000000">> directly from source).</FONT>
<FONT COLOR="#000000">> But I get the following error message:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> In file included from </FONT>
<FONT COLOR="#000000">> /usr/local/MrSid_GeoExpressSDK/include/support/lt_types.h:28,</FONT>
<FONT COLOR="#000000">> from mrsiddataset.cpp:117:</FONT>
<FONT COLOR="#000000">> /usr/local/MrSid_GeoExpressSDK/include/support/lt_platform.h:61:8: </FONT>
<FONT COLOR="#000000">> error: #error PLATFORM ERROR: Unsupported version of GCC</FONT>
<FONT COLOR="#000000">> make[3]: *** [../o/mrsiddataset.o] Error 1</FONT>
<FONT COLOR="#000000">> make[3]: Leaving directory </FONT>
<FONT COLOR="#000000">> `/home/micke/source/gdal_dpkg_t4/gdal-1.2.6/frmts/mrsid'</FONT>
<FONT COLOR="#000000">> make[2]: *** [mrsid-install-obj] Error 2</FONT>
<FONT COLOR="#000000">> make[2]: Leaving directory </FONT>
<FONT COLOR="#000000">> `/home/micke/source/gdal_dpkg_t4/gdal-1.2.6/frmts'</FONT>
<FONT COLOR="#000000">> make[1]: *** [frmts-target] Error 2</FONT>
<FONT COLOR="#000000">> make[1]: Leaving directory `/home/micke/source/gdal_dpkg_t4/gdal-1.2.6'</FONT>
<FONT COLOR="#000000">> make: *** [build-stamp] Error 2</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> I have installed gcc 3.2.3 from Warty and downloaded the corresponding </FONT>
<FONT COLOR="#000000">> dsdk from Lizardtech's developer-site.</FONT>
<FONT COLOR="#000000">> Before i run dpkg I execute (as root):</FONT>
<FONT COLOR="#000000">> $ export PATH=/usr/bin/gcc-3.2:$PATH CC=/usr/bin/gcc-3.2 </FONT>
<FONT COLOR="#000000">> $ PATH=/usr/bin/gcc-3.2:$PATH CC=/usr/bin/gcc-3.2 dpkg-buildpackage -us </FONT>
<FONT COLOR="#000000">> -uc -rfakeroot</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> I have also linked gcc to gcc-3.2 in /usr/bin</FONT>
<FONT COLOR="#000000">> What am i doing wrong?</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>