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

Matlab Engine and ROS Library Incompatible?

asked 2012-05-05 05:28:18 -0500

mikemodanoxxx gravatar image

updated 2012-05-05 05:28:44 -0500

Hi there,

i am trying to establich a connection between Matlab 2012a and ROS fuerte. For the beginning i tried to modify the Listener/Talker tutorial. I just included the matlab api in the listener.cpp. It took me some time until i could compile the package with make. I changed the CMakeLists.txt in the beginner_tutorials folder in the following way and it seemed to work:



But when i want to start a node now, i get the following errors:

/home/simon/ros_workspace/beginner_tutorials/bin/listener: /usr/local/MATLAB/R2012a/bin/glnx86/ version `GLIBCXX_3.4.15' not found (required by /opt/ros/fuerte/lib/

Are there some libs that are incompatible? Is there a way to fix that?

edit retag flag offensive close merge delete


I think you are using ipc bridge to connect if I am not wrong. I posted the solution to this problem in your previous question . do check it.

sj haque gravatar image sj haque  ( 2012-05-05 05:33:40 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-06-03 20:02:46 -0500

rmattes gravatar image

MATLAB bundles its own, which is generally older than the system-provided version. In my case, MATLAB is bundling, whereas my distribution provides

You can try to replace the symlinks to in /usr/local/MATLAB/R2012a/bin/glnx86 and /usr/local/MATLAB/R2012a/sys/os/glnx86 to point to your system-installed version in /usr/lib. README.libstdc++ in /usr/local/MATLAB/R2012a/sys/os/glnx86 seems to indicate that at least that version is just included as a convenience. As long as the SOVERSION is the same and your system version is newer, you should be OK (and if MATLAB doesn't start, just put the symlinks back to the libstdc++ in your matlab installation folder.) I just changed the symlinks on my MATLAB installation to point to the distribution's libstdc++, it looks like I don't have any issues.

edit flag offensive delete link more

answered 2012-06-03 12:36:58 -0500

tfoote gravatar image

If you're using a different glibc version on your system from the one the debs are built against you will need to compile all of ROS from source against your custom version.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-05-05 05:28:18 -0500

Seen: 712 times

Last updated: Jun 03 '12