<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Alright, since jni_md.h was referenced from jni.h, I tried copying jni_md.h into the same directory as jni.h, which seems to have helped. Or at least got to the next error:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">gnm_wrap.cpp:471:21: warning: unused function 'SWIG_JavaArrayOutDouble' [-Wunused-function]<br>static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz);<br> ^<br>94 warnings generated.<br>/bin/sh /Users/david/w/gdal/gdal-3.0.4/libtool --mode=link --silent g++ -std=c++11 -dynamiclib -single_module -flat_namespace -undefined suppress gdalconst_wrap.lo gdal_wrap.lo osr_wrap.lo ogr_wrap.lo gnm_wrap.lo /Users/david/w/gdal/gdal-3.0.4/<a href="http://libgdal.la">libgdal.la</a> -o <a href="http://libgdalalljni.la">libgdalalljni.la</a> -rpath /usr/local/lib -no-undefined -version-info 26:4:0<br>libtool: error: cannot find the library '/Users/david/w/gdal/gdal-3.0.4/<a href="http://libgdal.la">libgdal.la</a>' or unhandled argument '/Users/david/w/gdal/gdal-3.0.4/<a href="http://libgdal.la">libgdal.la</a>'<br>make: *** [<a href="http://libgdalalljni.la">libgdalalljni.la</a>] Error 1<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Indeed gdal-3.0.4/<a href="http://libgdal.la">libgdal.la</a> isn't there. How do I get it?</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 1:26 PM David Rush <<a href="mailto:david.rush@wyo.gov">david.rush@wyo.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Andrew:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">That's what I thought. I do have the JDK (OpenJDK 11.0.2).</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Ah, found it. I think I may have both a JRE and JVM confusing things (confusing me, at least). Both appear to be the same version, at least.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I've changed my JAVA_HOME in java.opt to reflect where my JDK is installed. Also had to change the JAVA_INCLUDE in java.opt because jni.h is under $JAVA_HOME/include rather than $JAVA_HOME/Headers.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Then it couldn't find "jni_md.h" (machine dependent things, apparently). I found it in my JDK installation, and copied it to the current directory (gdal/swig/java), but it still can't seem to find it:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">In file included from gdalconst_wrap.c:154:<br>/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/include/jni.h:45:10: fatal error: 'jni_md.h' file not found<br>#include "jni_md.h"<br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Since the include is in quotes, it should be looking in the current directory for it, right? The gdalconst_wrap.c file is in the current directory, so I'm in the right place.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Suggestions?</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 11:52 AM Andrew C Aitchison <<a href="mailto:andrew@aitchison.me.uk" target="_blank">andrew@aitchison.me.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 27 Apr 2020, David Rush wrote:<br>
<br>
> Ivan:<br>
><br>
> Thanks! That worked. On to the next error (with make in gdal/swig/java)<br>
> ...<br>
><br>
> gdalconst_wrap.c:154:10: fatal error: 'jni.h' file not found<br>
> #include <jni.h><br>
> ^~~~~~~<br>
> 1 error generated.<br>
> make: *** [gdalconst_wrap.lo] Error 1<br>
><br>
> Where *should* jni.h come from? I can't find it anywhere in my Java<br>
> installation.<br>
<br>
I believe it should be in the JDK (Java Development Kit)<br>
- do you just have the JRE or Java Runtime Environment ?<br>
<br>
-- <br>
Andrew C. Aitchison Kendal, UK<br>
<a href="mailto:andrew@aitchison.me.uk" target="_blank">andrew@aitchison.me.uk</a><br>
</blockquote></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>