Thanks !<br><br>I did allmost exactly the same as you, but didn&#39;t include -DNO_COMPRESS.<br><br>It compiles fine now. However, seems like it can&#39;t load gdal_ECW_JP2ECW.dll anymore.<br><br>I now compile GDAL as a static lib, with ECW as a plugin. Could this result in GDAL not loading dynamic plugins ?<br>
<br><br>-- Oyvind<br><br><br><div class="gmail_quote">On Wed, Dec 15, 2010 at 3:19 PM, Ivan Lucena <span dir="ltr">&lt;<a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Oyvind,<br>
<br>
I tried adding those defines on ecw/<a href="http://makefile.vc" target="_blank">makefile.vc</a> and it did worked but I don&#39;t know if that is the right thing do to:<br>
<br>
-        /DLIBECWJ2 /DWIN32 /D_WINDLL -DFRMT_ecw -DNO_X86_MMI<br>
+        /DLIBECWJ2 /DWIN32 /D_WINDLL -DFRMT_ecw -DNO_X86_MMI -DECWSDK_VERSION=41 -DNO_COMPRESS<br>
<br>
And, of course, I changed the setting on nmake.opt:<br>
<br>
-#ECW_PLUGIN = NO<br>
-#ECWDIR  =     C:\warmerda\libecwj2-3.3<br>
-#ECWLIB  =     $(ECWDIR)\Source\NCSBuildQmake\Debug\libecwj2.lib<br>
+ECW_PLUGIN = YES<br>
+ECWDIR  =     &quot;C:\Program Files\ERDAS\ERDAS ECW JPEG2000 Read SDK&quot;<br>
+ECWLIB  =     $(ECWDIR)\lib\vc90\win32\NCScnet4.lib \<br>
+            $(ECWDIR)\lib\vc90\win32\NCSEcw4_RO.lib \<br>
+            $(ECWDIR)\lib\vc90\win32\NCSUtil4.lib<br>
<br>
That worked on 1.8dev and 1.7.3 as well but I guess we would need an expert opnion on that.<br>
<br>
C:\&gt;gdalinfo --format ecw<br>
Format Details:<br>
  Short Name: ECW<br>
  Long Name: ERMapper Compressed Wavelets<br>
  Extension: ecw<br>
  Help Topic: frmt_ecw.html<br>
<br>
C:\&gt;gdalinfo --version<br>
GDAL 1.7.3, released 2010/11/10<br>
<div class="im"><br>
Regards,<br>
<br>
Ivan<br>
<br>
<br>
&gt;  -------Original Message-------<br>
&gt;  From: Oyvind Idland &lt;<a href="mailto:oyvind.idland@gmail.com">oyvind.idland@gmail.com</a>&gt;<br>
</div><div class="im">&gt;  To: Ivan Lucena &lt;<a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>&gt;<br>
&gt;  Cc: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;  Subject: Re: [gdal-dev] libecwj2 ?<br>
&gt;  Sent: Dec 15 &#39;10 07:59<br>
&gt;<br>
&gt;  Thanks Ivan,<br>
&gt;<br>
&gt;  I forgot to mention that I use GDAL 1.7.3.<br>
&gt;<br>
&gt;  It seems to me that the ECW api has changed quite a bit, as 1.7.3<br>
&gt;  doesn&#39;t compile against it ?<br>
&gt;  For instance, I get<br>
&gt;<br>
&gt;  ecwcreatecopy.cpp(896) : error C2039: &#39;SetKeySize&#39; : is not a<br>
&gt;  member of &#39;NCS::CView&#39;<br>
&gt;<br>
&gt;  In addition, the NCSJPC_EXPORT_ALL macro is being used, and this one does<br>
&gt;  no longer<br>
&gt;  exist in the new SDK.<br>
&gt;<br>
&gt;<br>
&gt;  -- Oyvind<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt;  On Tue, Dec 14, 2010 at 3:53 PM, Ivan Lucena &lt;[LINK:<br>
&gt;  mailto:<a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>] <a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>&gt; wrote:<br>
&gt;  yvind,<br>
&gt;<br>
&gt;  There is a new SDK that you can download from Erdas website:<br>
&gt;<br>
</div>&gt;  [LINK: <a href="http://www.erdas.com/products/ERDASECWJPEG2000SDK/Downloads.aspx" target="_blank">http://www.erdas.com/products/ERDASECWJPEG2000SDK/Downloads.aspx</a>]<br>
<div class="im">&gt;  <a href="http://www.erdas.com/products/ERDASECWJPEG2000SDK/Downloads.aspx" target="_blank">http://www.erdas.com/products/ERDASECWJPEG2000SDK/Downloads.aspx</a><br>
&gt;<br>
&gt;  But there are a few changes you would need to do in order to compile the<br>
&gt;  GDAL/ECW driver because the path and library names has changed.<br>
&gt;<br>
&gt;  Regards,<br>
&gt;<br>
&gt;  Ivan<br>
&gt;<br>
&gt;<br>
&gt;  &gt;  -------Original Message-------<br>
</div><div class="im">&gt;  &gt;  From: Oyvind Idland &lt;[LINK: mailto:<a href="mailto:oyvind.idland@gmail.com">oyvind.idland@gmail.com</a>]<br>
&gt;  <a href="mailto:oyvind.idland@gmail.com">oyvind.idland@gmail.com</a>&gt;<br>
</div><div class="im">&gt;  &gt;  To: [LINK: mailto:<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>] <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;  &gt;  Subject: [gdal-dev] libecwj2 ?<br>
&gt;  &gt;  Sent: Dec 14 &#39;10 07:09<br>
&gt;  &gt;<br>
&gt;  &gt;  Hello,<br>
&gt;  &gt;<br>
&gt;  &gt;  i am compiling GDAL from source, and need the ECW as plugin.<br>
&gt;  &gt;<br>
&gt;  &gt;  The package is mentioned on the site, libecwj2-3.3-2006-09-06.zip, is<br>
&gt;  this<br>
&gt;  &gt;  a package<br>
&gt;  &gt;  from ERDAS ? I tried to find some info about it on their site, but<br>
&gt;  found<br>
&gt;  &gt;  nothing..<br>
&gt;  &gt;<br>
&gt;  &gt;  I found a couple of other download links, so I can at least get<br>
&gt;  started.<br>
&gt;  &gt;<br>
&gt;  &gt;<br>
</div>&gt;  &gt;  -- yvind<br>
&gt;  &gt;<br>
&gt;  &gt;  --------------------<br>
&gt;  &gt;  _______________________________________________<br>
&gt;  &gt;  gdal-dev mailing list<br>
&gt;  &gt;  [LINK: compose.php?to=[LINK: mailto:<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>]<br>
&gt;  <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>] [LINK: mailto:<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>]<br>
<div class="im">&gt;  <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
</div>&gt;  &gt;  [LINK: [LINK: <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>]<br>
&gt;  <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>]<br>
<div><div></div><div class="h5">&gt;  &gt;  [LINK: <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>]<br>
&gt;  <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br>