Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Fix build on Android NDK #18

Merged
merged 2 commits into from
Sep 24, 2022
Merged

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Sep 20, 2022

Android NDK does not have executables in the format of aarch64-linux-android-clang++. Instead it provides executables in the format aarch64-linux-android${ANDROID_ABI}-clang++. Since CMake 3.21 all of this is handled by the toolchain file within Android NDK itself, so there is no need to override the compilers anymore.

Additionally, on Android pthread functionality is built into the C library and linking to pthread is not only needed but results in link failures.

Android NDK does not have executables in the format of
aarch64-linux-android-clang++. Instead it provides executables in the
format aarch64-linux-android${ANDROID_ABI}-clang++. Since CMake 3.21 all
of this is handled by the toolchain file within Android NDK itself, so
there is no need to override the compilers anymore.
On Android pthread functionality is built into the C library and linking
to pthread is not only needed but results in link failures.
@BrunoLevy BrunoLevy merged commit 336a33c into BrunoLevy:main Sep 24, 2022
@p12tic p12tic deleted the build-android branch September 25, 2022 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants