You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- The CXX compiler identification is Clang 18.0.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /Users/user/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- Check for working C compiler: /Users/user/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - broken -- Configuring incomplete, errors occurred! --- stderr CMake Error at /Applications/CMake.app/Contents/share/cmake-3.30/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler "/Users/user/Library/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang" is not able to compile a simple test program. It fails with the following output: Change Dir: '/Volumes/Internal/audio/aec-rs/target/aarch64-linux-android/release/build/aec-rs-sys-5aa0159efa82a17d/out/build/CMakeFiles/CMakeScratch/TryCompile-zIjAIO'
I can build clean rust project in the same way.
also, If I add the following in build.rs it compile successfully:
However I believe it should pick them automatically from cargo-ndk?
By the way, it also failed with wasm
Update:
// Must set when compile for Android// Variables comes from cargo-ndkifletOk(abi) = env::var("CARGO_NDK_ANDROID_TARGET"){
config.define("ANDROID_ABI", abi);}ifletOk(platform) = env::var("ANDROID_PLATFORM"){
config.define("ANDROID_PLATFORM", platform);}
I'm trying to build the crate aec-rs which uses
cmake-rs
(build.rs
) with CMake.But it failed with:
I can build clean rust project in the same way.
also, If I add the following in
build.rs
it compile successfully:Or the following:
However I believe it should pick them automatically from
cargo-ndk
?By the way, it also failed with wasm
Update:
Along with
This fix the issue. should I create PR?
The text was updated successfully, but these errors were encountered: