Changes between Version 1 and Version 2 of MrSID


Ignore:
Timestamp:
Mar 26, 2007, 1:06:06 PM (17 years ago)
Author:
warmerdam
Comment:

Added qualification error.

Legend:

Unmodified
Added
Removed
Modified
  • MrSID

    v1 v2  
    1010The DSDK is distributed in binary form and if you are using GCC, please, ensure that you have the same compiler as was used for DSDK compilation. It is C++ library, so you may get incompatibilities in C++ name mangling among different GCC versions (2.95.x and 3.x).
    1111
     12== qualification build error ==
     13
     14Some folks have reported the following building on unix:
     15
     16{{{
     17
     18Has anyone made notes recently on compiling gdal with mrsid support.
     19
     20Here is what I did so far, but it failed.
     211) download the DSDK from LizardTech
     222) ./configure --with-mrsid=pathToDSDK
     233)edited MRSID lines in nmake.opt to point to the DSDK directory 4)gmake
     24
     25I got this error:
     26/home/pvandeus/downloads/gdal/Geo_DSDK-6.0.7.1407/include/base
     27/lti_sceneBuffer.h:356:
     28error: extra qualification 'LizardTech::LTISceneBuffer::' on member 'inWindow'
     29gmake[2]: *** [../o/mrsiddataset.o] Error 1
     30gmake[2]: Leaving directory
     31`/home/pvandeus/downloads/gdal/gdal-1.4.0/frmts/mrsid'
     32gmake[1]: *** [mrsid-install-obj] Error 2
     33gmake[1]: Leaving directory `/home/pvandeus/downloads/gdal/gdal-1.4.0/frmts'
     34gmake: *** [frmts-target] Error 2
     35
     36This is on a system running Fedora Core 6.
     37}}}
     38
     39This is an incompatibility of the MrSID SDK header file with gcc 3.4+; it was not considered an error in previous versions of gcc. (Thanks to Mateusz
     40Loskot for pointing it out to us originally.)
     41
     42To fix the issue in the header (lti_sceneBuffer.h), simply remove the extra qualification from the inWindow declaration.  Line 356 should look like this:
     43
     44{{{
     45bool inWindow(lt_uint32 x, lt_uint32 y) const;
     46}}}
     47