Open Senna-chan opened 4 years ago
Sure, it's possible to map the C++ API. We just need someone to do it. :) Start from here: https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes It should also help to refer to the presets for librealsense 1.x.
Please send any modifications you have for CUDA and ARM as a pull request as well! Thanks
/cc @cansik
Is this covered by https://github.com/bytedeco/javacpp-presets/tree/master/librealsense2 ?
No, not at the moment:
∗ Bindings are currently available only for the C API of librealsense2.
After using opencv with librealsense for a while I wanted to use the more direct librealsense api. However I soon found out that the current preset version is based on the C api instead of the C++ api.
Is it possible to use the C++ version? When I tried to change it I got the error
[ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.2-SNAPSHOT:parse (javacpp-parser) on project librealsense2: Failed to execute JavaCPP Builder: /home/farmbot/sourcebuilding/javacpp-presets-master/librealsense2/cppbuild/linux-arm64/include/librealsense2/hpp/rs_export.hpp:28:Could not parse declaration at '=' -> [Help 1]
As a sidenote. Librealsense can use CUDA and does work on ARM64 after a bit of tweaking and file editing. It may be beneficial to people to have that exposed.