Ticket #2032 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

Building with ECW support on Mac OS X

Reported by: mloskot Assigned to: mloskot
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: ecw libecwj osx
Cc:

Description

I found a few small issues when building GDAL with ECW driver using libecwj2-3.3 library on Mac OS X 10.4.

  • Bug in libecwj2-3.3

See attached patch: libecwj2-3.3-ncssocket.cpp.patch

After applied the patch, compilation of libecwj2 gives a flood of warning, but these can be ignored, however I'd not use safely here, as there is number of serious C++ issues like missing virtual destructors for abstract classes, etc.

  • ./configure does not detects libecwj

The ECW SDK was installed according to standard procedure:

./configure
make
make install

Here are installed binaries:

$ ls -1 /usr/local/lib/libecw*
/usr/local/lib/libecwj2.a
$ ls -1 /usr/local/lib/libNCS*
/usr/local/lib/libNCSCnet.0.0.0.dylib
/usr/local/lib/libNCSCnet.0.dylib
/usr/local/lib/libNCSCnet.a
/usr/local/lib/libNCSCnet.dylib
/usr/local/lib/libNCSCnet.la
/usr/local/lib/libNCSEcw.0.0.0.dylib
/usr/local/lib/libNCSEcw.0.dylib
/usr/local/lib/libNCSEcw.a
/usr/local/lib/libNCSEcw.dylib
/usr/local/lib/libNCSEcw.la
/usr/local/lib/libNCSEcwC.0.0.0.dylib
/usr/local/lib/libNCSEcwC.0.dylib
/usr/local/lib/libNCSEcwC.a
/usr/local/lib/libNCSEcwC.dylib
/usr/local/lib/libNCSEcwC.la
/usr/local/lib/libNCSUtil.0.0.0.dylib
/usr/local/lib/libNCSUtil.0.dylib
/usr/local/lib/libNCSUtil.a
/usr/local/lib/libNCSUtil.dylib
/usr/local/lib/libNCSUtil.la

When trying to configure GDAL with ECW following error is reported:

./configure --with-ecw=/usr/local
...
checking for pgx_decode in -ljasper... no
checking for libNCSEcw.so or libecwj2... configure: 
 error: not found in /usr/local/lib or /usr/local/bin.

Going to fix it.

Attachments

libecwj2-3.3-ncssocket.cpp.patch (460 bytes) - added by mloskot on 11/28/07 02:25:53.
Patch for libecwj2-3.3/Source/C/NCSnet/NCScnet3/NCSSocket.cpp (generated with command: diff -Nua)

Change History

11/28/07 02:25:53 changed by mloskot

  • attachment libecwj2-3.3-ncssocket.cpp.patch added.

Patch for libecwj2-3.3/Source/C/NCSnet/NCScnet3/NCSSocket.cpp (generated with command: diff -Nua)

11/28/07 02:40:52 changed by mloskot

  • status changed from new to assigned.
  • owner changed from warmerdam to mloskot.

Fixed configure.in to properly detect libecwj binaries on Mac OS X (r13126)

05/08/08 21:25:13 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

I re-confirmed that ECW support works on Mac OS X. I'm closing this ticket.

It's not our responsibility to patch libecwj code, so I'm leaving small patch in the attachment for users who want to apply on their own, if they need.