Other tutorials for this camera are relatively old. Here I share the process of successfully setting up the environment in 2023.
First, you need to install C++ opencv. I recommend another tutorial on this site. I adjusted it according to this:
I followed this tutorial to install and ended up missing the opencv.pc file. I solved it by following another article:
Solving OpenCV installation and configuration (Alibaba Cloud ESCserver) and its errors under Ubuntu
Last terminal input
pkg-config opencv --modversion
Outputting the version number is successful
The next step is to install the c++ sdk. The links to many other tutorials on this site have expired, but I found the current download link:
https://developer.orbbec.com.cn/download.html?id=75&menushow=1
SDK finds the corresponding version of c&c++ download
After downloading, unzip it
Run the install.sh inside
Create a build folder in the decompressed directory, enter the build directory, and enter:
cmake ..
make
There is an executable file in the bin directory under the build directory.