[gdal-dev] Compiling ECW 3.3 on MacOSX

Jeremy Palmer palmerjnz at gmail.com
Wed Jan 3 20:42:30 PST 2018


I'm trying to compile ECW support for GDAL using the older 3.3 SDK for
MacOSX 10.13. I downloaded the source for libecwj2-3.3-2006-09-06.zip and
applied the cumulative patch : ​
https://trac.osgeo.org/gdal/attachment/wiki/ECW/libecwj2-3.3.patch. I then
ran the following standard build commands:

./configure
make

But I get the following error:

/Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSDefs.h:430:28:
error: static declaration of 'wcsdup' follows non-static declaration
static NCS_INLINE wchar_t *wcsdup(const wchar_t *s1)
                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/wchar.h:199:10:
note: previous declaration is
      here
wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7,
__IPHONE_4_3);
         ^
In file included from ../C/NCSEcw/NCSJP2/NCSJP2.cpp:24:
In file included from
/Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSEcw.h:73:
In file included from
/Users/jpalmer/Documents/Development/libecwj2/Source/include/ECW.h:137:
In file included from
/Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSUtil.h:86:
In file included from
/Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSPrefs.h:131:

Does anyone have any experience building on MacOSX, or have a handy patch
that fixes this?

Thanks :)
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180104/0486665a/attachment.html>


More information about the gdal-dev mailing list