Friday, March 5, 2010

Run mex functions using opencv 2.0 code with MATLAB R2009b

We get this error:

??? Invalid MEX-file '/home/srimal/svnworking/renderer/mexLossC/mexLossC.mexglx':
/home/srimal/MatlabR2009b/bin/glnx86/../../sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by
/usr/local/lib/libcvaux.so.4).

Solution:

~/MatlabR2009b/sys/os/glnx86
ln -s /usr/lib/libstdc++.so.6.0.13 ~/MatlabR2009b/sys/os/glnx86/libstdc++.so.6

No comments: