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