summaryrefslogtreecommitdiffstats
path: root/cmake/README.md
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-06-04 15:19:00 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-06-04 13:57:50 +0000
commit44f30db5c1aa9d54208c8bc7f10b064fd117111d (patch)
treed38b154cd560f346f3bf3da17e2e390720711b53 /cmake/README.md
parent653666008c6822376c59fa08173d156c80bab486 (diff)
Fix linking QtGui on Android
Until we have some convenience in place, it is strictly necessary to set the NDK API level, otherwise the libraries from vcpkg are statically built against a newer libc headers than what we finally link against. This also means that we can remove the manual libc linkage again. Change-Id: If1f2eec4df5ed800ac6b060561edff89236891e9 Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'cmake/README.md')
-rw-r--r--cmake/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/README.md b/cmake/README.md
index e7c7ced227..610f7eea27 100644
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -133,7 +133,7 @@ Vcpkg for Android can be set up using the following steps:
* Set the ``ANDROID_NDK_HOME`` environment variable to the path where you have installed the Android NDK.
* Build Qt dependencies: ``vcpkg install zlib pcre2 harfbuzz freetype openssl zstd``
-When running cmake in qtbase, pass ``-DCMAKE_TOOLCHAIN_FILE=/path/to/your/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DVCPKG_TARGET_TRIPLET=$VCPKG_DEFAULT_TRIPLET -DQT_HOST_PATH=/path/to/your/host/build``
+When running cmake in qtbase, pass ``-DCMAKE_TOOLCHAIN_FILE=/path/to/your/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DVCPKG_TARGET_TRIPLET=$VCPKG_DEFAULT_TRIPLET -DQT_HOST_PATH=/path/to/your/host/build -DANDROID_NATIVE_API_LEVEL=21``
# Debugging CMake files