<div dir="ltr">Scott,<div><br></div><div>It worked fine for me with trunk. At that point I see:</div><div><br></div><div><div>if ECWSDK_VERSION<50</div><div> Error = CNCSJP2Box::UnParse(JP2File, Stream);</div><div>#else</div>
<div> Error = CNCSSDKBox::UnParse(JP2File, Stream);</div><div>#endif</div></div><div><br></div><div>In my nmake.local file I have:</div><div><br></div><div><div><br></div><div>ECWDIR = "c:/build/pkg/ERDAS ECW JPEG2000 Read 4.3 SDK"</div>
<div>ECWFLAGS = -DECWSDK_VERSION=43 \</div><div> -I$(ECWDIR)\include \</div><div> -I$(ECWDIR)\include/NCSECW/api -I$(ECWDIR)\include/NCSECW/jp2 \</div><div> -I$(ECWDIR)\include/NCSECW/ecw</div>
<div>ECWLIB = $(ECWDIR)\lib\vc90\win32\NCSEcw4_RO.lib \</div><div> $(ECWDIR)\lib\vc90\win32\NCSUtil4.lib \</div><div> $(ECWDIR)\lib\vc90\win32\NCScnet4.lib</div><div>ECW_PLUGIN = YES</div>
</div><div><br></div><div>I'd suggest confirming that you have ECWSDK_VERSION=43 set in the ECWFLAGS setting you are using. </div><div><br></div><div>I'll try and incorporate the warning fixes into trunk.</div><div>
<br></div><div>Best regards,</div><div>Frank</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 8:50 AM, Reynolds, Scott <span dir="ltr"><<a href="mailto:scott@agi.com" target="_blank">scott@agi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m having trouble compiling GDAL 1.10.0 on Windows with the ERDAS ECW/JP2 Read/Write SDK v4.3.6.25.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Scott<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">jp2userbox.cpp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">jp2userbox.cpp(133) : error C2664: 'NCS::JP2::CBox::UnParse' : cannot convert parameter 1 from 'NCS::SDK::CFileBase' to 'NCS::JP2::CFile &'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Stop.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">NMAKE : fatal error U1077: 'for' : return code '0x1'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Stop.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.EXE"' : return code '0x2'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Stop.<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve also made changes to a couple of files to eliminate warnings in VS2008:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">ecwcreatecopy.cpp<u></u><u></u></p>
<p class="MsoNormal">944c944<u></u><u></u></p>
<p class="MsoNormal">< m_OStream.Access( fpVSIL, TRUE, bSeekable, pszFilename, 0, -1 );<u></u><u></u></p>
<p class="MsoNormal">---<u></u><u></u></p>
<p class="MsoNormal">> m_OStream.Access( fpVSIL, TRUE, (BOOLEAN)bSeekable, pszFilename, 0, -1 );<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">gdal_ecw.h<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">370c370<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">< GByte prevBuffer[] = { nCOMLength >> 8, nCOMLength & 0xff };<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">---<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">> GByte prevBuffer[] = { (GByte)(nCOMLength >> 8), (GByte)(nCOMLength & 0xff) };<u></u><u></u></span></p>
</div>
</div>
<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"><div><br></div>-- <br>---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Software Developer<br>
</div>