[gdal-dev] Having trouble compiling MrSid in GDALv1.8

Chaitanya kumar CH chaitanya.ch at gmail.com
Tue May 17 18:51:07 EDT 2011


Paul,

Perhaps the variable $(GDAL_HOME) is not being substituted correctly. Try
the absolute path for MRSID_DIR.

On Wed, May 18, 2011 at 3:48 AM, Paul Meems <bontepaarden at gmail.com> wrote:

> Hi all,
>
> I'm trying to compile GDALv1.8 on Win7 using VS2008Pro.
> So far I've added successfully GEOS, cUrl, ECW, Proj.4 and Xerces.
>
> I'm now trying to add MrSid support.
> I've downloaded the Unified Decode SDK v8 from LizardTech and changed this
> in my nmake.opt:
> MRSID_DIR =    $(GDAL_HOME)\..\LizardTech-SDK\Win32
>
> When I compile I get an error in line 72:
> fatal error U1023: syntax error in expression
> \GDAL\gdal18\frmts\mrsid\nmake.opt
> I didn't changed this file.
> Lines 64 - 80 are:
> !IF DEFINED(MRSID_DIR)
>
> # Guard against conflicting configuration.
> !IF DEFINED(MRSID_RASTER_DIR) && DEFINED(MRSID_LIDAR_DIR)
> !ERROR The MRSID_DIR value is redundant or conflicts with the values of
> MRSID_RASTER_DIR and MRSID_LIDAR_DIR.  Please remove one of these values
> from the build configuration.
> !ENDIF
>
> # If a raster path was not explicitly set, see if MRSID_DIR is one.
> !IF !DEFINED(MRSID_RASTER_DIR)
> !IF EXIST("$(MRSID_DIR)\Raster_ESDK\include\lt_base.h")
> MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_ESDK
> !ELSE IF EXIST("$(MRSID_DIR)\Raster_DSDK\include\lt_base.h")
> MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_DSDK
> !ELSE IF EXIST("$(MRSID_DIR)\include\lt_base.h") ||
> EXIST("$(MRSID_DIR)\include\support\lt_base.h")
> MRSID_RASTER_DIR = $(MRSID_DIR)
> !ENDIF
> !ENDIF
>
> Line 72 is !IF !DEFINED(MRSID_RASTER_DIR)
>
> What do I need to do to enable MrSid?
>
> Thanks,
>
> Paul
>
>
>  *Paul Meems *
> Release manager, configuration manager
> and forum moderator of MapWindow GIS.
> www.mapwindow.org
>
> Owner of MapWindow.nl - Support for
> Dutch speaking users.
> www.mapwindow.nl
>
> *
> *
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110518/cc483111/attachment.html


More information about the gdal-dev mailing list