@@ -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 :