Re: [gdal-dev] libecwj2 ?

Ivan Lucena ivan.lucena at pmldnet.com
Wed Dec 15 09:19:27 EST 2010


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 <oyvind.idland at gmail.com>
>  To: Ivan Lucena <ivan.lucena at pmldnet.com>
>  Cc: gdal-dev at lists.osgeo.org
>  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:ivan.lucena at pmldnet.com] ivan.lucena at pmldnet.com> 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:oyvind.idland at gmail.com]
>  oyvind.idland at gmail.com>
>  >  To: [LINK: mailto:gdal-dev at lists.osgeo.org] gdal-dev at lists.osgeo.org
>  >  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:gdal-dev at lists.osgeo.org]
>  gdal-dev at lists.osgeo.org] [LINK: mailto:gdal-dev at lists.osgeo.org]
>  gdal-dev at lists.osgeo.org
>  >  [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


More information about the gdal-dev mailing list