Building the getfem++-3.1 interface for Matlab 2007b on Windows XP 32bit

Here I describe how I built the getfem_toolbox. This description is based on the original readme. I hope it is helpful. Feel free to correct this description!

Prerequisites

Building and Installing the Matlab Interface

Remarks

When using the graphical interface of matlab, a number of intermediate messages of getfem get lost (for example those displaying the progression of iterative solvers). You may want to launch matlab from the msys shell instead of launching it from its shortcut. In that case, those intermediate messages from getfem will be displayed in the msys window.

Building getfem++ from SVN on Ubuntu Jaunty 64bit for Matlab 2007b or 2008a

That's what I did - might be incomplete etc.

# Determine MATLAB directory, mex must be in the PATH.
MATLAB_ROOT=`mex -v 2>&1 | grep "MATLAB " | awk '{print $4}' | sed -e '2,$d'`
# May be thats not all you need
sudo apt-get install build-essential subversion libtool
# Get the sources
svn co http://svn.gna.org/svn/getfem/trunk getfem
cd getfem/getfem++/
./autogen.sh
./configure --enable-matlab --with-pic --with-matlab-toolbox-dir=$MATLAB_ROOT/toolbox/getfem_toolbox
make && make check
# If all checks passed do
sudo make install
 
# Add the path to the matlab path definitions file
echo "p=[matlabroot,'/toolbox/getfem_toolbox:',p];" | sudo tee -a $MATLAB_ROOT/toolbox/local/pathdef.m
 
# Then I had to move the old libraries to a different folder to make matlab use the newer ones from ubuntu
cd $MATLAB_ROOT/sys/os/glnxa64/
sudo mkdir old
sudo mv libstdc* libgcc_s* old/.
 
# If you see an empty output, the path should be added correctly
$MATLAB_ROOT/bin/matlab -nojvm -nosplash -r "gf_workspace('clear'); exit;"