Opened 10 years ago

Closed 9 years ago

#3952 closed enhancement (fixed)

Android support

Reported by: rolker Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: default Version: svn-trunk
Severity: normal Keywords: android

Description (last modified by rolker)

I'm creating this ticket to collect patches and procedures for building GDAL for the Android platform.

Instructions for building can be found at

Attachments (1)

android.diff (399 bytes) - added by rolker 10 years ago.
Small patch to allow building with Android NDK

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by rolker

Attachment: android.diff added

Small patch to allow building with Android NDK

comment:1 Changed 10 years ago by warmerdam


I would suggest that buildhints for Android should be primarily handled via a wiki topic off I have applied the patch (manually) in trunk (r21653). Any additional patches suitable for trunk can be added here and I will apply them.

comment:2 in reply to:  1 Changed 10 years ago by rolker

Description: modified (diff)

Thanks for applying the patch. I was going to ask if the build instructions should go on the wiki or in a README file, but you answered that! I created with the original instructions.

comment:3 Changed 10 years ago by rolker

In order to get the ./configure script to recognize the --host=arm-linux-androideabi option, I had to replace the config.guess and config.sub files with later versions. (I used the ones from with timestamps of 2011-02-02 for my testing.)

Is it possible to update those files in the repository? I don't have experience maintaining autoconf based projects, so I don't know if there is a risk of breaking builds on other platforms by updating those files.

comment:4 Changed 10 years ago by warmerdam

The files would normally be refreshed by rerunning on a system with newer versions of autoconf. For now I would suggest you encourage android users to update to a new autoconf and run gdal/

If we can remember, it would be nice to update to a newish autoconf before the 1.9 release next winter.

comment:5 Changed 10 years ago by mbernasocchi

Confirming that the patch works. I used it in my android QGIS port. I also added a note on the wiki. Thanks Marco

comment:6 Changed 10 years ago by Even Rouault

r22958 /trunk/gdal/frmts/grib/degrib18/degrib/ (memorydatasource.cpp myutil.c): GRIB: fixes for Android cross-compilation (#3952)

comment:7 Changed 9 years ago by warmerdam

Resolution: fixed
Status: newclosed

I don't see an ongoing need for this ticket. Things seem to be in decent shape.

Note: See TracTickets for help on using tickets.