Unfortunately, the Android Native Development Kit (NDK) is missing a kernel header file that is needed to build PacktHAL. The missing header describes the interface between user space apps and the generic SPI driver (
spidev, which you will use in Chapter 5, Interfacing with High-speed Sensors Using SPI). It is not the fault of the NDK that this header file is missing, as usually apps will never need direct access to the
As you are using an app to talk directly talk to the hardware, you will need to copy this missing header into your NDK installation.
For your convenience, we have included a copy of this header file in the PacktHAL source tarball. You only need to copy the file into your NDK ...