How to add android header files in 'out/soong/ndk/sysroot/usr/include' directory

685 views
Skip to first unread message

Jay Jeon

unread,
Jan 21, 2020, 2:13:57 AM1/21/20
to Android Building
Hi,

I was trying to use the header files in './out/soong/ndk/sysroot/usr/include' directory by building some libraries, but I didn't find some android header files.

I want to add the android header files in './out/soong/ndk/sysroot/usr/include' directory.

: fatal error: 'hardware/thermal.h' file not found
: fatal error: 'hardware/sensors.h' file not found
: fatal error: 'system/graphics.h' file not found

Please let me know how can I add the android header files in that directory at build time.

Dan Willemsen

unread,
Jan 21, 2020, 2:28:30 AM1/21/20
to Android Building
out/soong/ndk/sysroot/usr/include is an internal implementation detail of the build system, and only contains headers from the NDK. The headers you've listed are not part of the NDK, and require you to be built within the Android build system with Android.bp (or .mk). Then you can use the libhardware_headers header library to access them.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/21facca5-a92e-4b26-b1f8-afa9102c0bf4%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages