Compilation on Ubuntu 22.04
Hello everyone,
so I struggled a lot compiling waves2Foam for OpenFOAM ESI v2106-2206 and had a lot of Code:
Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)) Code:
/usr/bin/ld: cannot find -lwaves2Foam: No such file or directory 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 Quote:
Cheers |
Hi Felix,
I am trying to install waves2Foam in Openfoam ESI v1912. However, following your method, I keep getting the same errors. The procedure was: Code:
which gcc | xargs file Code:
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 I wondering if you could be more especific in the methodology applied to solve your case. Thanks in advance |
Hey
It has been some time since I have compiled waves2foam. Here is a link to the general procedure. I think the step you are missing is configuring the default commands for gcc, g++ and gfortran. So you are still not compiling with version 9. You could do so by the telling your whole system to compile with version 9 (with e.g. update-alternatives). After compiling you can switch back to whatever version you prefer for compiling. Cheers. |
Quote:
Code:
export WM_COMPILE_CONTROL="version=9" https://develop.openfoam.com/Develop...piler-versions |
1 Attachment(s)
Thank you both,
I finally achive to compile SPARSKIT2, following Felix's steps. Integers mistmatch error is solved. Now I am trying to compile lapack-3.3.1 too, but the error: Code:
/usr/bin/ld: cannot find -lwaves2Foam: No such file or directory Cheers |
All times are GMT -4. The time now is 14:52. |