Opened 16 years ago

Closed 15 years ago

#2032 closed defect (fixed)

Building with ECW support on Mac OS X

Reported by: Mateusz Łoskot Owned by: Mateusz Łoskot
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: ecw libecwj osx


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:

make install

Here are installed binaries:

$ ls -1 /usr/local/lib/libecw*
$ ls -1 /usr/local/lib/libNCS*

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 or libecwj2... configure: 
 error: not found in /usr/local/lib or /usr/local/bin.

Going to fix it.

Attachments (1)

libecwj2-3.3-ncssocket.cpp.patch (460 bytes ) - added by Mateusz Łoskot 16 years ago.
Patch for libecwj2-3.3/Source/C/NCSnet/NCScnet3/NCSSocket.cpp (generated with command: diff -Nua)

Download all attachments as: .zip

Change History (3)

by Mateusz Łoskot, 16 years ago

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

comment:1 by Mateusz Łoskot, 16 years ago

Owner: changed from warmerdam to Mateusz Łoskot
Status: newassigned

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

comment:2 by Mateusz Łoskot, 15 years ago

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.