Thank you underdoeg.
I tried to compile it using this cmake, but I found the following issue:
- libopenni and libopenni2 are not found.
I created FindOpenNI.cmake and FindOpenNI2.cmake but I was not able to locate the openni2 includes.
Finally I compiled it with NetBeans using the XnLib from the OpenNI2 github code.
I had to make some modifications to the code:
- printf_s -> printf.
- It was not able to find the Status struct and I had to add it to the main file.
When running it with 1 camera, it works fine.
When running it with 2 cameras, I receive the following error: "Open Device ByPath Error 2bc5/0401@1/70
". I have 2 cameras with the same ID because these are old Orbbec Astra versions. Could it be the reason of the problem received?