From 6600f3fb5f35d956eb879bf3d7d2226ea0c838aa Mon Sep 17 00:00:00 2001 From: Alexander Borsuk <170263+biodranik@users.noreply.github.com> Date: Sun, 4 Dec 2022 13:41:13 +0100 Subject: [PATCH] [docs] Mentioned workaround for not enough memory build errors --- docs/INSTALL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 4e606835d7..e436c5af62 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -178,6 +178,14 @@ Besides _desktop_ there are other targets like _generator_tool_, to see a full l tools/unix/build_omim.sh -d help ``` +#### Build issues + +- If you get "not enough memory" errors during builds, you may disable + [CMake Unity Builds](https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.html) by `export UNITY_DISABLE=1` + or by passing `-DUNITY_DISABLE=1` option to `cmake` invocation. Or you can reduce Unity build batch size from + the default `50` to a lower value (2-16) by `export UNITY_BUILD_BATCH_SIZE=8`. + Note that these changes may significantly increase the build time. + ### Running The generated binaries appear in `../omim-build-`.