Hi all,<br><br>I'm trying to compile GDALv1.8 on Win7 using VS2008Pro.<br>So far I've added successfully GEOS, cUrl, ECW, Proj.4 and Xerces.<br><br>I'm now trying to add MrSid support.<br>I've downloaded the Unified Decode SDK v8 from LizardTech and changed this in my nmake.opt:<br>
<span style="font-family: courier new,monospace;">MRSID_DIR = $(GDAL_HOME)\..\LizardTech-SDK\Win32</span><br><br>When I compile I get an error in line 72:<br><span style="font-family: courier new,monospace;">fatal error U1023: syntax error in expression \GDAL\gdal18\frmts\mrsid\nmake.opt</span><br>
I didn't changed this file.<br>Lines 64 - 80 are:<br><span style="font-family: courier new,monospace;">!IF DEFINED(MRSID_DIR)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"># Guard against conflicting configuration.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">!IF DEFINED(MRSID_RASTER_DIR) && DEFINED(MRSID_LIDAR_DIR)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">!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.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">!ENDIF</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># If a raster path was not explicitly set, see if MRSID_DIR is one.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">!IF !DEFINED(MRSID_RASTER_DIR)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">!IF EXIST("$(MRSID_DIR)\Raster_ESDK\include\lt_base.h")</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_ESDK</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">!ELSE IF EXIST("$(MRSID_DIR)\Raster_DSDK\include\lt_base.h")</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_DSDK</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">!ELSE IF EXIST("$(MRSID_DIR)\include\lt_base.h") || EXIST("$(MRSID_DIR)\include\support\lt_base.h")</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MRSID_RASTER_DIR = $(MRSID_DIR)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">!ENDIF</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">!ENDIF</span><br><br>Line 72 is !IF !DEFINED(MRSID_RASTER_DIR)<br><br>What do I need to do to enable MrSid?<br><br>Thanks,<br><br>Paul<br><br><br><div id="WISESTAMP_SIG_2734">
<span style="font-size: 13.3px; font-family: Verdana, Arial, Helvetica, sans-serif;"><div style="border: 1px solid #e5e5e5;background-color: #f8f8f8;padding: 0.8em 0.8em 0.3em 0.8em;"><div style="margin: 0 0 8px 0"><p style="margin:0; ">
<span><strong><img style="float: left; margin-left: 5px; margin-right: 5px;" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png" alt="" height="120" width="160">Paul Meems </strong><br><span>Release manager, configuration manager</span><br>
<span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br><span>Dutch speaking users.</span><br>
<a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0; "><strong><br></strong></p></div></div><img src="http://p1.wisestamp.com/pixel.png?p=mozilla&v=2.2.1&t=1305670661448&u=2263563&e=166" height="1" width="1"></span></div><br>