/ usr / include is missing from the NDK (r16b)

I just installed NDK (r16b) using the SDK manager, but does it exist ~/Library/Android/sdk/ndk-bundle/platforms/android-24/arch-x86/usr/include(I'm on OS X), which should exist? I can't seem to find him. With me ~/Library/Android/sdk/ndk-bundle/platforms/android-24/arch-x86/usr/lib. The following is the result of working treeat /arch-x86:

arch-x86 tree
.
└── usr
    └── lib
        β”œβ”€β”€ crtbegin_dynamic.o
        β”œβ”€β”€ crtbegin_so.o
        β”œβ”€β”€ crtbegin_static.o
        β”œβ”€β”€ crtend_android.o
        β”œβ”€β”€ crtend_so.o
        β”œβ”€β”€ libEGL.so
        β”œβ”€β”€ libGLESv1_CM.so
        β”œβ”€β”€ libGLESv2.so
        β”œβ”€β”€ libGLESv3.so
        β”œβ”€β”€ libOpenMAXAL.so
        β”œβ”€β”€ libOpenSLES.so
        β”œβ”€β”€ libandroid.so
        β”œβ”€β”€ libc.a
        β”œβ”€β”€ libc.so
        β”œβ”€β”€ libcamera2ndk.so
        β”œβ”€β”€ libdl.so
        β”œβ”€β”€ libjnigraphics.so
        β”œβ”€β”€ liblog.so
        β”œβ”€β”€ libm.a
        β”œβ”€β”€ libm.so
        β”œβ”€β”€ libmediandk.so
        β”œβ”€β”€ libstdc++.a
        β”œβ”€β”€ libstdc++.so
        β”œβ”€β”€ libvulkan.so
        β”œβ”€β”€ libz.a
        └── libz.so

2 directories, 26 files

Is there any way to create a directory include? I'm really looking for a file~/Library/Android/sdk/ndk-bundle/platforms/android-24/arch-x86/usr/include/android/api-level.h

+4
source share
1 answer

The latest SDK api-level.his in

~/Library/Android/sdk/ndk-bundle/sysroot/usr/include/android/api-level.h

In the future, if you cannot find one file due to a change in the directory hierarchy, you can do the following to find out

$ cd ~/Library/Android/sdk/ndk-bundle
$ find . -name "api-level.h"
+3
source

Source: https://habr.com/ru/post/1691563/


All Articles