<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Gane,<br>
<br>
I build GDAL 2.1 using NDK and borsch build system, based on CMake.<br>
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).<br>
Here it is the link for library which build GDAL and dependency
libraries - <a class="moz-txt-link-freetext" href="https://github.com/nextgis/nextgis_datastore">https://github.com/nextgis/nextgis_datastore</a> (especially
<a class="moz-txt-link-freetext" href="https://github.com/nextgis/nextgis_datastore/blob/master/cmake/extlib.cmake">https://github.com/nextgis/nextgis_datastore/blob/master/cmake/extlib.cmake</a>)<br>
Here it is an example of using such library -
<a class="moz-txt-link-freetext" href="https://github.com/nextgis/android_maplib/tree/ndk">https://github.com/nextgis/android_maplib/tree/ndk</a> (fixed gradle
build script
<a class="moz-txt-link-freetext" href="https://github.com/nextgis/android_maplib/blob/ndk/build.gradle">https://github.com/nextgis/android_maplib/blob/ndk/build.gradle</a> and
NDK makefiles
<a class="moz-txt-link-freetext" href="https://github.com/nextgis/android_maplib/tree/ndk/src/main/jni">https://github.com/nextgis/android_maplib/tree/ndk/src/main/jni</a>)<br>
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. <br>
<br>
This is not finished solution, but I hope it will be helpful.<br>
<pre class="moz-signature" cols="72">Best regards,
Dmitry</pre>
<div class="moz-cite-prefix">10.06.2016 22:07, Gane R пишет:<br>
</div>
<blockquote
cite="mid:CALMrLdBJ6f1H1gFhdqCiOSe-c7ZgALgY-z0W=F=nd7Xb4hzFuQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi all,<br>
<br>
I saw a link for Building GDAL for android on linux<br>
<br>
<a moz-do-not-send="true"
href="https://trac.osgeo.org/gdal/wiki/BuildingForAndroid">https://trac.osgeo.org/gdal/wiki/BuildingForAndroid</a><br>
<br>
</div>
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<br>
<br>
</div>
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.<br>
<br>
<br>
</div>
Gane<br>
<div>
<div><br>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>