From b42c436df0ef2f6c5596f177e4bdcba0d69bb6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 15 Feb 2016 21:28:32 +0100 Subject: [PATCH] doc: suggest static building for iOS. --- doc/building.dox | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/building.dox b/doc/building.dox index f8a66421f..a0fcf663f 100644 --- a/doc/building.dox +++ b/doc/building.dox @@ -532,7 +532,11 @@ platform file, so be sure to properly set **absolute** path to `modules/` directory containing `Platform/iOS.cmake`. Set `CMAKE_INSTALL_PREFIX` to prefix where you store other iOS dependencies such as Corrade or SDL2. -OpenGL ES 2.0 is enabled by default, switch to 3.0 by disabling `TARGET_GLES2`. +As every application is in its own sandbox, it doesn't make sense to build +shared libraries (although it is supported). Enable `BUILD_STATIC` to build +static libraries. You might also have problems using dynamic plugins, enable +`BUILD_PLUGINS_STATIC` to build also plugins as static. OpenGL ES 2.0 is +enabled by default, switch to 3.0 by disabling `TARGET_GLES2`. mkdir build-ios && cd build-ios cmake .. \ @@ -541,6 +545,8 @@ OpenGL ES 2.0 is enabled by default, switch to 3.0 by disabling `TARGET_GLES2`. -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk \ -DCMAKE_OSX_ARCHITECTURES="arm64;armv7;armv7s" \ -DCMAKE_INSTALL_PREFIX=~/ios-libs \ + -DBUILD_STATIC=ON -DBUILD_PLUGINS_STATIC=ON \ + -DTARGET_GLES2=OFF \ -DWITH_SDL2APPLICATION=ON \ -G Xcode cmake --build .