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 3.21 or higher compilation error #76

Open
lzhiyong opened this issue Dec 5, 2021 · 1 comment
Open

cmake 3.21 or higher compilation error #76

lzhiyong opened this issue Dec 5, 2021 · 1 comment
Labels
bug report Something isn't working

Comments

@lzhiyong
Copy link
Owner

lzhiyong commented Dec 5, 2021

Starting from Android NDK r23, toolchain files will be delegated to CMake's built-in support when using CMake 3.21 or higher, but natively compiling on an Android host doesn't supported by cmake, so the cmake can't detect the Ndk clang compiler correctly, more infomation please see https://developer.android.com/ndk/guides/cmake

If you use termux's cmake or other, you need to patch it at cmake/share/cmake-xxx/Modules/Platform, please see patches/cmake, or use the cmake provided by me, which has been patched at android-sdk/cmake

@lzhiyong
Copy link
Owner Author

lzhiyong commented Dec 5, 2021

build_error

@lzhiyong lzhiyong changed the title cmake compilation error cmake 3.21 or higher compilation error Dec 5, 2021
@lzhiyong lzhiyong added cmake 3.21 bug report Something isn't working and removed cmake 3.21 labels Dec 21, 2021
@lzhiyong lzhiyong mentioned this issue Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant