<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The line it is complaining about is almost certainly the following line, where MRSID_DIR is used for the first time.&nbsp; Not sure how it gets 72.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What is your value for GDAL_HOME?&nbsp; There might be some kind of quoting issue going on.&nbsp; Also, I&#8217;m not sure I ever tested it with relative paths, so that could be it as well.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gdal-dev-bounces@lists.osgeo.org [mailto:gdal-dev-bounces@lists.osgeo.org] <b>On Behalf Of </b>Paul Meems<br><b>Sent:</b> mardi 17 mai 2011 17:19<br><b>To:</b> gdal-dev@lists.osgeo.org<br><b>Subject:</b> [gdal-dev] Having trouble compiling MrSid in GDALv1.8<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>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"'>MRSID_DIR =&nbsp;&nbsp;&nbsp; $(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"'>fatal error U1023: syntax error in expression&nbsp;&nbsp; \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"'>!IF DEFINED(MRSID_DIR)<br><br># Guard against conflicting configuration.<br>!IF DEFINED(MRSID_RASTER_DIR) &amp;&amp; DEFINED(MRSID_LIDAR_DIR)<br>!ERROR The MRSID_DIR value is redundant or conflicts with the values of MRSID_RASTER_DIR and MRSID_LIDAR_DIR.&nbsp; Please remove one of these values from the build configuration.<br>!ENDIF<br><br># If a raster path was not explicitly set, see if MRSID_DIR is one.<br>!IF !DEFINED(MRSID_RASTER_DIR)<br>!IF EXIST(&quot;$(MRSID_DIR)\Raster_ESDK\include\lt_base.h&quot;)<br>MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_ESDK<br>!ELSE IF EXIST(&quot;$(MRSID_DIR)\Raster_DSDK\include\lt_base.h&quot;)<br>MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_DSDK<br>!ELSE IF EXIST(&quot;$(MRSID_DIR)\include\lt_base.h&quot;) || EXIST(&quot;$(MRSID_DIR)\include\support\lt_base.h&quot;)<br>MRSID_RASTER_DIR = $(MRSID_DIR)<br>!ENDIF<br>!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><o:p></o:p></p><div id="WISESTAMP_SIG_2734"><div style='border:solid #E5E5E5 1.0pt;padding:10.0pt 10.0pt 4.0pt 10.0pt'><div style='margin-bottom:6.0pt'><p style='margin:0cm;margin-bottom:.0001pt;background:#F8F8F8'><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><img width=160 height=120 id="_x0000_i1025" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png"><strong><span style='font-family:"Verdana","sans-serif"'>Paul Meems&nbsp;</span></strong></span></b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>Release manager, configuration manager<br>and forum moderator of MapWindow GIS.<br><a href="http://www.mapwindow.org/" target="_blank">www.mapwindow.org</a><br><br>Owner of MapWindow.nl - Support for<br>Dutch speaking users.<br><a href="http://www.mapwindow.nl/" target="_blank">www.mapwindow.nl</a><o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;background:#F8F8F8'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></p></div></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><img border=0 width=1 height=1 id="_x0000_i1026" src="http://p1.wisestamp.com/pixel.png?p=mozilla&amp;v=2.2.1&amp;t=1305670661448&amp;u=2263563&amp;e=166"></span><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>