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

Revision history [back]

click to hide/show revision 1
initial version

Finally I found the problem.

It was a library mismatch due to ${LD_LIBRARY_PATH} path order to find liblog4cxx.so.10 library.

I had another software that uses its own liblog4cxx.so.10 and includes it from another path that was preeminent in order. I found it executing:

ldd /opt/ros/melodic/lib/librosconsole_log4cxx.so

to see which libraries it is using, and I got that liblog4cxx.so.10 was not the /lib/x86_64-linux-gnu/liblog4cxx.so.10.

The solution is to change the path order in ${LD_LIBRARY_PATH}, or execute roscore as:

LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH roscore

Problem solved.