CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Problems compiling with OpenFOAM 3.0.1 (https://www.cfd-online.com/Forums/openfoam-community-contributions/205820-problems-compiling-openfoam-3-0-1-a.html)

kenrichaiz May 29, 2016 21:58

Problems compiling with OpenFOAM 3.0.1
 
*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 May 29, 2016 22:00

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

ngj May 30, 2016 01:28

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

jianxiyao November 8, 2016 01:04

ask you the solution
 
I have the same problem. Could you please give me your solution. Thanks in advance.

Quote:

Originally Posted by kenrichaiz (Post 602348)
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


ngj November 8, 2016 01:15

Good morning,

I expect that the answer is given here:

https://www.cfd-online.com/Forums/op...tml#post617581 - post #2

Kind regards,

Niels

jianxiyao November 8, 2016 01:27

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 (Post 624606)
Good morning,

I expect that the answer is given here:

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

Kind regards,

Niels


kenrichaiz November 8, 2016 06:40

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.

Giannis_Kaz August 28, 2018 06:19

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


All times are GMT -4. The time now is 13:26.