Hi Gane,

I build GDAL 2.1 using NDK and borsch build system, based on CMake.
There are some limitations - I only need GDAL in my own c++ library. So I created swig bindings for my own library, not use GDAL Java bindings (GDAL java binding is not ready yet). Here it is the link for library which build GDAL and dependency libraries - https://github.com/nextgis/nextgis_datastore (especially https://github.com/nextgis/nextgis_datastore/blob/master/cmake/extlib.cmake) Here it is an example of using such library - https://github.com/nextgis/android_maplib/tree/ndk (fixed gradle build script https://github.com/nextgis/android_maplib/blob/ndk/build.gradle and NDK makefiles https://github.com/nextgis/android_maplib/tree/ndk/src/main/jni) Everything works in Android Studio - GDAL and dependencies downloaded from github, and build (rather long as build done for each ABI), results *.so files and headers copied to jni directory and swig bindings too. The exported functions are ready and work in android application.

This is not finished solution, but I hope it will be helpful.

Best regards,
    Dmitry

10.06.2016 22:07, Gane R пишет:
Hi all,

I saw a link for Building GDAL for android on linux

https://trac.osgeo.org/gdal/wiki/BuildingForAndroid

Is it updated ?, I tried to build on centOS, It took the android linux compiler. The make resulted in a error. gdal 2.1.0

Is there any updated document or any one having personal experience in building GDAL for android or any documentation that has worked will be of great help.


Gane




_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to