Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a9c11edf authored by Nicolas Bellot's avatar Nicolas Bellot Committed by hhakim
Browse files

[gen_doc]Annexes : MATLAB MEX

parent 39ea4c04
Branches
Tags
No related merge requests found
......@@ -10,11 +10,29 @@ Here is a list of packages used in the FA$\mu$ST project. The installation of th
\end{itemize}
\section{Compatibility between MATLAB and GCC compiler}\label{sec:ANNEXECompatibilityMatlabCompiler}
Adjust your version of GCC compiler in order to run the installation properly. The use of the mex function in Matlab requires that you have a third-party compiler installed on your system. The latest version of Matlab (2016a in our case) only supports up to GCC 4.7 (see \url{http://fr.mathworks.com/support/compilers/R2016a/index.html?sec=glnxa64} for more detail).
If your gcc is too recent,
you have 2 choices available, make a little modification to your installed Matlab or install a older version of gcc.
The latest version of Matlab (2016a in our case) only supports up to GCC 4.7 (see \url{http://fr.mathworks.com/support/compilers/R2016a/index.html?sec=glnxa64} for more detail).
To temporally change your version of cc and cxx compiler, you can modify the environment variable CC and CXX. For that, export your CC and CXX variables corresponding to gcc and g++ binaries path :
\subsection{slightly modify Matlab installation}
As it is explained in this MathWorks forum \url{https://fr.mathworks.com/matlabcentral/newsreader/view_thread/255846}, you can change the /usr/local/matlabRXXXXx/sys/os/glnx64/libstdc++.so.6,
\begin{itemize}
\item find your gcc and g++ version path using \texttt{which} command in a terminal :
\item For example, under UNIX system, you can type the following command (with adapting the path to your config):
\begin{lstlisting}
> cd /usr/local/matlabRXXXXx/sys/os/glnx64/
> ln -s /usr/lib/libstdc++.so.6 libstdc++.so.6
\end{lstlisting}
\end{itemize}
\subsection{install older gcc compiler}
Adjust your version of GCC compiler in order to run the installation properly. The use of the mex function in Matlab requires that you have a third-party compiler installed on your system.
\begin{itemize}
\item find your gcc and g++ version path using \texttt{which} command in a terminal :
\lstset{style=customBash}
\begin{lstlisting}
> which gcc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment