Opened 11 years ago
Closed 9 years ago
#5025 closed defect (invalid)
Gdal192 and gdal-svn-trunk-2013.03.07 does not write JPG2000 files with ERDAS 4.3 READ/WRITE DESKTOP SDK
Reported by: | ngarel | Owned by: | warmerdam |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | GDAL_Raster | Version: | svn-trunk |
Severity: | critical | Keywords: | JP2 ERDAS |
Cc: |
Description
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, line 866 : 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
I haven't hear people loudly complaining about this, so I'd assume this was just a local issue.