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

[BUG] sysroot headers missing since r22? #1407

Closed
tmm1 opened this issue Dec 23, 2020 · 3 comments
Closed

[BUG] sysroot headers missing since r22? #1407

tmm1 opened this issue Dec 23, 2020 · 3 comments
Labels

Comments

@tmm1
Copy link

tmm1 commented Dec 23, 2020

$ ls -d /usr/local/share/android-sdk/ndk/21.3.6528147/sysroot
/usr/local/share/android-sdk/ndk/21.3.6528147/sysroot

$ ls -d /usr/local/share/android-sdk/ndk/22.0.7026061/sysroot
ls: cannot access '/usr/local/share/android-sdk/ndk/22.0.7026061/sysroot': No such file or directory
@rprichard
Copy link
Collaborator

The sysroot moved to <NDK>/toolchains/llvm/prebuilt/<host-tag>/sysroot starting with NDK r19. r22 removed the deprecated sysroot and platforms directories from the top-level of the NDK.

By using the appropriate driver (e.g. toolchains/llvm/prebuilt/<host-tag>/bin/aarch64-linux-android21-clang), it shouldn't be necessary to do things like pass --sysroot=, include the STL header directories, etc. The driver should handle all that stuff implicitly.

@tmm1
Copy link
Author

tmm1 commented Dec 24, 2020

Thank you for the explanation

@tmm1 tmm1 closed this as completed Dec 24, 2020
@DanAlbert
Copy link
Member

Thank you for the explanation

The changelogs are helpful for things like this :) I know Studio doesn't show them and that's frustrating, but we publish them on our wiki and they always include announcements for things like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants