To install the precompile windows package just 

download the last version from

Take the file form and download

  • Windows 32bits: FreeFem++-3.46-win32.exe ( 66.4 Mb, May 09, 2017 16:11:18.)   
  • Windows 64bits: FreeFem++-3.54-win64.exe ( 82.6 Mb, Jun 09, 2017 18:31:50.)   
  • And execute  and  follow the instruction.

    Warning: if you launch freefem++ without filename script by double clip, your get a error due (it is bug of usage GetOpenFileName in win64 )

    to launch mpi version use :

    mpiexec.exe -np 4 FreeFem++-mpi DDM-Schwarz-Lame-2d.edp

    after install MSMPI for parallel version under window64. Download : MS MPI V7, and install both msmpisdk.msi and MSMpiSetup.exe



     

    -- How to compile under MSYS2  FreeFem++ for Microsoft Windows 64 (for version Windows 32 )   

        F. Hecht  (Paris, april  the 20th, 2016) 

    ---------------------------------------------

    WARNING  NOW the window 64 version  is compiled under MSYS2 for version  before version 3.47 , see 


    typo remark: all line in green  are shell command under mingw32 shell


    1. Download and install msys2 version x86_64  

    form https://msys2.github.io

    Answer question in following  windows : 


      1. Download MSYS2 from this page (choose 32 or 64-bit according to what version of Windows you are going to use it on, not what kind of executables you want to build, both versions can build both 32 and 64-bit binaries).

    1. After the install completes, click on the newly created "MSYS2 Shell" option under either MSYS2 64-bit or MSYS2 32-bit in the Start menu. Update MSYS2 according to the wiki (although I just do a 
    2.     pacman -Syu,
    3. ignore all errors and close the window and open a new one, this is not recommended and you should do what the wiki page says).
    4. Install  all this tools :
      pacman -S autoconf
      pacman -S automake-wrapper
      pacman -S bash
      pacman -S bash-completion
      pacman -S bison
      pacman -S bsdcpio
      pacman -S bsdtar
      pacman -S bzip2
      pacman -S catgets
      pacman -S coreutils
      pacman -S crypt
      pacman -S curl
      pacman -S dash
      pacman -S file
      pacman -S filesystem
      pacman -S findutils
      pacman -S flex
      pacman -S gawk
      pacman -S gcc-libs
      pacman -S grep
      pacman -S gzip
      pacman -S inetutils
      pacman -S info
      pacman -S less
      pacman -S lndir
      pacman -S make
      pacman -S man-db
      pacman -S mercurial
      pacman -S mingw-w64-x86_64-freeglut
      pacman -S mingw-w64-x86_64-gcc
      pacman -S mingw-w64-x86_64-gcc-fortran
      pacman -S mingw-w64-x86_64-gsl
      pacman -S mingw-w64-x86_64-hdf5
      pacman -S mingw-w64-x86_64-openblas
      pacman -S mintty
      pacman -S msys2-keyring
      pacman -S msys2-launcher-git
      pacman -S msys2-runtime
      pacman -S ncurses
      pacman -S pacman
      pacman -S pacman-mirrors
      pacman -S pactoys-git
      pacman -S patch
      pacman -S pax-git
      pacman -S perl
      pacman -S pkg-config
      pacman -S pkgfile
      pacman -S rebase
      pacman -S sed
      pacman -S tar
      pacman -S tftp-hpa
      pacman -S time
      pacman -S tzcode
      pacman -S unzip
      pacman -S util-linux
      pacman -S which


    5. install any libraries/tools you may need. You can search the repositories by doing
      pacman -Ss package_name_of_something_i_want_to_install
    6. Open a MinGW-w64 shell:
      a) To build 32-bit things, open the "MinGW-w64 32-bit Shell"
      b) To build 64-bit things, open the "MinGW-w64 64-bit Shell"
    7. install MSMPI  for parallel version under window64
    8.     download MS MPI V7, and install both msmpisdk.msi and MSMpiSetup.exe
    9.          open c:\msys64\mingw64.ini in an editor and remove 
    10.            rem” before “set MSYS2_PATH_TYPE=inherit 
    11.            (this enables passing Windows environment variables to MSYS2-MINGW64)

    Now you can do classical install 

          hg clone  http://www.freefem.org/ff++/ff++

    to update do to the last version:

           cd ff++

       hg pull

       hg up 


    To restore, all files build by autoreconf -i command (automake):

       tar zxvf AutoGeneratedFile.tar.gz 

    Finally, the configure argument are and the compile 

      (remark :  sorry pastix and hips does not compile under window to day, so I  disable its)

        ./configure '--enable-download' '--disable-pastix' '--disable-hips'

        make

    make check



    Remark to see all dll use by file.dll file

    objdump.exe -p file.dll | grep -i dll



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

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

    ---------------------------------------------

     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



    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 

    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=mingw32-g++’ ’-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)

    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)


    8) download mercurail for windows from:

    http://mercurial.selenic.com


    9) To download the latest freefem++ tar.gz file contening source form 

    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 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=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'


    if erreor where building DOC do:

    touch DOC/freefem++doc.pdf



    Good Luck …