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.
analog@xaviernx:~/workspace/aditof_sdk$ git checkout master
analog@xaviernx:~/workspace/aditof_sdk$ git pull
analog@xaviernx:~/workspace/aditof_sdk$ cd build
analog@xaviernx:~/workspace/aditof_sdk/build$ cmake -DXAVIERNX=1 ..
analog@xaviernx:~/workspace/aditof_sdk/build$ make -j4
analog@xaviernx:~/workspace/aditof_sdk$ git checkout master
analog@xaviernx:~/workspace/aditof_sdk$ git pull
analog@xaviernx:~/workspace/aditof_sdk$ cd build
analog@xaviernx:~/workspace/aditof_sdk/build$ cmake -DXAVIERNX=1 -DUSE_FXTOF1=1 ..
analog@xaviernx:~/workspace/aditof_sdk/build$ make -j4
The SD card image already contains the customized Linux kernel image and required devicetree to support the ToF Camera connected to CSI connector on Xavier. If rebuilding the kernel or devicetree is needed please follow the instructions.