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

[waves2Foam] Problems compiling with OpenFOAM 3.0.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2016, 21:58
Default Problems compiling with OpenFOAM 3.0.1
  #1
New Member
 
Kenric
Join Date: Mar 2016
Posts: 18
Rep Power: 10
kenrichaiz is on a distinguished road
*Need Help Compiling* I've been following step by step of phmusi, and when i ./Allwmake, this is the error i've got
=====================================
COMPILE SOLVERS
=====================================
Making dependency list for source file waveFoam.C
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DXVERSION=0 -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2Foam/lnInclude -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c waveFoam.C -o Make/linux64GccDPInt32Opt/waveFoam.o
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DXVERSION=0 -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2Foam/lnInclude -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/waveFoam.o -L/opt/openfoam30/platforms/linux64GccDPInt32Opt/lib \
-limmiscibleIncompressibleTwoPhaseMixture -lturbulenceModels -lincompressibleTurbulenceModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/waveFoam
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamSampling
collect2: error: ld returned 1 exit status
make: *** [/opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/waveFoam] Error 1

=====================================
COMPILE PRE-PROCESSING
=====================================
make[1]: Entering directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
Making dependency list for source file faceSetToSTL.C
could not open file foamTime.H for source file faceSetToSTL.C due to No such file or directory
make[1]: Leaving directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
make[1]: Entering directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/triSurface/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -DOFVERSION=301 -DEXTBRANCH=0 -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c faceSetToSTL.C -o Make/linux64GccDPInt32Opt/faceSetToSTL.o
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/triSurface/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -DOFVERSION=301 -DEXTBRANCH=0 -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/faceSetToSTL.o -L/opt/openfoam30/platforms/linux64GccDPInt32Opt/lib \
-lOpenFOAM -ltriSurface -lfiniteVolume -lOpenFOAM -ldl \
-lm -o /home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/bin/faceSetToSTL
make[1]: Leaving directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
make[1]: Entering directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
Making dependency list for source file relaxationZoneLayout.C
could not open file foamTime.H for source file relaxationZoneLayout.C due to No such file or directory
make[1]: Leaving directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[1]: Entering directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -DOFVERSION=301 -DEXTBRANCH=0 -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2Foam/lnInclude -I/usr/include -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c relaxationZoneLayout.C -o Make/linux64GccDPInt32Opt/relaxationZoneLayout.o
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -DOFVERSION=301 -DEXTBRANCH=0 -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2Foam/lnInclude -I/usr/include -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/relaxationZoneLayout.o -L/opt/openfoam30/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -L/home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout
/usr/bin/ld: cannot find -lwaves2Foam
collect2: error: ld returned 1 exit status
make[1]: *** [/home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout] Error 1
make[1]: Leaving directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout'
make: *** [relaxationZoneLayout] Error 2

