stereolabs / zed-matlab

ZED SDK interface sample for Matlab

Home Page:https://www.stereolabs.com/docs/matlab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`GLIBCXX_3.4.19' not found

aseyfi opened this issue · comments

commented

Hi,

I am using Matlab R2016a on Ubuntu 14.04, with gcc and g++ 4.7.4. When I run ZED_Camera.m, I get this error:

=========SL_ZED_WITH_MATLAB=========
Invalid MEX-file '/home/ahmad/work/zed-matlab/matlab/mexZED.mexa64': /usr/local/MATLAB/R2016a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version
`GLIBCXX_3.4.19' not found (required by /usr/local/zed/lib/libsl_tracking.so)

Error in ZED_Camera (line 11)
mexZED('create', 720, 60);

Any suggestions?
Thank You,

hi @aseyfi,

It seems that your version of gcc is old, have you try to update it ?
Or may be this link could help you.

@aseyfi those suggestions helped me: mlapin/libsdca#1. More specifically I could run ZEDcamera.m after starting Matlab as follows: LD_PRELOAD=/PATH/TO/libstdc++.so.6 matlab&, with /PATH/TO found by locate libstdc++.so.6 (in my case /usr/lib/x86_64-linux-gnu/)

Just noticed that you directly communicated yourself in that reference I gave. Anyway, maybe for others who come accross that error: the above solution is working for Matlab 2015a.