Please note, use the applicable tag, when cloning, and release version when getting the latest depth compute library files for the embedded system. As of writing, version 5.0.0 of the release is available as well as tag v5.0.0.
- CMake
- CMake:
sudo apt install cmake
Please note, ensure you are using the intended branch.
git clone --branch v5.0.0 --depth 1 https://github.com/analogdevicesinc/ToF
cd ToF
git submodule update --init
mkdir build && cd build
cmake -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" -DCMAKE_BUILD_TYPE=Release ..
make -j4
See here for details on the cmake options.
- OpenCV
- OpenGL
- OpenCV:
sudo apt install libopencv-contrib-dev
sudo apt install libopencv-dev
- OpenGL:
sudo apt install libgl1-mesa-dev libglfw3-dev
Please note, ensure you are using the intended branch.
git clone --branch v5.0.0 --depth 1 https://github.com/analogdevicesinc/ToF
cd ToF
git submodule update --init
mkdir build && cd build
cmake -DWITH_EXAMPLES=on -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- Please check the readme files for each type of binding in the bindings directory.
Requirements:
- Doxygen
- Graphviz
sudo apt-get install doxygen graphviz
In order to generate the doxygen documentation you must compile the sdk in the following way:
cmake -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets;/opt/opencv" -DWITH_DOC=on -DCMAKE_BUILD_TYPE=Release ..
make -j4 doc
After compilation, the documentation can be found at this path:
build/doc/doxygen_doc/html/index.html