[gdal-dev] Compiling ECW 3.3 on MacOSX
John Daniel
jdaniel at etresoft.com
Thu Jan 4 08:27:41 PST 2018
Sorry if this is a dupe. I tend to screw up my From: address when responding to the list...
Hello Jeremy,
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.
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.
I have a set of Mac-specific build scripts at: (https://github.com/etresoft/OS-GIS). 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.
John Daniel
Etresoft, Inc.
On Jan 3, 2018, at 11:42 PM, Jeremy Palmer <palmerjnz at gmail.com<mailto:palmerjnz at gmail.com>> wrote:
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
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
John Daniel
Etresoft, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180104/80e8a0a0/attachment-0001.html>
More information about the gdal-dev
mailing list