mrSid gdal problem

joerg p superbla3000 at GMX.NET
Fri May 6 05:31:30 EDT 2005


Frank Warmerdam wrote:
> On 5/5/05, joerg p <superbla3000 at gmx.net> wrote:
>
>>hello,
>>
>>I compiled gdal with mrSid support. But now I got the following error:
>>MrSIDRasterBand::IRasterIO(): Failed to load image. scene magni: Unable
>>to access file. GDALRasterIO() failed: drawGDAL()
>>
>>Where should I start to debug?
>
>
> Joerg,
>
> This problem was recently identified by Steve Lime and I have fixed
> it in the GDAL code base.  You could grab a recent nightly CVS
> snapshot of GDAL and rebuild from that.
>
> Sorry for the bug ... I wrote the code in one place such that it assumed
> there was no limit to the number of overviews available.
>
> I would add there is another bug also recently fixed in the MrSID code.
> This bug cause the image to be read at full resolution if the requested
> window size was larger than 2000000000 (2 gigapixels) due to an
> unfortunate choice on my part to mulitple xsize * ysize as 32bit integers.
>
> So those wanting to do heavy duty work with GDAL on MrSIDs are
> encouraged to work with the latest code.
>
> Best regards,

hello Frank,

i took the nightly CVS, but now I got the following error when I run make:


fitsdataset.o fitsdataset.cpp
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr
-I../../ogr/ogrsf_frmts -D_REENTRANT -I../../port -c fitsdataset.cpp
-fPIC -DPIC -o ../o/.libs/fitsdataset.o
fitsdataset.cpp:113: error: syntax error before `{' token
fitsdataset.cpp:125: error: syntax error before `)' token
fitsdataset.cpp:129: error: syntax error before `public'
fitsdataset.cpp:138: error: syntax error before `}' token
fitsdataset.cpp:146: error: syntax error before `{' token
fitsdataset.cpp:153: error: destructors must be member functions
fitsdataset.cpp:155: error: virtual outside class declaration
fitsdataset.cpp:156: error: virtual outside class declaration
fitsdataset.cpp:157: error: syntax error before `}' token
fitsdataset.cpp:164: error: invalid use of undefined type `class
FITSRasterBand
    '
fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand'
fitsdataset.cpp: In constructor
`FITSRasterBand::FITSRasterBand(FITSDataset*,
    int)':
fitsdataset.cpp:166: error: invalid use of undefined type `class
FITSRasterBand
    '
fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand'
fitsdataset.cpp:167: error: invalid use of undefined type `class
FITSRasterBand
    '
fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand'
fitsdataset.cpp:168: error: `eDataType' undeclared (first use this function)
fitsdataset.cpp:168: error: (Each undeclared identifier is reported only
once
    for each function it appears in.)
fitsdataset.cpp:168: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:169: error: `nBlockXSize' undeclared (first use this
function)
fitsdataset.cpp:169: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:170: error: `nBlockYSize' undeclared (first use this
function)
fitsdataset.cpp: At global scope:
fitsdataset.cpp:177: error: invalid use of undefined type `class
FITSRasterBand
    '
fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand'
fitsdataset.cpp: In destructor `FITSRasterBand::~FITSRasterBand()':
fitsdataset.cpp:178: error: `FlushCache' undeclared (first use this
function)
fitsdataset.cpp: At global scope:
fitsdataset.cpp:186: error: invalid use of undefined type `class
FITSRasterBand
    '
fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand'
fitsdataset.cpp: In member function `CPLErr FITSRasterBand::IReadBlock(int,
    int, void*)':
fitsdataset.cpp:189: error: `poDS' undeclared (first use this function)
fitsdataset.cpp:190: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:201: error: `nBand' undeclared (first use this function)
fitsdataset.cpp:201: error: `nRasterXSize' undeclared (first use this
function)
fitsdataset.cpp:201: error: `nRasterYSize' undeclared (first use this
function)
fitsdataset.cpp:207: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:207: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:214: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp: At global scope:
fitsdataset.cpp:231: error: invalid use of undefined type `class
FITSRasterBand
    '
fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand'
fitsdataset.cpp: In member function `CPLErr FITSRasterBand::IWriteBlock(int,
    int, void*)':
