Skip to content

[BUG] sysroot headers missing since r22? #1407

Closed

Description

@tmm1
$ 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

Activity

  1. rprichard commented on Dec 24, 2020

    @rprichard
    Contributor

    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.

  2. tmm1 commented on Dec 24, 2020

    @tmm1
    Author

    Thank you for the explanation

  3. DanAlbert commented on Jan 5, 2021

    @DanAlbert
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions