CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Compilation on Ubuntu 22.04

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2022, 12:59
Default Compilation on Ubuntu 22.04
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 38
Rep Power: 4
Felix_Sp is on a distinguished road
Hello everyone,

so I struggled a lot compiling waves2Foam for OpenFOAM ESI v2106-2206 and had a lot of

Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4))
/usr/bin/ld: cannot find -lwaves2Foam: No such file or directory
collect2: error: ld returned 1 exit status
errors and wanted to share my solution to this process.

I had gcc11 and g++11 installed together with gfortran11 and found that the toolbox does not compile in this version (maybe this information is present somewhere, I have not found it anywhere online). Especially the ThirdParty folder made problems during compilation.

I found that the toolbox does compile for me for gcc9, g++9 and gfortran9 and compiled successfully with the

command. I hope this does help some people who just want to try out the toolbox and are having similar problems. Maybe someone with greater knowledge on compiling can explain to me how to compile the toolbox with gcc11, g++11 and gfortran11.


Last edited by Felix_Sp; September 24, 2022 at 14:55.
Felix_Sp is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[] Install OpenFOAM 2.1.x on ubuntu 22.04 i.linch OpenFOAM Installation 6 September 7, 2022 09:39
[] Parview 5.4.0 compilation problems on Ubuntu 18 gadieid OpenFOAM Installation 7 August 12, 2022 15:40
[] Install OpenFOAM 2112 in Ubuntu 22.04 tRock OpenFOAM Installation 5 May 28, 2022 05:48
OpenFoam 2.1.x /2.2.0 compilation failed on Ubuntu 12.04/10 64bit keepfit OpenFOAM Installation 2 March 26, 2013 10:43
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 07:07

All times are GMT -4. The time now is 15:06.