ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

How can I tell a rosjava node where to look for .so files?

asked 2011-12-06 06:18:24 -0600

updated 2011-12-06 09:21:05 -0600

I have a Java ROS node that depends on a 3rd party .so file that I've packaged up as a separate package.

Typically the cpp-exports in the manifest tell other C/C++ projects how to link to those libraries. But in the case of Java while providing paths to jar files is clear, how to point to an .so is less clear.

So far I've:

  • I tried blindly using the jar path method but to the .so dir which failed.
  • I tried using LD_LIBRARY_PATH which seemed to help it figure out where to look, but seemed to break other things, and seems ill advised anyway.

TLDR: Is there a clean way to provide, to rosjava nodes, a path to .so file dependencies via the manifest exports?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-12-07 00:17:32 -0600

damonkohler gravatar image

This isn't currently supported by the rosjava build system. You can try System.load("/absolute/path/to/lib")

edit flag offensive delete link more

Comments

Unfortunately in my case the .so being loaded is by another 3rd party lib, so changing the load call is not an option for me.
Asomerville gravatar image Asomerville  ( 2011-12-07 04:39:58 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2011-12-06 06:18:24 -0600

Seen: 530 times

Last updated: Dec 07 '11