Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#3344 closed defect (wontfix)

Compiling ECW support on Linux fails

Reported by: rst Owned by: warmerdam
Priority: normal Milestone:
Component: ConfigBuild Version: svn-trunk
Severity: normal Keywords: ecw linux
Cc:

Description

The ECW SDK ecw_jpeg_2000_sdk_3_3_source.zip / libecwj2-3.3 seems to require two compiler defs to succeed:

-DPOSIX -DLINUX

Fedora release 8 (Werewolf) 2.6.21.7-2.fc8xen x86_64 gcc 4.1.2 20070925 (Red Hat 4.1.2-33) GDAL gdalsvn-trunk-20091012

Change History (4)

comment:1 Changed 7 years ago by Even Rouault

Resolution: invalid
Status: newclosed

This does not look like a GDAL issue, so I close it for the same reasons as in #3162. You might want to mention your findings in http://trac.osgeo.org/gdal/wiki/ECW however.

comment:2 Changed 7 years ago by rst

Resolution: invalid
Status: closedreopened

Sorry, seems I wasn't clear enough - it should read 'compiling GDAL with ECW support requires the extra defs to succeed'.

I think the configure should add the defs in GDALmake.opt - output being like this:

CPPFLAGS = -D_REENTRANT -I$(GDAL_ROOT)/port -I/mnt/sdi/GDAL/libecwj2-3.3/include -DLINUX -DPOSIX

comment:3 Changed 6 years ago by warmerdam

Resolution: wontfix
Status: reopenedclosed

I've actually taken to embedding extra flags in NCSTypes.h in my local copy of 3.3 rather than cludging up the GDAL build and configuration code. I have added a note about this issue in the ECW building wiki page.

comment:4 Changed 6 years ago by warmerdam

Component: defaultConfigBuild
Milestone: 1.7.0
Note: See TracTickets for help on using tickets.