Thanks !<br><br>I did allmost exactly the same as you, but didn't include -DNO_COMPRESS.<br><br>It compiles fine now. However, seems like it can'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"><<a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>></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'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 = "C:\Program Files\ERDAS\ERDAS ECW JPEG2000 Read SDK"<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:\>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:\>gdalinfo --version<br>
GDAL 1.7.3, released 2010/11/10<br>
<div class="im"><br>
Regards,<br>
<br>
Ivan<br>
<br>
<br>
> -------Original Message-------<br>
> From: Oyvind Idland <<a href="mailto:oyvind.idland@gmail.com">oyvind.idland@gmail.com</a>><br>
</div><div class="im">> To: Ivan Lucena <<a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>><br>
> Cc: <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> Subject: Re: [gdal-dev] libecwj2 ?<br>
> Sent: Dec 15 '10 07:59<br>
><br>
> Thanks Ivan,<br>
><br>
> I forgot to mention that I use GDAL 1.7.3.<br>
><br>
> It seems to me that the ECW api has changed quite a bit, as 1.7.3<br>
> doesn't compile against it ?<br>
> For instance, I get<br>
><br>
> ecwcreatecopy.cpp(896) : error C2039: 'SetKeySize' : is not a<br>
> member of 'NCS::CView'<br>
><br>
> In addition, the NCSJPC_EXPORT_ALL macro is being used, and this one does<br>
> no longer<br>
> exist in the new SDK.<br>
><br>
><br>
> -- Oyvind<br>
><br>
><br>
</div><div class="im">> On Tue, Dec 14, 2010 at 3:53 PM, Ivan Lucena <[LINK:<br>
> 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>> wrote:<br>
> yvind,<br>
><br>
> There is a new SDK that you can download from Erdas website:<br>
><br>
</div>> [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">> <a href="http://www.erdas.com/products/ERDASECWJPEG2000SDK/Downloads.aspx" target="_blank">http://www.erdas.com/products/ERDASECWJPEG2000SDK/Downloads.aspx</a><br>
><br>
> But there are a few changes you would need to do in order to compile the<br>
> GDAL/ECW driver because the path and library names has changed.<br>
><br>
> Regards,<br>
><br>
> Ivan<br>
><br>
><br>
> > -------Original Message-------<br>
</div><div class="im">> > From: Oyvind Idland <[LINK: mailto:<a href="mailto:oyvind.idland@gmail.com">oyvind.idland@gmail.com</a>]<br>
> <a href="mailto:oyvind.idland@gmail.com">oyvind.idland@gmail.com</a>><br>
</div><div class="im">> > 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>
> > Subject: [gdal-dev] libecwj2 ?<br>
> > Sent: Dec 14 '10 07:09<br>
> ><br>
> > Hello,<br>
> ><br>
> > i am compiling GDAL from source, and need the ECW as plugin.<br>
> ><br>
> > The package is mentioned on the site, libecwj2-3.3-2006-09-06.zip, is<br>
> this<br>
> > a package<br>
> > from ERDAS ? I tried to find some info about it on their site, but<br>
> found<br>
> > nothing..<br>
> ><br>
> > I found a couple of other download links, so I can at least get<br>
> started.<br>
> ><br>
> ><br>
</div>> > -- yvind<br>
> ><br>
> > --------------------<br>
> > _______________________________________________<br>
> > gdal-dev mailing list<br>
> > [LINK: compose.php?to=[LINK: mailto:<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>]<br>
> <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">> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
</div>> > [LINK: [LINK: <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>]<br>
> <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">> > [LINK: <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>]<br>
> <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>