O'Reilly logo

Android for the BeagleBone Black by Aravind Prakash, Andrew Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the Android NDK for PacktHAL

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 spidev driver.

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.

Tip

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required