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

Compilation failed in Android Studio (NDK) #41

Open
rsyzee opened this issue Dec 27, 2022 · 2 comments
Open

Compilation failed in Android Studio (NDK) #41

rsyzee opened this issue Dec 27, 2022 · 2 comments

Comments

@rsyzee
Copy link

rsyzee commented Dec 27, 2022

I build ollvm in Windows using MinGw. And merged llvm with ndk r23-c.

When i build my c++ project in android studio :
ld: error: unable to find library -lgcc
Trying to add -nostdlib but still error'
ld: error: unable to find library -latomic

@ghost
Copy link

ghost commented Mar 3, 2023

For me, I always get this error. Why is libunwind.a missing?

Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
Android NDK: ERROR:E:/AndroidSDK/ndk/23.2.8568313/build//../sources/cxx-stl/llvm-libc++abi/Android.mk:unwind: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that /lib/linux/arm/libunwind.a exists  or that its path is correct
E:/AndroidSDK/ndk/23.2.8568313/build//../build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

@ghost
Copy link

ghost commented Mar 8, 2023

I got it working by compiling exe with ndk source using Linux mint 21 https://bbs.pediy.com/thread-271271.htm

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