Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.
/ OSGeo4A Public archive

OSGeo4A is a build environment to cross-compile opensource GIS software for android devices

License

Notifications You must be signed in to change notification settings

opengisch/OSGeo4A

Repository files navigation

OSGeo4A

This provides a set of scripts to build opensource geo tools for Android.

This is Experimental

Dependencies instructions

Here are more information on building QT5 code for android

Build instructions

Create a file config.conf in the root folder by copying the config.conf.default file and edit it accordingly to your needs.

The build system is maintained for QGIS 3.x releases. Alternatively you may want to clone qgis/QGIS locally and point the config.conf file to your local repository.

cd OSGeo4A 
cp config.conf.default config.conf
# nano config.conf
./distribute.sh -dqgis -mqgis

NDK-r19b

To be able to build with r19b, override the toolchain file in the NDK

sudo mv /opt/android-ndk-r19b/build/cmake/android.toolchain.cmake /opt/android-ndk-r19b/build/cmake/android.toolchain.cmake.old
sudo cp OSGeo4A/tools/android.toolchain.cmake.r19b /opt/android-ndk-r19b/build/cmake/android.toolchain.cmake

for details, see issue 41

MacOS Specific instructions

  • brew install ant

To build on MacOS Mojave 10.14.x, you need java8, not default java 10, since you would get Could not determine java version from '10.0.2' during gradle install step with Qt 5.12.0

  • brew tap homebrew/cask-versions
  • brew cask install adoptopenjdk/openjdk/adoptopenjdk8

To build QGIS, you need relatively new version of bison (3.x). MacOS ships with bison 2.x so it is required to install one newer and add to PATH

  • brew install bison