Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.73 KB

build_instructions.md

File metadata and controls

42 lines (31 loc) · 1.73 KB

Raspberry Pi Build Instructions

Building the SDK only

SDK dependencies

To build the SDK and run the included applications and example code the following dependencies must be installed in the system:

  • v4l-utils
  • libopencv-dev
  • cmake
  • glog v0.3.5
  • libwebsockets v3.2.3
  • protocol buffers v3.9.0

The SD card image already contains all the SDK dependencies and there's no need to install them again. To update and build the SDK just follow the steps below.

AD-96TOF1-EBZ

pi@raspberry:~/workspace/github/aditof_sdk$ git checkout master
pi@raspberry:~/workspace/github/aditof_sdk$ git pull
pi@raspberry:~/workspace/github/aditof_sdk$ cd build
pi@raspberry:~/workspace/github/aditof_sdk/build$ cmake -DRASPBERRYPI=1 ..
pi@raspberry:~/workspace/github/aditof_sdk/build$ make -j4

AD-FXTOF1-EBZ

pi@raspberry:~/workspace/github/aditof_sdk$ git checkout master
pi@raspberry:~/workspace/github/aditof_sdk$ git pull
pi@raspberry:~/workspace/github/aditof_sdk$ cd build
pi@raspberry:~/workspace/github/aditof_sdk/build$ cmake -DRASPBERRYPI=1 -DUSE_FXTOF1=1 ..
pi@raspberry:~/workspace/github/aditof_sdk/build$ make -j4

Note that if you have a Rev B module, you also need to run cmake with '-DWITH_REVB=1'

Linux Kernel

A customized kernel is provided for the Raspberry Pi including the V4L2 driver for the ADDI9036 and other improvements to support all the ADI depth camera features.

The devicetree for RPi can be found here: rpi-addi9036-overlay.dts