|
[Sponsors] |
[OpenFOAM.org] error missing 'typename' while Compiling OpenFOAM 2.4.x |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 15, 2019, 15:59 |
error missing 'typename' while Compiling OpenFOAM 2.4.x
|
#1 |
New Member
Guido
Join Date: Sep 2019
Posts: 3
Rep Power: 7 |
Hi, I'm trying to compile OpenFOAM 2.4.x on macOS Mojave 10.14.6 following the instructions of mrklein ( https://github.com/mrklein/openfoam-...ion-&-Homebrew )
Code:
MBPGP:OpenFOAM dogui$ clang --version Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin MBPGP:OpenFOAM dogui$ brew list --versions boost 1.71.0 cgal 4.14.1 cmake 3.15.4 eigen 3.3.7 gcc 9.2.0_1 gmp 6.1.2_2 hwloc 2.0.4 icu4c 64.2 isl 0.21 libevent 2.1.11_1 libmpc 1.1.0 metis 5.1.0 metis64 5.1.0 mpfr 4.0.2 open-mpi 4.0.1_2 openssl@1.1 1.1.1d parmgridgen 0.0.2 scotch 6.0.4_1 scotch64 6.0.4_1 Code:
$ brew install open-mpi $ brew install boost $ brew install cgal $ brew install metis $ brew install https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/formulae/scotch.rb $ brew install https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/formulae/parmgridgen.rb $ cd $ hdiutil create -size 8.3g -type SPARSEBUNDLE -fs HFSX -volname OpenFOAM -fsargs -s OpenFOAM.sparsebundle $ mkdir -p OpenFOAM $ hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle $ cd OpenFOAM $ git clone https://github.com/OpenFOAM/OpenFOAM-<version>.git $ cd OpenFOAM-<version> $ curl -L https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/OpenFOAM-<version>-<commit>.patch > OpenFOAM-<version>-<commit>.patch $ git checkout -b local-install <commit> $ git apply OpenFOAM-<version>-<commit>.patch $ mkdir -p $HOME/.OpenFOAM $ echo 'WM_COMPILER=Clang' > $HOME/.OpenFOAM/prefs.sh $ echo 'WM_COMPILE_OPTION=Opt' >> $HOME/.OpenFOAM/prefs.sh $ echo 'WM_MPLIB=SYSTEMOPENMPI' >> $HOME/.OpenFOAM/prefs.sh $ echo 'export WM_NCOMPPROCS=$(sysctl -n hw.ncpu)' >> $HOME/.OpenFOAM/prefs.sh $ echo 'WM_LABEL_SIZE=32' >> $HOME/.OpenFOAM/prefs.sh $ source etc/bashrc $ [ "$(ulimit -n)" -lt "4096" ] && ulimit -n 4096 $ ./Allwmake > log.Allwmake 2>&1 Code:
lnInclude/CrankNicolsonDdtScheme.C:104:1: error: missing 'typename' prior to dependent type template name 'CrankNicolsonDdtScheme<Type>::DDt0Field' CrankNicolsonDdtScheme<Type>::DDt0Field<GeoField>& Last edited by gxuk; October 15, 2019 at 19:24. |
|
December 27, 2019, 16:00 |
|
#2 |
New Member
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11 |
Applying the change here:
https://github.com/OpenFOAM/OpenFOAM...92bb67b011c6da Allowed me to compile OpenFOAM-5.0 on my Mac with OS 10.14.6 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Turbulence intensity function object for OpenFOAM 2.4.x | mörli | OpenFOAM Programming & Development | 7 | August 8, 2019 19:05 |
[OpenFOAM.org] Problem compiling PV4Readers into OpenFOAM 2.4.0 | Spurius | OpenFOAM Installation | 0 | November 14, 2018 10:05 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |