[gdal-dev] Building for Java on MacOS

David Rush david.rush at wyo.gov
Mon Apr 27 07:02:10 PDT 2020


Thank you, Evan.  That got me to the next error:

/bin/sh: swig: command not found
make: *** [gdal_wrap.cpp] Error 127

Where/how does the "swig" script or binary come from?

David

On Mon, Apr 27, 2020 at 7:11 AM Even Rouault <even.rouault at spatialys.com>
wrote:

> 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
>

-- 

E-Mail to and from me, in connection with the transaction 
of public 
business, is subject to the Wyoming Public Records 
Act and may be 
disclosed to third parties.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200427/aa283cb0/attachment-0001.html>


More information about the gdal-dev mailing list