Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct parameter name in MacOS install script #325

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/compile-version-MacOS
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ make install
)
test -f $prefix/bin/h5c++ || (
cd hdf5-$VERSION_HDF5
./configure '--enable-cxx' 'CC=clang' 'CXX=clang++' --prefix=$prefix $addconfig
./configure '--enable-cxx' 'CC=clang' 'CXX=clang++' --prefix=$prefix $addconf
make -j $njob
make install
)

#test -f $prefix/lib/pkgconfig/mpich.pc || (
#cd mpich-$VERSION_MPI
#./configure --prefix=$prefix "FFLAGS=-fallow-argument-mismatch -L$prefix/gnu -lgfortran -lquadmath" 'CC=clang' 'CXX=clang++' $addconfig
#./configure --prefix=$prefix "FFLAGS=-fallow-argument-mismatch -L$prefix/gnu -lgfortran -lquadmath" 'CC=clang' 'CXX=clang++' $addconf
#make -j $njob
#make install
#)
Expand All @@ -154,7 +154,7 @@ echo2 ================================
export PATH=$prefix/bin:$PATH
#autoreconf -i
tar zxvf AutoGeneratedFile.tar.gz
./configure "--prefix=$prefix" '--enable-download' $optionconf '--enable-m64' 'CXXFLAGS=-Wno-undefined-var-template' "FLIBS=-L$prefix/gnu -lgfortran -lquadmath -Wl,-ld_classic" $addconfig
./configure "--prefix=$prefix" '--enable-download' $optionconf '--enable-m64' 'CXXFLAGS=-Wno-undefined-var-template' "FLIBS=-L$prefix/gnu -lgfortran -lquadmath -Wl,-ld_classic" $addconf
echo2 ================================
echo2 compilation de petc
echo2 ================================
Expand Down
42 changes: 25 additions & 17 deletions readme/README_MAC.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,36 @@

## Sep 2023

the mac version is compile wit the script
bin/compile-version-MacOS gitbranch path-where-to-compile configure-parameter

configure-parameter compilation:
generic for --enable-genenic
debug for --enable-debug
optim for --enable-optim
The mac version is compiled with the script:

``` bash
bin/compile-version-MacOS gitbranch path-where-to-compile configure-parameter
```

`configure-parameter` can take the following values:

+ generic for --enable-generic
+ debug for --enable-debug
+ optim for --enable-optim

and exact :
bin/compile-version-MacOS master $HOME/tmp generic
and exact:
```bash
bin/compile-version-MacOS master $HOME/tmp generic
```

## Feb 2022

The Version 4.10 is compiled Under Monteray (Apple M1: arm64e) and on (Apple : x86 )
The Version 4.10 is compiled Under Monteray (Apple M1: arm64e) and on (Apple : x86)

### for Apple M1 (arm64e)

Add with home brew
1. install brew see
[install Homebrew]{https://brew.sh/index_fr}
Add with Homebrew

1. Install Homebrew

See [install Homebrew](https://brew.sh/index_fr)


2. install this brew package to compile FreeFEM++
2. Install these brew packages to compile FreeFEM++

```bash
brew install \
Expand All @@ -64,7 +72,7 @@ gd isl libunistring [email protected] zip \
gdbm jansson libvmaf p11-kit zstd
```

3. download the sources of FreeFEM++ with git
3. Download the sources of FreeFEM++ with git

```bash
git clone [email protected]:FreeFem/FreeFem-sources.git ff++
Expand All @@ -74,7 +82,7 @@ or the develop version
```bash
git clone -b develop [email protected]:FreeFem/FreeFem-sources.git ff++
```
4. Compile FreeFem++ without petsc and MPI
4. Compile FreeFem++ without PETSc and MPI

```bash
cd ff++
Expand Down