<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi David,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am in the process of refreshing my GDAL building process in a Mac, so I might be able to help with that question.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You need to install SWIG in your machine. And one way to do that is using the HomeBrewer [brew.sh] another is Anaconda [anaconda.com]</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
$ brew install swig</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
o<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background: var(--white);">r</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
$ conda install swig</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Homebrew mess with you OS and Apple updates might mess with your brew installed software. <span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background: var(--white);">Anaconda keeps it all in a user sub-folder.
 It is up to you.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am not interested in building the Java binding, only Python, but once upon a time I remember I could get all you need "just" by installing uDig [udig.refractions.net]. I mean, the GDAL Java binding was included and ready to use.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ivan</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background: var(--white);"><br>
</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of David Rush <david.rush@wyo.gov><br>
<b>Sent:</b> Monday, April 27, 2020 10:02 AM<br>
<b>To:</b> gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Building for Java on MacOS</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif">Thank you, Evan.  That got me to the next error:</div>
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif">/bin/sh: swig: command not found<br>
make: *** [gdal_wrap.cpp] Error 127<br>
</div>
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif">Where/how does the "swig" script or binary come from?</div>
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:trebuchet ms,sans-serif">David</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Mon, Apr 27, 2020 at 7:11 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<u></u>
<div style="font-family:monospace; font-size:9pt; font-weight:400; font-style:normal">
<p style="margin:0px; text-indent:0px">On lundi 27 avril 2020 07:03:28 CEST David Rush wrote:</p>
<p style="margin:0px; text-indent:0px">> All:</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> I think I finally found some instructions for building the Java stuff I</p>
<p style="margin:0px; text-indent:0px">> need:</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> <a href="https://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix" target="_blank">
https://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix</a></p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> That includes some notes for MacOS. Yay.</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> I've set up my java.opt per this link referenced in the above link:</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> <a href="https://trac.osgeo.org/gdal/ticket/2401" target="_blank">
https://trac.osgeo.org/gdal/ticket/2401</a></p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> But when I run "make" from the swig/java directory, I get this error:</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> GNUmakefile:1: ../../GDALmake.opt: No such file or directory</p>
<p style="margin:0px; text-indent:0px">> make: *** No rule to make target `../../GDALmake.opt'. Stop.</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> I did a search with "find" but I don't seem to have that file.</p>
<p style="margin:0px; text-indent:0px"> </p>
<p style="margin:0px; text-indent:0px">You need to run ./configure to generate it. And it is strongly advise that you run the Java bindings against the same version of the native library for which they have been generated.</p>
<p style="margin:0px; text-indent:0px"> </p>
<p style="margin:0px; text-indent:0px">-- </p>
<p style="margin:0px; text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px; text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p>
</div>
</blockquote>
</div>
<br>
<br>
E-Mail to and from me, in connection with the transaction <br>
of public business, is subject to the Wyoming Public Records <br>
Act and may be disclosed to third parties.<br>
</div>
</body>
</html>