Closed GoogleCodeExporter closed 9 years ago
Original comment by arnaud.barre
on 1 Feb 2011 at 6:14
This problem is due to the embedded libstc++ dynamic library in Matlab. Instead
of using the library in /usr/lib, Matlab forces to use its own, and then has an
incompatibility with BTK libraries linked to /usr/lib/listdc++.so.6.
You can try to link MEX files to libstdc++ used by Matlab. But Matlab said you
that a symbol is not defined (_ZNKSt5ctypeIcE13_M_widen_initEv) which is due to
an incompatibility between the version of the compiler (GCC 4.5 for me vs GCC
4.2.3 for Matlab r2009a).
Another method is to remove the files libstdc++.* from the folder
<MATLAB__ROOT>/sys/os/glnxa64. Even if I'm not really happy with that (Cannot
create redistribuable package for Linux 64-bit), this solution is working. So,
the user has to manually (re)move the files libstdc++.* or maybe it should be
automatically moved from CMake during the installation step.
Original comment by arnaud.barre
on 1 Feb 2011 at 9:24
Original comment by arnaud.barre
on 3 Feb 2011 at 9:28
Original issue reported on code.google.com by
arnaud.barre
on 1 Feb 2011 at 5:57