[gdal-dev] Building for Java on MacOS

Even Rouault even.rouault at spatialys.com
Mon Apr 27 06:11:33 PDT 2020


On lundi 27 avril 2020 07:03:28 CEST David Rush wrote:
> All:
> 
> I think I finally found some instructions for building the Java stuff I
> need:
> 
> https://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix
> 
> That includes some notes for MacOS.  Yay.
> 
> I've set up my java.opt per this link referenced in the above link:
> 
> https://trac.osgeo.org/gdal/ticket/2401
> 
> But when I run "make" from the swig/java directory, I get this error:
> 
> GNUmakefile:1: ../../GDALmake.opt: No such file or directory
> make: *** No rule to make target `../../GDALmake.opt'.  Stop.
> 
> I did a search with "find" but I don't seem to have that file.

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.

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200427/7353f432/attachment.html>


More information about the gdal-dev mailing list