[gdal-dev] GDAL malfunction in android armeabi-v7a

alien ali_sarlak at rocketmail.com
Sat Mar 20 14:14:59 PDT 2021


Hello,

I implemented a Linux application that uses GDAL to cover its GIS
requirements. Then, I tried to port the app to Android. So, I need to
cross-compile the GDAL library for Android. Firstly, I compiled the library
for the Android simulator, which is x86. In x86 architecture, the app and
library work fine. Then, when I tried to cross-compile it for armeabi-v7a
the library doesn't work fully-functional. Some functions run perfectly,
though others don't. In some cases, application crashes due to an exception
that occurred inside of the GDAL library.

For instance, once you want to use the GetGeoTransform function, your app
crashes in armeabi-v7a architecture. However, the same code works nicely on
the x86 android simulator.

Another interesting fact is that the size of libgdal.so in armeabi-v7a is
about 43MB. However, the size for that of x86 is around 135MB.

I use Ubuntu 16.04 LTS x64 ,NDK r21e ,Android SDK 24, Android 7.0-7.1 ,GDAL
3.2.0.

GDAL configuration command:
./configure --host=$CROSS_COMPILE --prefix=$PWD/../../sysroot/
--target=android --with-libtiff=$PWD/../../sysroot/
--with-proj=$PWD/../../sysroot/ --with-sqlite3=$PWD/../../sysroot
--with-expat=$PWD/../../sysroot/ --with-png=$PWD/../../sysroot/
--with-curl=no

Log:
log.txt <http://osgeo-org.1560.x6.nabble.com/file/t387871/log.txt>  

I appreciate any help.
Yours,






--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list