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

Revision history [back]

Short Answer:

export LD_PRELOAD=/opt/ros/groovy/lib/libimage_transport.so

(or your path to the .so file)

Long Answer:

There seems to be a bug in the Python-based dynamical loading system.

Say you create a library “foo” that (includes and) links to image_transport.

Now you create an executable “bar”, that links dynamically to foo.so. So far no problem.

but.,

if you create an executable “baz”, that uses dynamical loading and unloading of libraries

...

lib_handle = dlopen("/path/to/foo.so", RTLD_LAZY);

... it will throw exactly this error, unless you do the workaround with preloading.

Maybe your problem is related to this.