-
Notifications
You must be signed in to change notification settings - Fork 86
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
Cannot compile to Android due to Clang errors #279
Comments
We switched from GCC to Clang due GCC being phased out for Android development - see #266. It is interesting to note that you have issues with it though as we check for the tool to be present. Can you post the actual error message here or as a gist? Also what platform are you on and what version of Clang are you using? For the unrelated question, I'd like to ask you to file a separate issue. Not all APIs are complete [can't tell if 28 is on top of my head] and thus tools have to be found by going to earlier versions - see android/host_linux#L42 or the macOS equivalent. |
here's output of make: https://pastebin.com/M4qpcgS2 I'm using Arch Linux. |
The |
Also can you build the app on your native platform? |
I can build the app in linux mode yes. |
Okay, but that is likely done with GCC, so something in clang is broken (as it doesn't seem linked completely according to the error reported above). - If libncurses is not installed then install it and try again? |
I tried reinstalling ncurses and clang, but neither works |
Not |
It seems that for Arch, libncurses comes with the ncurses |
Your solution might be discussed here: android/ndk#574, which refers to an issue with clang assuming ncurses 5 being available, while Arch Linux only has version 6; maybe try adding |
I ran
./configure Calculator android verbose
make clean
make
and it says Clang cannot create executables
is there any way I can make it use gcc if Clang keeps not working?
Related, but how can I make it compile with android 9 - api 28, it says it switches to api 24 as a warning
The text was updated successfully, but these errors were encountered: