. . .
Raspberry Pi
This guide explains how to cross-compile Kaa C SDK for Raspberry Pi. Alternatively, you can build the Kaa C SDK directly on the Raspberry Pi board. For more information, see Linux guide for Kaa C SDK.
NOTE: This guide is verified against:
- Host OS: Ubuntu 14.04 LTS Desktop 64-bit
- Device: Raspberry Pi 3
- Target OS: Raspbian Jessie
Prerequisites
Perform the following instructions on the host machine:
-
Install build prerequisites.
sudo apt-get install cmake build-essential
-
Install toolchain.
mkdir rpi_root && cd rpi_root git clone https://github.com/raspberrypi/tools.git export ARMLINUX_GCC=$(pwd)/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc
Build Kaa application
After you installed the required dependencies and built the C SDK, you can build and run your Kaa application.
Since Raspberry runs on Linux, you can use the Linux guide to build and run your application.
NOTE: Make sure to specify correct compiler name when compiling your Kaa application for Raspberry Pi:
cmake -DKAA_MAX_LOG_LEVEL=3 -DCMAKE_C_COMPILER=$ARMLINUX_GCC -DBUILD_TESTING=OFF .. make