[Gdal-dev] Problems compiling GDAL with MrSID 4.x DSDK
Brent Fraser
bfraser at geoanalytic.com
Mon Aug 9 10:18:35 EDT 2004
Andrey,
Sorry about not supplying more info; I thought it was a known problem.
I've got Windows 2000 Service Pack 4, GDAL 1.2.1, and LizardTech's
Geo_DSDK_4.0.9.713.
When I do a gdalinfo on a single band MrSID file, it works fine. However,
an RGB MrSID will cause gdalinfo (and the other GDAL utility programs) to
crash. The debugger indicates a memory access problem at line 1744 of
mrsiddataset.cpp:
for( iBand = 1; iBand <= poDS->nBands; iBand++ )
poDS->SetBand( iBand, new MrSIDRasterBand( poDS, iBand ) );
Here's portions of my nmake.opt file:
----------------------------------------------------------------------------
-------
# Uncomment the first for an optimized build or the second for a debug
build.
#OPTFLAGS= /nologo /Ox /MD /EHsc
OPTFLAGS= /nologo /Zi /Fd$(GDAL_ROOT)\gdal.pdb /MD /EHsc
:
# Uncomment the following for MrSID support.
# You will likely require /MD and /EHsc in OPTFLAGS.
MRSID_DIR = C:\platforms\MrSidDecodeSDK\VC6\Geo_DSDK_4.0.9.713
#MRSID_INCLUDE = -I$(MRSID_DIR)\include
#MRSID_LIB = /LIBPATH:$(MRSID_DIR)\lib \
# MrSIDDecode_md.lib lt_xTrans_md.lib advapi32.lib user32.lib
# Uncomment, if you have DSDK version 3.1.x
#MRSID_FLAGS = -DMRSID_DSDK_VERSION_31
# Uncomment, if you have DSDK version 3.2.x
#MRSID_FLAGS = -DMRSID_DSDK_VERSION_32
# Following suitable for the MrSID DSDK version 4.0.x.
MRSID_INCLUDE = -I$(MRSID_DIR)\include\base -I$(MRSID_DIR)\include\support \
-I$(MRSID_DIR)\include\metadata \
-I$(MRSID_DIR)\include\mrsid_readers \
-I$(MRSID_DIR)\include\j2k_readers
MRSID_LIB = $(MRSID_DIR)\lib\Release_md\lti_dsdk_dll.lib \
advapi32.lib user32.lib
MRSID_FLAGS = -DMRSID_DSDK_VERSION_40
:
----------------------------------------------------------------------------
-------
Here's the output from mrsidinfo (the LizardTech utility):
----------------------------------------------------------------------------
-------
mrsidinfo: (c) 2003 LizardTech, Inc. All rights reserved.
basic image info:
format: MRSID
width: 2356
height: 1666
nband: 3
color space: RGB
datatype: uint8
dyn range min: (natural)
dyn range max: (natural)
background color: (255, 53, 217)
nodata color: (0, 0, 0)
metadata records: 22
geo coordinate info:
X UL: 895118.376621
Y UL: 4162705.150232
X res: 17.225241
Y res: -17.219537
X rot: 0.000000
Y rot: 0.000000
geo points (pixel centers):
upper left: (895118.376621, 4162705.150232)
upper right: (935683.819647, 4162705.150232)
lower left: (895118.376621, 4134034.621460)
lower right: (935683.819647, 4134034.621460)
center: (915401.098134, 4148369.885846)
MrSID-specific image info:
number of levels: 6
is locked: false
file version: 1.0.1.
MrSID/MG2-specific image info:
is dithered: false
----------------------------------------------------------------------------
-------
Any help would be appreciated...
Thanks!
Brent Fraser
----- Original Message -----
From: "Andrey Kiselev" <dron at ak4719.spb.edu>
To: <gdal-dev at xserve.flids.com>
Sent: Saturday, August 07, 2004 4:34 AM
Subject: Re: [Gdal-dev] Problems compiling GDAL with MrSID 4.x DSDK
> On Thu, Aug 05, 2004 at 08:22:10AM -0600, Brent Fraser wrote:
> > I've successfully compiled GDAL 1.2.1 with MrSID 4.x DSDK (Win2k,
> > VC++6), but it will not work with RGB (i.e more than one band) MrSID
> > images. I think Andrey and others are fixing this.
>
> Brent,
>
> Why do you think it doesn't work for RGB? For me it works just fine.
> Could you be more detailed in this bug description?
>
> Andrey
>
> --
> Andrey V. Kiselev
> Home phone: +7 812 5274898 ICQ# 26871517
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at xserve.flids.com
> http://xserve.flids.com/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list