[gdal-dev] Cannot write jpeg2000 with ERDAS 4.3

ngarel ngarel at micromine.com
Thu Mar 14 17:35:44 PDT 2013


Hi,
I created this  ticket <http://trac.osgeo.org/gdal/ticket/5025>   but maybe
I should have asked the question first here.

We upgraded the ERDAS library from 4.2 to 4.3 and the gdal_translate fails
to open the output file in GDALECWCompressor::Initialize() function, at
oError = CNCSJP2FileView::Open( &(m_OStream) );

oError.m_eError always returns NCS_FILE_OPEN_FAILED which did not use to
happen with 4.2 library.

the output error is: ERROR 1: An error has occurred: Error 2 "File open
failed" file "" line 0

Gdal dll has been rebuilt with the following flags:

ECWDIR = "<path>\ERDAS ECW JPEG2000 4.3 SDK" ECWFLAGS = -DECWSDK_VERSION=43
\

-DHAVE_COMPRESS \ -I$(ECWDIR)\include \ -I$(ECWDIR)\include\NCSECW\api
-I$(ECWDIR)\include\NCSECW\jp2 \ -I$(ECWDIR)\include\NCSECW\ecw

ECWLIB = $(ECWDIR)\lib\vc10\win32\NCSEcw4d.lib \

$(ECWDIR)\lib\vc10\win32\NCSUtil4d.lib \
$(ECWDIR)\lib\vc10\win32\NCScnet4d.lib

Does anybody have had the same issue when upgrading the ERDAS library?



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Cannot-write-jpeg2000-with-ERDAS-4-3-tp5040505.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list