# OSGeo4A **Repository Path**: nolincoln/OSGeo4A ## Basic Information - **Project Name**: OSGeo4A - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README OSGeo4A ========== This provides a set of scripts to build opensource geo tools for Android. This is *Experimental* Dependencies instructions ------------------------- - you need a JDK v8 or later (OpenJDK is also good) - [Apache ant](http://ant.apache.org/bindownload.cgi) v1.8 or later - [Qt5 for android >= 5.11] Install ARMv7 arch support. Also read the [upstream Qt information on building Qt5 code for Android](http://doc.qt.io/qt-5/androidgs.html) - Android SDK ([Download from developer.android.com](https://developer.android.com/studio/index.html#downloads) just command line tools, API 15) - Android NDK ([Android NDK r19+](https://developer.android.com/ndk/downloads) [Here](http://doc.qt.io/qt-5/androidgs.html) 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. ```sh 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](https://github.com/opengisch/OSGeo4A/issues/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`