<div dir="ltr">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 : ​<a href="https://trac.osgeo.org/gdal/attachment/wiki/ECW/libecwj2-3.3.patch">https://trac.osgeo.org/gdal/attachment/wiki/ECW/libecwj2-3.3.patch</a>. I then ran the following standard build commands:<div><br></div><div>./configure</div><div>make<br><div><br></div><div>But I get the following error:<div><br></div><div><div>/Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSDefs.h:430:28: error: static declaration of 'wcsdup' follows non-static declaration</div><div>static NCS_INLINE wchar_t *wcsdup(const wchar_t *s1)</div><div>                           ^</div><div>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/wchar.h:199:10: note: previous declaration is</div><div>      here</div><div>wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div>         ^</div><div>In file included from ../C/NCSEcw/NCSJP2/NCSJP2.cpp:24:</div><div>In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSEcw.h:73:</div><div>In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/ECW.h:137:</div><div>In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSUtil.h:86:</div><div>In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSPrefs.h:131:</div></div><div><br></div><div>Does anyone have any experience building on MacOSX, or have a handy patch that fixes this?</div><div><br></div><div>Thanks :)</div><div>Jeremy</div><div><br></div></div></div></div>