[gdal-dev] Building GDAL with PROJ4 on Android

René Hansen renehh at gmail.com
Tue Aug 7 03:40:20 PDT 2018


I forgot to mention, my test device is a Samsung Galaxy S5 running Android
6.0. I haven't tested on other devices so ymmv.

/René

On Tue, 7 Aug 2018 at 12:37 René Hansen <renehh at gmail.com> wrote:

> Hey Chris,
>
>
> From a previous yak-shaving-adventure, I've dabbled in building Proj and
> Geos for Android, because they were dependencies of Spatialite, which I'm
> using for an app.
>
> That resulted in a homegrown build system based on docker, aptly named:
> Building for Android with Docker. It is meant as a repository for working
> build sets for various native libs.
>
> I didn't previously have GDAL in there, but decided to give it a shot and
> add it, to see how much effort was required. Not much as it were.
>
> I've added GDAL now, with a compile-time dependency for Proj, so it
> shouldn't be more of a hassle than simply checking out the repo and then
> "make gdal".
>
> Instructions for how to extract the libraries from the container, is in
> the readme. Here's the link to the repo:
>
> https://github.com/rhardih/bad
>
> I've built and tried a very simple Android app, and added some of the
> source from https://gdal.org/gdalinfo.c.html, to see if the libs actually
> loaded up and Proj was supported. It seems to work just fine. You can find
> the example app, source and output here:
>
> https://github.com/rhardih/gdal-proj-android
>
> So far I've only used this project for personal consumption, and I need to
> do a lot of grooming and test/writing before it's really ready for public
> use, but this might solve your problem in this instance.
>
>
> Best regards,
>
> René Hansen
>
>
>
> On Mon, 6 Aug 2018 at 21:40 Chris Hanson <xenon at alphapixel.com> wrote:
>
>> We have been struggling for months to get osgEarth ( http://osgearth.org/
>> ) working on Android using a PROJ4 equipped GDAL 2.x build. We have it
>> working with a scratch-built GDAL, but it lacks the PROJ4 capabilities.
>>
>> GDAL reports lacking PROJ4 at runtime. The --with-static-proj option is
>> said to be deprecated.
>>
>> Has anyone successfully built a GDAL 2.x with PROJ4 on Android?
>>
>> --
>> Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
>> http://www.alphapixel.com/
>> Training • Consulting • Contracting
>> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
>> • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
>> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
>> osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
>> iPhone/iPad/iOS • Android
>> @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
>> 623-PIXL [7495]
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180807/c3e36a82/attachment.html>


More information about the gdal-dev mailing list