bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.5k stars 584 forks source link

Error when running cppbuild.bash file #770

Closed EAOZONE closed 3 months ago

EAOZONE commented 3 months ago

When running a cppbuild.bash for our java wrapped repo we get this error error: no matching function for call to ‘franka::Robot::control(JavaCPP_us_ihmc_libfranka_libfrankaConfig_00024ControlCallback&, bool, jdouble&)’ We believe it has something to do with our definition of our class 'public static class ControlCallback extends FunctionPointer { static { Loader.load(); } public ControlCallback(Pointer p) { super(p); } protected ControlCallback() { allocate(); } private native void allocate(); public native Torques call(@ByRef @Const RobotState robotState, Duration duration);}' is there anything particuarly wrong that is obvious? We are wrapping libfranka(https://github.com/frankaemika/libfranka/tree/0.9.2) and are having trouble with the callbacks

saudet commented 3 months ago

Please try to use the Parser to see how it maps it

saudet commented 3 months ago

Duplicate of #771