How to compile FreeFem++ on Microsoft Windows (win32)
---------------------------------------------
FIle version 30/11/2011 F. Hecht.
WARNING NOW the window is compiled under MINGW (from version 3.11 14/01/2011 FH)
So the old dll are incompatible with the new version.
It is the fortran compiler under cygwin which is too old (not f90 under cygwin).
----------------------------------------------------------
The tools to be installed are:
1) Download and install MINGW32
http://sunet.dl.sourceforge.net/project/mingw/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20101030/mingw-get-inst-20101030.exe
launch:
mingw-get-inst-20101030.exe
Answer question in following windows :
1) do next
2) do next
3) use preload case
4) accept
5 ) select location of mingw on disk.
6) mingw menu name
7) select components
all except ada
8) do install
2) Download and install wget for --enable-download in configure
http://puzzle.dl.sourceforge.net/project/mingw/mingwPORT/Current%20Releases/wget-1.9.1-mingwPORT.tar.bz2
under mingw32 shell
do:
cd /c/users/loginname/download/
tar jxvf wget-1.9.1-mingwPORT.tar.bz2
cp
extract and move wget.exe in /usr/bin
3) The glut of win32 from
wget http://web.cs.wpi.edu/~gogo/courses/mingw/winglut.zip
or
wget http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip
The location of include file must be
c:\mingw\include\GL\glut.h
c:\mingw\include\GL\gl.h
c:\mingw\include|GL/glu.h
add the glut32.dll or freeglut.dll in you directory in the 2 directories:
$ find /c/MinGW -name glut
/c/MinGW/bin/glut32.dll
/c/MinGW/lib/glut32.dll
4) the good blas now is:
http://www.tacc.utexas.edu/tacc-projects/gotoblas2/downloads/
Try to compile
5) install MPI for // version
HPC Pack 2008 SDK
http://www.microsoft.com/download/en/details.aspx?id=10505
HPC Pack 2008 R2 Service Pack 2
http://www.microsoft.com/download/en/details.aspx?id=26646
6) install inno setup to build installer:
http://www.xs4all.nl/~mlaan2/ispack/isetup-5.4.0.exe
7) GSL for gsl interface from
Download Now! mingw32-gsl-1.14-1.zip (3.5 MB)
Finaly, the configure argument are:
./configure '--enable-download' 'FC=mingw32-gfortran' 'F77=mingw32-gfortran' 'CC=mingw32-gcc' 'CXX=mingw32-g++' '-with-blas=/home/hecht/blas-x86/libgoto2.dll' 'CXXFLAGS=-I/home/hecht/blas-x86' '--enable-generic' '--with-wget=wget' 'MPIRUN=/c/Program Files/Microsoft HPC Pack 2008 R2/Bin/mpiexec.exe'
Good Luck …