CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] error missing 'typename' while Compiling OpenFOAM 2.4.x

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jjstickel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2019, 15:59
Thumbs down error missing 'typename' while Compiling OpenFOAM 2.4.x
  #1
New Member
 
Guido
Join Date: Sep 2019
Posts: 3
Rep Power: 7
gxuk is on a distinguished road
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
However, in the last step I get this first error

Code:
lnInclude/CrankNicolsonDdtScheme.C:104:1: error: missing 'typename' prior to dependent type template name 'CrankNicolsonDdtScheme<Type>::DDt0Field'
CrankNicolsonDdtScheme<Type>::DDt0Field<GeoField>&
(I cannot upload here the log.Allwmake because it exceeds the maximum file size)

Last edited by gxuk; October 15, 2019 at 19:24.
gxuk is offline   Reply With Quote

Old   December 27, 2019, 16:00
Default
  #2
New Member
 
Jonathan
Join Date: Jan 2015
Posts: 20
Rep Power: 11
jjstickel is on a distinguished road
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
wyldckat likes this.
jjstickel is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 00:01.