Opened 13 years ago

Closed 12 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
Cc:

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 http://trac.osgeo.org/gdal/wiki/BuildingForAndroid

Attachments (1)

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

Download all attachments as: .zip

Change History (8)

by rolker, 13 years ago

Attachment: android.diff added

Small patch to allow building with Android NDK

comment:1 by warmerdam, 13 years ago

Milestone: 1.8.11.9.0

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

in reply to:  1 comment:2 by rolker, 13 years ago

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 http://trac.osgeo.org/gdal/wiki/BuildingForAndroid with the original instructions.

comment:3 by rolker, 13 years ago

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 http://git.savannah.gnu.org/cgit/config.git/tree/ 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 by warmerdam, 13 years ago

The files would normally be refreshed by rerunning autogen.sh 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/autogen.sh.

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

comment:5 by mbernasocchi, 13 years ago

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 by Even Rouault, 13 years ago

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

comment:7 by warmerdam, 12 years ago

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.