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

Compilation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2023, 10:40
Default Compilation error
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
I'm trying to compile the solver on my OpenFOAM 9. However, I'm not succeeding. Unfortunately I have a little difficulty with this part. Can someone help me?

Code:
~/OpenFOAM/assis-9/solvers/LaunderSharmaKEYap-master$ wmake libso
wmake libso .
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /opt/openfoam9/src/TurbulenceModels/turbulenceModels/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam9/src/TurbulenceModels/incompressible/ does not exist
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file maketurbulentTransportModels.C
could not open file turbulentTransportModels.H for source file maketurbulentTransportModels.C due to No such file or directory
could not open file RASModel.H for source file maketurbulentTransportModels.C due to No such file or directory
could not open file eddyViscosity.H for source file maketurbulentTransportModels.C due to No such file or directory
could not open file fvOptions.H for source file maketurbulentTransportModels.C due to No such file or directory
g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam9/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam9/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam9/src/transportModels -I/opt/openfoam9/src/finiteVolume/lnInclude -I/opt/openfoam9/src/meshTools/lnInclude  -IlnInclude -I. -I/opt/openfoam9/src/OpenFOAM/lnInclude -I/opt/openfoam9/src/OSspecific/POSIX/lnInclude   -fPIC -c maketurbulentTransportModels.C -o Make/linux64GccDPInt32Opt/maketurbulentTransportModels.o
maketurbulentTransportModels.C:26:10: fatal error: turbulentTransportModels.H: Arquivo ou diretório inexistente
   26 | #include "turbulentTransportModels.H"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/opt/openfoam9/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/maketurbulentTransportModels.o] Erro 1
gu1 is offline   Reply With Quote

Old   September 24, 2023, 00:38
Default
  #2
Member
 
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 57
Rep Power: 10
amirhosseintaran is on a distinguished road
Quote:
Originally Posted by gu1 View Post
I'm trying to compile the solver on my OpenFOAM 9. However, I'm not succeeding. Unfortunately I have a little difficulty with this part. Can someone help me?

Code:
~/OpenFOAM/assis-9/solvers/LaunderSharmaKEYap-master$ wmake libso
wmake libso .
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /opt/openfoam9/src/TurbulenceModels/turbulenceModels/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam9/src/TurbulenceModels/incompressible/ does not exist
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file maketurbulentTransportModels.C
could not open file turbulentTransportModels.H for source file maketurbulentTransportModels.C due to No such file or directory
could not open file RASModel.H for source file maketurbulentTransportModels.C due to No such file or directory
could not open file eddyViscosity.H for source file maketurbulentTransportModels.C due to No such file or directory
could not open file fvOptions.H for source file maketurbulentTransportModels.C due to No such file or directory
g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam9/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam9/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam9/src/transportModels -I/opt/openfoam9/src/finiteVolume/lnInclude -I/opt/openfoam9/src/meshTools/lnInclude  -IlnInclude -I. -I/opt/openfoam9/src/OpenFOAM/lnInclude -I/opt/openfoam9/src/OSspecific/POSIX/lnInclude   -fPIC -c maketurbulentTransportModels.C -o Make/linux64GccDPInt32Opt/maketurbulentTransportModels.o
maketurbulentTransportModels.C:26:10: fatal error: turbulentTransportModels.H: Arquivo ou diretório inexistente
   26 | #include "turbulentTransportModels.H"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/opt/openfoam9/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/maketurbulentTransportModels.o] Erro 1
Hi gu1,

could you please check and see if these two directories exist or not ?

Quote:
/opt/openfoam9/src/TurbulenceModels/turbulenceModels/ does not exist
/opt/openfoam9/src/TurbulenceModels/incompressible/ does not exist

if not, then fix the address.

the compiler is looking for these two directories since you told him/her to look for sth called turbulenceModels in it and there is no such folder.

Hope that helps,

Bests,
amirhosseintaran is offline   Reply With Quote

Reply

Tags
openfoam9


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 07:45
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 07:35
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 12:39
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 14:38.