Thanks Kirk and Chaitanya,<br><br>It was indeed GDAL_HOME. I used double quotes around it and after removing it it is working.<br><br>LizardTeck provided some sample data. And I'm using it to check if my version of GDAL is correct.<br>
I use gdalinfo to check the .sid file and it works. When I do a gdalinfo on the .las file it is not recognized.<br>When I do a gdalinfo --formats I see MG4Lidar, but the description states .sid<br><br>Does this mean I didn't configure it right after all?<br>
<br>Thanks,<br><br>Paul<br><br><div class="gmail_quote">2011/5/18 Kirk McKelvey <span dir="ltr"><<a href="mailto:kmckelvey@lizardtech.com">kmckelvey@lizardtech.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple" lang="FR"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D" lang="EN-US">The line it is complaining about is almost certainly the following line, where MRSID_DIR is used for the first time. Not sure how it gets 72.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D" lang="EN-US">What is your value for GDAL_HOME? There might be some kind of quoting issue going on. Also, I’m not sure I ever tested it with relative paths, so that could be it as well.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D" lang="EN-US"> </span></p><p class="MsoNormal"><b><span style="font-size:10.0pt" lang="EN-US">From:</span></b><span style="font-size:10.0pt" lang="EN-US"> <a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Paul Meems<br>
<b>Sent:</b> mardi 17 mai 2011 17:19<br><b>To:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><b>Subject:</b> [gdal-dev] Having trouble compiling MrSid in GDALv1.8</span></p>
<div><div></div><div class="h5"><p class="MsoNormal"> </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 = $(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 \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) && 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. 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("$(MRSID_DIR)\Raster_ESDK\include\lt_base.h")<br>MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_ESDK<br>
!ELSE IF EXIST("$(MRSID_DIR)\Raster_DSDK\include\lt_base.h")<br>MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_DSDK<br>!ELSE IF EXIST("$(MRSID_DIR)\include\lt_base.h") || EXIST("$(MRSID_DIR)\include\support\lt_base.h")<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></p><div><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"><img src="" height="120" width="160"><b><span>Paul Meems </span></b></span></b><span style="font-size:10.0pt"><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></span></p><p style="margin:0cm;margin-bottom:.0001pt;background:#F8F8F8"><span style="font-size:10.0pt"> </span></p></div></div><p class="MsoNormal">
<span style="font-size:10.0pt"><img src="" border="0" height="1" width="1"></span></p></div><p class="MsoNormal"> </p></div></div></div></div></blockquote></div><br>