CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   foam-extend 5 compile error (https://www.cfd-online.com/Forums/openfoam/245225-foam-extend-5-compile-error.html)

hyunko September 22, 2022 06:16

foam-extend 5 compile error
 

Hi Foamers,

I have tried to compile foam-extend 5.0.
During the compiling, I have met following errors.
Does anyone know the reason of error and remedies?

It happens only for "dbnsFoam" and "dbnsTurbFoam".
For other applications, all the compiles seem to be successful.

Thanks.


Code:

SOURCE=MGridGenGAMGAgglomerate.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/hero/foam/foam-extend-5.0/src/finiteVolume/lnInclude    -I/Lib        -I/IMlib      -IlnInclude -I. -I/home/hero/foam/foam-extend-5.0/src/foam/lnInclude -I/home/hero/foam/foam-extend-5.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o
MGridGenGAMGAgglomerate.C:35:13: fatal error: mgridgen.h: No such file or directory
  35 | #  include "mgridgen.h"
      |            ^~~~~~~~~~~~
compilation terminated.
make: *** [MGridGenGAMGAgglomerate.dep:449: Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o] Error 1
+ wmake libso pairPatchAgglomeration
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libpairPatchAgglomeration.so' is up to date.
+ wmake libso engine
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libengine.so' is up to date.
+ wmake libso equationReader
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libequationReader.so' is up to date.
+ wmake libso multiSolver
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libmultiSolver.so' is up to date.
+ wmake libso solidModels
'/home/hero/foam/foam-extend-5.0/lib/linux64GccDPInt32Opt/libsolidModels.so' is up to date.
+ wmake libso dbns
SOURCE=multigrid/mgMeshLevel/mgMeshLevel.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/hero/foam/foam-extend-5.0/src/finiteVolume/lnInclude    -I/home/hero/foam/foam-extend-5.0/src/meshTools/lnInclude    -I/home/hero/foam/foam-extend-5.0/src/thermophysicalModels/basic/lnInclude    -I/home/hero/foam/foam-extend-5.0/src/turbulenceModels/compressible/turbulenceModel    -I/IMlib    -I/Lib -IlnInclude -I. -I/home/hero/foam/foam-extend-5.0/src/foam/lnInclude -I/home/hero/foam/foam-extend-5.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mgMeshLevel.o
multigrid/mgMeshLevel/mgMeshLevel.C:31:13: fatal error: mgridgen.h: No such file or directory
  31 | #  include "mgridgen.h"

      |            ^~~~~~~~~~~~
compilation terminated.
make: *** [multigrid/mgMeshLevel/mgMeshLevel.dep:430: Make/linux64GccDPInt32Opt/mgMeshLevel.o] Error 1
+ wmake libso immersedBoundary/immersedBoundary


hyunko September 23, 2022 05:39

[solved]

This was related to dependancies not installed correctly.
I have successfully install following the instruction.

Thanks.

cfdforum4hyc March 27, 2023 18:21

Hi, Hyun,
Hope you are doing well!
I'm trying to install foam-extend 5.0 now yet failed to find the installation instruction. Could you please share the instruction you used?
Thanks!

hyunko March 29, 2023 00:01

Hi cfdforum4hyc,

As I remember, I have followed the instruction from this link.
https://openfoamwiki.net/index.php/I...end-4.1/Ubuntu

cfdforum4hyc March 29, 2023 10:13

Thank you so much for letting me know! I tried the same yet failed to find the fsiFoam in the source code so I assume I compiled it in the wrong way.


All times are GMT -4. The time now is 02:59.