- CMake
- Glog v0.3.5
- Libwebsockets v3.2.3
- OpenSSL
- Protocol Buffers v3.9.0
NOTE: To speed up the process please replace the value from the -j argument in the make/cmake command with the number of cores in your system
- CMake:
sudo apt install cmake
- Glog:
git clone --branch v0.6.0 --depth 1 https://github.com/google/glog
cd glog
mkdir build_0_3_5 && cd build_0_3_5
cmake -DWITH_GFLAGS=off -DCMAKE_INSTALL_PREFIX=/opt/glog ..
sudo make -j4 && sudo make install
- Libwebsockets:
sudo apt-get install libssl-dev
git clone --branch v3.2.3 --depth 1 https://github.com/warmcat/libwebsockets
cd libwebsockets
mkdir build_3_2_3 && cd build_3_2_3
cmake -DLWS_STATIC_PIC=ON -DCMAKE_INSTALL_PREFIX=/opt/websockets ..
sudo make -j4 && sudo make install
- protobuf:
git clone --branch v3.9.0 --depth 1 https://github.com/protocolbuffers/protobuf
cd protobuf
mkdir build_3_9_0 && cd build_3_9_0
cmake -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/opt/protobuf ../cmake
sudo make -j4 && sudo make install
git clone https://github.com/analogdevicesinc/aditof_sdk
cd aditof_sdk
mkdir build && cd build
cmake -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
make -j4
- OpenCV
- OpenCV:
sudo apt install libopencv-contrib-dev
sudo apt install libopencv-dev
cd aditof_sdk
mkdir build && cd build
cmake -DWITH_EXAMPLES=on -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
make -j4
- Please check the readme files for each type of binding in the bindings directory.
OpenCV needs to be built manually in order to visualize pointCloud data because the prebuild libraries do not come with the viz module installed. The steps required for building and including the required dependencies are presented below:
Requirements:
- OpenCV 4.5.0
sudo apt-get install libgtk-3-dev libvtk6-dev
git clone --branch 4.5.0 --depth 1 https://github.com/opencv/opencv.git
git clone --branch 4.5.0 --depth 1 https://github.com/opencv/opencv_contrib.git
cp -r ./opencv_contrib/modules/viz ./opencv/modules/
cd opencv
mkdir build_4_5_0 && cd build_4_5_0
cmake -DWITH_VTK=ON -DBUILD_opencv_viz=ON -DBUILD_opencv_world=ON -DCMAKE_PREFIX_PATH="/opt/vtk" -DCMAKE_INSTALL_PREFIX="/opt/opencv" ..
sudo make -j4 && sudo make install
Compile the sdk and add OpenCV to CMAKE_PREFIX_PATH:
cd aditof_sdk
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets;/opt/opencv" -DWITH_EXAMPLES=on ..
make -j4
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 ..
make -j4 doc
After compilation, the documentation can be found at this path:
build/doc/doxygen_doc/html/index.html