=====================================
COMPILE POST-PROCESSING
=====================================
make[1]: Entering directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/postProcessing/postProcessWaves2Foam'
Making dependency list for source file postProcessWaves2Foam.C
could not open file foamTime.H for source file postProcessWaves2Foam.C due to No such file or directory
make[1]: Leaving directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/postProcessing/postProcessWaves2Foam'
make[1]: Entering directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/postProcessing/postProcessWaves2Foam'
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2Foam/src/lnInclude -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2FoamProcessing/lnInclude -I/usr/include -DOFVERSION=301 -DEXTBRANCH=0 -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c postProcessWaves2Foam.C -o Make/linux64GccDPInt32Opt/postProcessWaves2Foam.o
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2Foam/src/lnInclude -I/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/src/waves2FoamProcessing/lnInclude -I/usr/include -DOFVERSION=301 -DEXTBRANCH=0 -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/postProcessWaves2Foam.o -L/opt/openfoam30/platforms/linux64GccDPInt32Opt/lib \
-lOpenFOAM -lfiniteVolume -L/home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamProcessing -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam
/usr/bin/ld: cannot find -lwaves2Foam
/usr/bin/ld: cannot find -lwaves2FoamProcessing
collect2: error: ld returned 1 exit status
make[1]: *** [/home/oecu/OpenFOAM/oecu-3.0.1/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam] Error 1
make[1]: Leaving directory `/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/applications/utilities/postProcessing/postProcessWaves2Foam'
make: *** [postProcessWaves2Foam] Error 2

=====================================
COMPILATION DONE
=====================================

When i try to compile with wmake, i also got this error,
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/waveFoam.o -L/opt/openfoam30/platforms/linux64GccDPInt32Opt/lib \
-limmiscibleIncompressibleTwoPhaseMixture -lturbulenceModels -lincompressibleTurbulenceModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L -lwaves2Foam -lwaves2FoamSampling -L -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/waveFoam
/usr/bin/ld: cannot find -lwaves2FoamSampling
collect2: error: ld returned 1 exit status
make: *** [/opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/waveFoam] Error 1

Appreciate if anyone out there can help me out. Thank you very much.
kenrichaiz is offline   Reply With Quote

Old   May 29, 2016, 22:00
Default
  #2
New Member
 
Kenric
Join Date: Mar 2016
Posts: 18
Rep Power: 10
kenrichaiz is on a distinguished road
when i wclean and compile again, i get this error

Making dependency list for source file waveFoam.C
could not open file relaxationZone.H for source file waveFoam.C due to No such file or directory
could not open file externalWaveForcing.H for source file waveFoam.C due to No such file or directory
could not open file readWaveProperties.H for source file waveFoam.C due to No such file or directory
could not open file createExternalWaveForcing.H for source file waveFoam.C due to No such file or directory
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c waveFoam.C -o Make/linux64GccDPInt32Opt/waveFoam.o
waveFoam.C:55:28: fatal error: relaxationZone.H: No such file or directory
#include "relaxationZone.H"
^
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/waveFoam.o] Error 1
kenrichaiz is offline   Reply With Quote

Old   May 30, 2016, 01:28
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Kenric,

You are experiencing linking problems, because your libraries have not been compiled. You do not show that part of the compilation errors, so it is not possible to guide you.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   November 8, 2016, 01:04
Default ask you the solution
  #4
New Member
 
Jianxi Yao
Join Date: Apr 2011
Posts: 17
Rep Power: 15
jianxiyao is on a distinguished road
I have the same problem. Could you please give me your solution. Thanks in advance.

Quote:
Originally Posted by kenrichaiz View Post
when i wclean and compile again, i get this error

Making dependency list for source file waveFoam.C
could not open file relaxationZone.H for source file waveFoam.C due to No such file or directory
could not open file externalWaveForcing.H for source file waveFoam.C due to No such file or directory
could not open file readWaveProperties.H for source file waveFoam.C due to No such file or directory
could not open file createExternalWaveForcing.H for source file waveFoam.C due to No such file or directory
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam30/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -I/opt/openfoam30/src/fvOptions/lnInclude -I/opt/openfoam30/src/meshTools/lnInclude -I/opt/openfoam30/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c waveFoam.C -o Make/linux64GccDPInt32Opt/waveFoam.o
waveFoam.C:55:28: fatal error: relaxationZone.H: No such file or directory
#include "relaxationZone.H"
^
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/waveFoam.o] Error 1
jianxiyao is offline   Reply With Quote

Old   November 8, 2016, 01:15
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning,

I expect that the answer is given here:

Changing the alphaExponent value in the relaxationSchemeSpatial.C file - post #2

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.

Last edited by wyldckat; August 25, 2018 at 07:46. Reason: Replaced link for the new location of that post
ngj is offline   Reply With Quote

Old   November 8, 2016, 01:27
Default
  #6
New Member
 
Jianxi Yao
Join Date: Apr 2011
Posts: 17
Rep Power: 15
jianxiyao is on a distinguished road
Thank you for the reply.

I meet the problem when install your wave2Foam on OpenFOAM 3.0.1.

i compile wavefoam then

Making dependency list for source file waveFoam.C
could not open file relaxationZone.H for source file waveFoam.C due to No such file or directory
could not open file externalWaveForcing.H for source file waveFoam.C due to No such file or directory
could not open file readWaveProperties.H for source file waveFoam.C due to No such file or directory
could not open file createExternalWaveForcing.H for source file waveFoam.C due to No such file or directory
g++ -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 -O3 -DNoRepository -ftemplate-depth-100 -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/twoPhaseMixture/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/transportModels -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/incompressible/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/interfaceProperties/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/TurbulenceModels/incompressible/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/fvOptions/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DOFPLUSBRANCH=0 -DXVERSION= -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/yao/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c waveFoam.C -o Make/linux64GccDPInt32Opt/waveFoam.o
waveFoam.C:55:28: fatal error: relaxationZone.H: no such file
compilation terminated.
/home/yao/OpenFOAM/OpenFOAM-3.0.1/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/waveFoam.o' failed
make: *** [Make/linux64GccDPInt32Opt/waveFoam.o] Error 1


=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
OFPLUSBRANCH=0
WAVES_APPBIN=/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin
WAVES_DIR=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/lib
WAVES_POST=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/applications/solvers/solvers301
WAVES_SRC=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/src
WAVES_TUT=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=301

=====================================
COMPILE LAPACK-3.3.1
=====================================

lapack-3.3.1 has already been compiled

=====================================
COMPILE SPARSKIT2
=====================================

SPARSKIT2 has already been compiled

=====================================
COMPILE OCEANWAVE3D
=====================================

Pull changes from the OceanWave3D git repository ...

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'yao@yao-Precision-Tower-7910.(none)') stash。

OceanWave3D has already been compiled

/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/ThirdParty
=====================================
COMPILE FENTON4FOAM
=====================================

fenton4Foam has already been compiled

=====================================
COMPILE LIBRARY
=====================================
'/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/lib/libwaves2Foam.so' is up to date.
'/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/lib/libwaves2FoamProcessing.so' is up to date.
'/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/lib/libwaves2FoamSampling.so' is up to date.
'/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/lib/libwaves2FoamPorosity.so' is up to date.

=====================================
COMPILE SOLVERS
=====================================
ls: 无法访问'/home/yao/OpenFOAM/yao-3.0.1/applications/utilities/waves2Foam/applications/solvers/solvers301/*': 没有那个文件或目录

=====================================
COMPILE PRE-PROCESSING
=====================================
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/faceSetToSTL' is up to date.
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout' is up to date.
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/setWaveField' is up to date.
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/waveGaugesNProbes' is up to date.
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/setWaveParameters' is up to date.

=====================================
COMPILE POST-PROCESSING
=====================================
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam' is up to date.
make[1]: '/home/yao/OpenFOAM/yao-3.0.1/platforms/linux64GccDPInt32Opt/bin/surfaceElevation' is up to date.

=====================================
COMPILATION DONE
=====================================


Quote:
Originally Posted by ngj View Post
Good morning,

I expect that the answer is given here:

http://www.cfd-online.com/Forums/ope...tml#post617581

Kind regards,

Niels
jianxiyao is offline   Reply With Quote

Old   November 8, 2016, 06:40
Default
  #7
New Member
 
Kenric
Join Date: Mar 2016
Posts: 18
Rep Power: 10
kenrichaiz is on a distinguished road
Hello Jianxi Yao, Please install the dependencies (gfortran and git) in 8.1 from https://openfoamwiki.net/index.php/Contrib/waves2Foam and compile the solver by running ./Allwmake command. I believe this will solve your issue.

Last edited by kenrichaiz; November 8, 2016 at 06:46. Reason: refer to user
kenrichaiz is offline   Reply With Quote

Old   August 28, 2018, 06:19
Default
  #8
New Member
 
Kazakis Ioannis
Join Date: Sep 2016
Location: Thessaloniki, Greece
Posts: 24
Rep Power: 9
Giannis_Kaz is on a distinguished road
Dear Niels

I'm trying to install waves2Foam across openFoam 3.0.1. Everything seems to go right, (complilation, etc), but when i execute a case e.g bejiBattjes, everything is working (blockMesh, setwafields, setwaveParameters, waveGaugesNprobes), except the solver, waveFoam. I have this message in log file. /opt/openfoam30/bin/tools/RunFunctions: line 52: waveFoam: command not found. I would be gratefull if you could provide me some advice.

Kind regards
John
Giannis_Kaz 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
Various problems compiling interFoam with CFDSupport's v1706 port of OpenFOAM ndtrong OpenFOAM Programming & Development 9 April 10, 2020 11:56
Some problems in naca 0012 V&V case of NASA TMR and DPW using OpenFOAM chengdi OpenFOAM Running, Solving & CFD 7 October 5, 2019 13:20
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Problems with OpenFOAM 2.3.0 on Ubuntu 14.04 smallzilla OpenFOAM Installation 15 September 14, 2014 12:11
Getting crazy with all the problems I have in OpenFoam Nicacio OpenFOAM Running, Solving & CFD 7 June 9, 2014 19:08


All times are GMT -4. The time now is 23:11.