For windows, you need:
For Linux, it is recommended to use Docker to build the Orbbec SDK, therefor, you only need:
For linux, if you want to build Orbbec SDK by using native toolchain, you need:
The Orbbec SDK souce code are available on GitHub. You can clone the Orbbec SDK by using the following commands:
git clone https://github.com/Orbbec/OrbbecSDK-dev.git
You can build Orbbec SDK by using the following commands:
Windows: Use PowerShell to execute the build commands.
Linux: Use a terminal emulator to execute the build commands
cd OrbbecSDK-dev
mkdir build
cd build
cmake ..
cmake --build . --config Release
If you are using Docker, you can using the script we provide to build Orbbec SDK.
cd OrbbecSDK-dev/scripts/build
./build_linux_docker.sh
# `./build_linux_docker.sh aarch64` for arm64
More information about how to use Docker, please refer to README.md.
After you build the Orbbec SDK, you can find the executable file in the directory OrbbecSDK-dev/build/win_XX/bin
or OrbbecSDK-dev/build/linux_XX/bin
.
For windows,you need to register the metadata associated with frames (this includes things like timestamps and other information about the video frame).
Please install it using the following commands:/scripts/env_setup/install_udev_rules.sh
cd OrbbecSDK-dev/scripts/env_setup
sudo chmod +x ./install_udev_rules.sh
sudo ./install_udev_rules.sh
sudo udevadm control --reload-rules && udevadm trigger
If the camera needs to be powered on, plug in the power cable and connect the camera to the host using USB.
cd bin
.\ob_XXX # .\ob_XXX.exe for windows
More information about the examples of Orbbec SDK, please refer to examples.