fitsdataset.cpp:234: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:246: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:264: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:265: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp: At global scope:
fitsdataset.cpp:299: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:307: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp: In destructor `FITSDataset::~FITSDataset()':
fitsdataset.cpp:311: error: `eAccess' undeclared (first use this function)
fitsdataset.cpp:319: error: `GetDescription' undeclared (first use this
    function)
fitsdataset.cpp:321: error: `GetMetadata' undeclared (first use this
function)
fitsdataset.cpp: At global scope:
fitsdataset.cpp:379: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp: In member function `CPLErr FITSDataset::Init(fitsfile*,
bool)
    ':
fitsdataset.cpp:447: error: `nBands' undeclared (first use this function)
fitsdataset.cpp:503: error: `SetMetadataItem' undeclared (first use this
    function)
fitsdataset.cpp:515: error: syntax error before `(' token
fitsdataset.cpp: At global scope:
fitsdataset.cpp:526: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp: In member function `GDALDataset*
    FITSDataset::Open(GDALOpenInfo*)':
fitsdataset.cpp:552: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:553: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:556: error: `SetDescription' undeclared (first use this
    function)
fitsdataset.cpp:557: error: `Init' undeclared (first use this function)
fitsdataset.cpp:558: warning: possible problem detected in invocation of
delete
    operator:
fitsdataset.cpp:552: warning: `dataset' has incomplete type
fitsdataset.cpp:113: warning: forward declaration of `class FITSDataset'
fitsdataset.cpp:558: note: neither the destructor nor the class-specific
    operator delete will be called, even if they are declared when the
class is
    defined.
fitsdataset.cpp:567: error: `TryLoadXML' undeclared (first use this
function)
fitsdataset.cpp:569: error: cannot convert `FITSDataset*' to
`GDALDataset*' in
    return
fitsdataset.cpp: At global scope:
fitsdataset.cpp:583: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp: In member function `GDALDataset* FITSDataset::Create(const
    char*, int, int, int, GDALDataType, char**)':
fitsdataset.cpp:639: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:640: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:641: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:642: error: invalid use of undefined type `class
FITSDataset'
fitsdataset.cpp:113: error: forward declaration of `class FITSDataset'
fitsdataset.cpp:643: error: `SetDescription' undeclared (first use this
    function)
fitsdataset.cpp:646: error: `Init' undeclared (first use this function)
fitsdataset.cpp:647: warning: possible problem detected in invocation of
delete
    operator:
fitsdataset.cpp:586: warning: `dataset' has incomplete type
fitsdataset.cpp:113: warning: forward declaration of `class FITSDataset'
fitsdataset.cpp:647: note: neither the destructor nor the class-specific
    operator delete will be called, even if they are declared when the
class is
    defined.
fitsdataset.cpp:651: error: cannot convert `FITSDataset*' to
`GDALDataset*' in
    return
fitsdataset.cpp: In function `void GDALRegister_FITS()':
fitsdataset.cpp:675: error: incomplete type `FITSDataset' does not have
member
    `Open'
fitsdataset.cpp:676: error: incomplete type `FITSDataset' does not have
member
    `Create'
fitsdataset.cpp: At top level:
fitsdataset.cpp:132: warning: `GDALDataset* Open(GDALOpenInfo*)' declared
    `static' but never defined
fitsdataset.cpp:136: warning: `GDALDataset* Create(const char*, int,
int, int,
    GDALDataType, char**)' declared `static' but never defined
make[2]: *** [../o/fitsdataset.o] Fehler 1
make[2]: Leaving directory `/home/JP/pakete/gdal/frmts/fits'
make[1]: *** [fits-install-obj] Fehler 2
make[1]: Leaving directory `/home/JP/pakete/gdal/frmts'
make: *** [frmts-target] Fehler 2


best regards
Joerg



More information about the mapserver-users mailing list