Skip to content

Commit

Permalink
Merge pull request #10711 from rouault/doc_android
Browse files Browse the repository at this point in the history
Doc: add instructions for Android installation
  • Loading branch information
rouault committed Sep 16, 2024
2 parents 60eccc5 + 588b0f4 commit 6ccf77f
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions doc/source/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,25 @@ GDAL packages are available on `Homebrew`_.
.. _`Homebrew`: https://formulae.brew.sh/formula/gdal


Android
.......

GDAL can be installed using :ref:`vcpkg`. You may also refer to `vcpkg Android support <https://learn.microsoft.com/en-us/vcpkg/users/platforms/android>`__ for general instructions.

For example to install default configuration for the ``arm64-android`` target:

.. code-block:: shell
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh # ./bootstrap-vcpkg.bat for Windows
./vcpkg integrate install
export ANDROID_NDK_HOME=/path/to/android_ndk_home # to adapt
./vcpkg search gdal --featurepackages # list optional features
./vcpkg install gdal:arm64-android # install with default configuration
./vcpkg install gdal[poppler,netcdf]:arm64-android # install with Poppler and netdf support
Cross-Platform Package Managers
...............................

Expand Down Expand Up @@ -193,13 +212,15 @@ vcpkg
The GDAL port in the `vcpkg <https://github.com/Microsoft/vcpkg>`__ dependency manager is kept up to date by Microsoft team members and community contributors.
You can download and install GDAL using the vcpkg as follows:

::
.. code-block:: shell
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh # ./bootstrap-vcpkg.bat for Windows
./vcpkg integrate install
./vcpkg install gdal
./vcpkg search gdal --featurepackages # list optional features
./vcpkg install gdal # install with default configuration
./vcpkg install gdal[poppler,netcdf] # install with Poppler and netdf support
If the version is out of date, please `create an issue or pull request <https://github.com/Microsoft/vcpkg>`__ on the vcpkg repository.

Expand Down

0 comments on commit 6ccf77f

Please sign in to comment.