Paul,<br><br>Perhaps the variable $(GDAL_HOME) is not being substituted correctly. Try the absolute path for MRSID_DIR.<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 3:48 AM, Paul Meems <span dir="ltr">&lt;<a href="mailto:bontepaarden@gmail.com">bontepaarden@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all,<br><br>I&#39;m trying to compile GDALv1.8 on Win7 using VS2008Pro.<br>So far I&#39;ve added successfully GEOS, cUrl, ECW, Proj.4 and Xerces.<br>
<br>I&#39;m now trying to add MrSid support.<br>I&#39;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&#39;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) &amp;&amp; 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(&quot;$(MRSID_DIR)\Raster_ESDK\include\lt_base.h&quot;)</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(&quot;$(MRSID_DIR)\Raster_DSDK\include\lt_base.h&quot;)</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(&quot;$(MRSID_DIR)\include\lt_base.h&quot;) || EXIST(&quot;$(MRSID_DIR)\include\support\lt_base.h&quot;)</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>

<span style="font-size: 13.3px; font-family: Verdana,Arial,Helvetica,sans-serif;"><div style="border: 1px solid rgb(229, 229, 229); background-color: rgb(248, 248, 248); padding: 0.8em 0.8em 0.3em;"><div style="margin: 0pt 0pt 8px;">
<p style="margin: 0pt;">

<span><b><img src="" style="float: left; margin-left: 5px; margin-right: 5px;" alt="" height="120" width="160">Paul Meems </b><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: 0pt;"><b><br></b></p></div></div><img src="" height="1" width="1"></span></div><br>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>