Skip to content

Commit 1ac6db7

Browse files
committed
Add commands for a successful OSX build.
1 parent cd9f4b0 commit 1ac6db7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/source/development/building_from_source.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@ Similarly, recent versions of Homebrew no longer bundle `Boost <https://www.boos
144144
145145
cmake -DGDAL_USE_LIBKML=OFF ..
146146
147+
The following commands have been used to successfully build GDAL using dependencies fetched
148+
from Conda that supports unit tests. They assume that you have git, cmake and ninja installed
149+
and that you're building from a `build` directory that you've created in the main directory
150+
of the cloned GDAL repository.
151+
152+
.. code-block:: bash
153+
154+
conda create -c conda-forge --only-deps -n gdal libgdal-core
155+
conda activate gdal
156+
conda install setuptools swig pytest filelock numpy
157+
cmake -G Ninja -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DGDAL_USE_LIBKML=OFF ..
158+
. ../scripts/setdevenv.sh
159+
ninja
147160
148161
CMake general configure options
149162
+++++++++++++++++++++++++++++++

0 commit comments

Comments
 (0)