bytedeco / javacpp-presets

The missing Java distribution of native C++ libraries
Other
2.65k stars 737 forks source link

librealsense2 api #808

Open Senna-chan opened 4 years ago

Senna-chan commented 4 years ago

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.

saudet commented 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

bradh commented 3 years ago

Is this covered by https://github.com/bytedeco/javacpp-presets/tree/master/librealsense2 ?

saudet commented 3 years ago

No, not at the moment:

∗ Bindings are currently available only for the C API of librealsense2.