<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Sorry if this is a dupe. I tend to screw up my From: address when responding to the list...</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello Jeremy,
<div class="">I do have a handy patch for this library. I will send it to you in a private e-mail. It isn’t a small patch so I don’t think I should put it on the mailing list.</div>
<div class=""><br class="">
</div>
<div class="">I just tested it on High Sierra and it seems to build correctly. I just built the library. I didn’t try to use it or link it with GDAL. That brings me to my next question. Why do you want this old thing? It is hard to build, has questionable licensing,
 and there are better alternatives available. If you just need JPEG-2000 support, I would recommend the OpenJPEG project. </div>
<div class=""><br class="">
</div>
<div class="">I have a set of Mac-specific build scripts at: (<a href="https://github.com/etresoft/OS-GIS" class="">https://github.com/etresoft/OS-GIS</a>). I haven’t run them for a while, but I will soon be getting back into this project. ECW is not included
 in this project. </div>
<div class=""><br class="">
<div class="">John Daniel<br class="">
Etresoft, Inc. </div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Jan 3, 2018, at 11:42 PM, Jeremy Palmer <<a href="mailto:palmerjnz@gmail.com" class="">palmerjnz@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div dir="ltr" class="">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" class="">https://trac.osgeo.org/gdal/attachment/wiki/ECW/libecwj2-3.3.patch</a>.
 I then ran the following standard build commands:
<div class=""><br class="">
</div>
<div class="">./configure</div>
<div class="">make<br class="">
<div class=""><br class="">
</div>
<div class="">But I get the following error:
<div class=""><br class="">
</div>
<div class="">
<div class="">/Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSDefs.h:430:28: error: static declaration of 'wcsdup' follows non-static declaration</div>
<div class="">static NCS_INLINE wchar_t *wcsdup(const wchar_t *s1)</div>
<div class="">                           ^</div>
<div class="">/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 class="">      here</div>
<div class="">wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div>
<div class="">         ^</div>
<div class="">In file included from ../C/NCSEcw/NCSJP2/NCSJP2.cpp:24:</div>
<div class="">In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSEcw.h:73:</div>
<div class="">In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/ECW.h:137:</div>
<div class="">In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSUtil.h:86:</div>
<div class="">In file included from /Users/jpalmer/Documents/Development/libecwj2/Source/include/NCSPrefs.h:131:</div>
</div>
<div class=""><br class="">
</div>
<div class="">Does anyone have any experience building on MacOSX, or have a handy patch that fixes this?</div>
<div class=""><br class="">
</div>
<div class="">Thanks :)</div>
<div class="">Jeremy</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
gdal-dev mailing list<br class="">
<a href="mailto:gdal-dev@lists.osgeo.org" class="">gdal-dev@lists.osgeo.org</a><br class="">
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" class="">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
<br class="">
<br class="">
<div class="">John Daniel<br class="">
Etresoft, Inc. </div>
<br class="">
</body>
</html>