From 53e74a8070dc4aa42460302e9100d1fb0f20cde1 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Sun, 24 Mar 2019 22:18:42 -0400 Subject: [PATCH] further updated MATLAB instructions to remove inconsistencies and oddities --- matlab/README-gtsam-toolbox.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/matlab/README-gtsam-toolbox.md b/matlab/README-gtsam-toolbox.md index e232c78c5..66a02e969 100644 --- a/matlab/README-gtsam-toolbox.md +++ b/matlab/README-gtsam-toolbox.md @@ -4,14 +4,14 @@ http://borg.cc.gatech.edu/projects/gtsam -This is the GTSAM MATLAB toolbox, a MATLAB wrapper around the GTSAM C++ library. To build it, enable GTSAM_INSTALL_MATLAB_TOOLBOX in CMake. +This is the GTSAM MATLAB toolbox, a MATLAB wrapper around the GTSAM C++ library. To build it, enable `GTSAM_INSTALL_MATLAB_TOOLBOX=ON` in CMake. The interface to the toolbox is generated automatically by the wrap tool which directly parses C++ header files. The tool generates matlab proxy objects together with all the native functions for wrapping and unwrapping scalar and non scalar types and objects. The interface generated by the wrap tool also redirects the standard output stream (cout) to matlab's console. -## Newer Ubuntu versions unsupported by MATLAB (later than 10.04) +## Ubuntu -If you have a newer Ubuntu system, you must make a small modification to your MATLAB installation, due to MATLAB being distributed with an old version of the C++ standard library. Delete or rename all files starting with `libstdc++` in your MATLAB installation directory, in paths: +If you have a newer Ubuntu system (later than 10.04), you must make a small modification to your MATLAB installation, due to MATLAB being distributed with an old version of the C++ standard library. Delete or rename all files starting with `libstdc++` in your MATLAB installation directory, in paths: /usr/local/MATLAB/[version]/sys/os/[system]/ /usr/local/MATLAB/[version]/bin/[system]/ @@ -48,9 +48,9 @@ Missing symbol 'mexCallMATLABWithObject' required by '/usr/local/gtsam_toolbox/g ``` run following shell line ```sh -export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libprotobuf.so.9 +export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ``` -before you run MATLAB. +before you run MATLAB from the same shell. This mainly happens if you have GCC >= 5 and newer version MATLAB like R2017a.