Debian Codegraph @

readme/README_COMPILATION.md

raw
1 <!----------------------------------------------------------------------------------->
2 <!--- This file is part of FreeFEM. --->
3 <!--- Laboratoire Jacques-Louis Lions --->
4 <!--- Sorbonne Université, UMR 7598, Paris, F-75005 France --->
5 <!--- --->
6 <!--- FreeFEM is free software: you can redistribute it and/or modify --->
7 <!--- it under the terms of the GNU Lesser General Public License as published by --->
8 <!--- the Free Software Foundation, either version 3 of the License, or --->
9 <!--- (at your option) any later version. --->
10 <!--- --->
11 <!--- FreeFEM is distributed in the hope that it will be useful, --->
12 <!--- but WITHOUT ANY WARRANTY; without even the implied warranty of --->
13 <!--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --->
14 <!--- GNU Lesser General Public License for more details. --->
15 <!--- --->
16 <!--- You should have received a copy of the GNU Lesser General Public License --->
17 <!--- along with FreeFEM. If not, see <http://www.gnu.org/licenses/>. --->
18 <!----------------------------------------------------------------------------------->
19
20 # Compilation of FreeFem++ and bamg (mesh generator) under Unix, MacOs X or MinGW (Windows)
21
22 Read the following links, depending on your system for installation instructions:
23
24 * [FreeFem-doc](https://github.com/FreeFem/FreeFem-doc) -> Documentation website -> Installation
25 * [http://www.freefem.org/ff++/linux.php](http://www.freefem.org/ff++/linux.php) or [web/linux.php ](https://github.com/FreeFem/FreeFem-sources/blob/master/web/linux.php)
26 * [http://www.freefem.org/ff++/windows.php](http://www.freefem.org/ff++/windows.php) or [web/windows.php](https://github.com/FreeFem/FreeFem-sources/blob/master/web/windows.php)
27 * [http://www.freefem.org/ff++/macosx.php](http://www.freefem.org/ff++/macosx.php) or web/[macosx.php](https://github.com/FreeFem/FreeFem-sources/blob/master/web/linux.php)
28
29 Now (april 2018), the PDF doc is on GitHub on https://github.com/FreeFem/FreeFem-doc-pdf/
30
31 ## To use a specific configuration file
32
33 Create file `config.param` and use the shell script:
34 ```bash
35 ./reconfigure
36 ```
37 to reconfigure your system
38
39 ## Examples of `config.param` files:
40
41 ### Used for the precompiled MacOS version:
42 ```bash
43 $ cat config.param
44 '--enable-download'
45 '--enable-optim'
46 '--enable-m64'
47 'F77=ifort'
48 'FC=ifort'
49 '--enable-maintainer-mode'
50 '--with-mkl=/opt/intel/mkl/lib'
51 '--with-petsc=/usr/local/ff++/mpich/petsc/lib/petsc/conf/petscvariables'
52 '-with-hdf5=/usr/local/ff++/mpich/bin/h5cc'
53 '--with-gsl-prefix=/usr/local/ff++/mpich/'
54 '--disable-pastix'
55 '--with-mpipath=/usr/local/ff++/mpich/bin/'
56 ```
57
58 ### Used for the MSWindows precompiled version:
59 ```bash
60 $ cat /Volumes/C/msys64/home/hecht/ff++/config.param
61 '-with-glut=-lfreeglut -lglu32 -lopengl32 -lwinmm -lgdi32 -Wl,--subsystem,windows'
62 '-without-mpi'
63 '-with-blas=/home/hecht/64/bin/libopenblas.dll'
64 '-with-lapack=/home/hecht/64/mingw/bin/libopenblas.dll'
65 '--disable-hips'
66 '--disable-pastix'
67 '--enable-download'
68 'CXX=x86_64-w64-mingw32-g++'
69 'FC=x86_64-w64-mingw32-gfortran'
70 'F77=x86_64-w64-mingw32-gfortran'
71 'CC=x86_64-w64-mingw32-gcc'
72 ```
73
74 ### Used for the Ubuntu version
75
76 #### without MPI
77 ```bash
78 $ cat config.param
79 '--enable-download'
80 '--without-mpi'
81 ```
82
83 #### with MPI
84 ```bash
85 $ cat config.param
86 '--enable-download'
87 ```