Skip to content

Latest commit

 

History

History
87 lines (75 loc) · 3.67 KB

README_COMPILATION.md

File metadata and controls

87 lines (75 loc) · 3.67 KB

Compilation of FreeFem++ and bamg (mesh generator) under Unix, MacOs X or MinGW (Windows)

Read the following links, depending on your system for installation instructions:

Now (april 2018), the PDF doc is on GitHub on https://github.com/FreeFem/FreeFem-doc-pdf/

To use a specific configuration file

Create file config.param and use the shell script:

./reconfigure

to reconfigure your system

Examples of config.param files:

Used for the precompiled MacOS version:

$ cat config.param
'--enable-download'
'--enable-optim'
'--enable-m64'
'F77=ifort'
'FC=ifort'
'--enable-maintainer-mode'
'--with-mkl=/opt/intel/mkl/lib'
'--with-petsc=/usr/local/ff++/mpich/petsc/lib/petsc/conf/petscvariables'
'-with-hdf5=/usr/local/ff++/mpich/bin/h5cc'
'--with-gsl-prefix=/usr/local/ff++/mpich/'
'--disable-pastix'
'--with-mpipath=/usr/local/ff++/mpich/bin/'

Used for the MSWindows precompiled version:

$ cat /Volumes/C/msys64/home/hecht/ff++/config.param
'-with-glut=-lfreeglut -lglu32 -lopengl32 -lwinmm -lgdi32 -Wl,--subsystem,windows'
'-without-mpi'
'-with-blas=/home/hecht/64/bin/libopenblas.dll'
'-with-lapack=/home/hecht/64/mingw/bin/libopenblas.dll'
'--disable-hips'
'--disable-pastix'
'--enable-download'
'CXX=x86_64-w64-mingw32-g++'
'FC=x86_64-w64-mingw32-gfortran'
'F77=x86_64-w64-mingw32-gfortran'
'CC=x86_64-w64-mingw32-gcc'

Used for the Ubuntu version

without MPI

$ cat config.param
'--enable-download'
'--without-mpi'

with MPI

$ cat config.param
'--enable-download'