Skip to content

Android Cross Compile Error! (error: linker cc not found) #63

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

Open
huangzhengxiang opened this issue Feb 28, 2025 · 0 comments
Open

Android Cross Compile Error! (error: linker cc not found) #63

huangzhengxiang opened this issue Feb 28, 2025 · 0 comments

Comments

@huangzhengxiang
Copy link

During Cross Compilation, rust comes up with an error:

error: linker cc not found
|
= note: No such file or directory (os error 2)

However, the toolchain path is correctly set. I'm completely confused! Please give me a help when it's convenient for you!

Host Platform: Ubuntu 22.04
Ndk version: 27.0.12077973

command used
export PATH=${PATH}:/.cargo/bin
export ANDROID_NDK=
/Android/Sdk/ndk/27.0.12077973/
cmake .. -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake
-DANDROID_ABI=arm64-v8a
-DANDROID_PLATFORM=android-24
-DCMAKE_INSTALL_PREFIX=cmake-out-android
-DCMAKE_BUILD_TYPE=Release
make

Best Regards

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

No branches or pull requests

1 participant