Sei sulla pagina 1di 5

10/21/2014

www.freefem.org/ff++/windows.php

f
To install the precompile windows package just
download the last version from
Take the file form and download

Windows: FreeFem++-3.32.exe ( 52.9 Mb, Oct 17, 2014 11:55:07.)

And execute and follow the instruction.

-- How to compile FreeFem++ on Microsoft Windows (win32)


F. Hecht (Paris, Sept. the 4th, 2013)

--------------------------------------------WARNING NOW the window version is compiled under MINGW for version before version 3.20 , oct 7h 2012 , see the end of the file (obsolete
now)
typo remark: all line in green are shell command under mingw32 shell
1. Download and install MINGW32
form http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
Answer question in following windows :
7) select components
all basic setup
all package : in mingw32 mingw-devlopper-tool, autoconf , automake, compiler, wget , ...
8) Installation -> Apply changes

2. Under mingw32 shell install wget and unzip


mingw-get install msys-wget
mingw-get.exe install msys-unzip
3. To install freeglut of win32 for the graphics part
wget http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip
unzip freeglut-MinGW-2.8.0-1.mp.zip
cp freeglut/include/GL/* /c/MinGW/include/GL/.
cp freeglut/lib/lib*.a /c/MinGW/lib/.
cp freeglut/bin/freeglut.dll /c/MinGW/bin
4. install a good blas (OpenBlas) http://xianyi.github.com/OpenBLAS/
get from http://github.com/xianyi/OpenBLAS/tarball/v0.2.3
http://www.freefem.org/ff++/windows.php

1/5

10/21/2014

www.freefem.org/ff++/windows.php

wget http://github.com/xianyi/OpenBLAS/tarball/v0.2.3 -O OpenBlas.tgz


tar zxvf OpenBlas.tgz
cd xianyi-OpenBLAS-*/.
make
make install PREFIX=$HOME/soft
mkdir $HOME/soft/bin
cp *.dll $HOME/soft/bin
5. install MPI for // HPC Pack 2008 R2 Client Pack 4
and install MPI for // HPC Pack 2008 R2 Pack 4
6. install inno setup to build installer :
http://www.xs4all.nl/~mlaan2/ispack/isetup-5.4.0.exe
7. GSL for gsl interface is take form
http://sourceforge.net/projects/mingw-cross/files/%5BLIB%5D%20GSL/mingw32-gsl-1.14-1/
9) To download the latest freefem++ tar.gz file contening source form

Source code: freefem++-3.31-3.tar.gz ( 11.2 Mb, Aug 26, 2014 15:22:51.)


or you can get the latest source from an anonymous Mercurial SCM copy with the following unix shell commands :
hg clone http://www.freefem.org/ff++/ff++
to update do to the last version:
hg pull
hg up
To restore, all files build by autoreconf -i command (automake):
tar zxvf AutoGeneratedFile.tar.gz
Finaly, the configure argument are:
10) Finaly, the configure argument are :
./configure --enable-download FC=mingw32-gfortran F77=mingw32-gfortran CC=mingw32-gcc CXX=mingw32g++ -with-blas=$HOME/soft/bin/libopenblas.dll CXXFLAGS=-I$HOME/soft/include --enable-generic -with-wget=wget MPIRUN=/c/Program Files/Microsoft HPC Pack 2008 R2/Bin/mpiexec.exe
----------------------------------------------------------------------------------------------------------------------------Ok until version 3.19-1 (but now this soft is to old to get form the web).
FIle version 30/11/2011 F. Hecht.
WARNING NOW the window version is compiled under MINGW (from version 3.11 14/01/2011 FH)
http://www.freefem.org/ff++/windows.php

2/5

10/21/2014

www.freefem.org/ff++/windows.php

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-inst20101030.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
http://www.freefem.org/ff++/windows.php

3/5

10/21/2014

www.freefem.org/ff++/windows.php

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)
8) download mercurail for windows from:
http://mercurial.selenic.com
9) To download the latest freefem++ tar.gz file contening source form

Source code: freefem++-3.31-3.tar.gz ( 11.2 Mb, Aug 26, 2014 15:22:51.)


or you can get the latest source from an anonymous Mercurial SCM copy with the following unix shell commands :
hg clone http://www.freefem.org/ff++/ff++
to update do to the last version:
http://www.freefem.org/ff++/windows.php

4/5

10/21/2014

www.freefem.org/ff++/windows.php

hg pull
hg up
To restore, all file build by autoreconf -i command (automake c):
tar zxvf AutoGeneratedFile.tar.gz
Finaly, the configure argument are:
cd ff++
./configure '--enable-download' 'FC=mingw32-gfortran' 'F77=mingw32-gfortran' 'CC=mingw32-gcc' 'CXX=mingw32g++' '-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'
if erreor where building DOC do:
touch DOC/freefem++doc.pdf
Good Luck

http://www.freefem.org/ff++/windows.php

5/5

Potrebbero piacerti anche