使用东岳老师的openfoam安装包,如下[http://dyfluid.com/download.html],由于我的工作需要使用openfoam1912编译waves2Foam,而东岳老师给配好waves2Foam的只有of2106和2012,所以尝试自行编译。
根据网上能搜到的教程,进行了如下步骤,
1,首先安装wave2Foam的依赖
sudo apt install libgsl-dev gfortran subversion git
mkdir -p $FOAM_RUN/../applications/utilities
cd $FOAM_RUN/../applications/utilities
使用svn下载源代码(waves2Foam编译有两个大坑,一个是waves2Foam的版本一定要和OpenFOAM版本对应,查询到支持OpenFOAM-v1912的waves2Foam版本号为2137,将上述命令中的版本号替换为2137,即)
svn co -r 2137 http://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.6/other/waves2Foam
2,编译waves2Foam的另一个大坑,Ubuntu2204自带的gcc,g++,gfortran版本太新了,不能成功编译waves2Foam。我们使用gcc-9,g++-9,gfortran-9编译即可。
执行如下命令下载老版本的gcc,g++以及gfortran:
sudo apt-get update
sudo apt-get install g++-9 gcc-9 gfortran-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 100
3,由于已知的(大陆)网络问题,会导致无法下载OceanWave3D,从而引发后续一系列问题,导致编译失败。此部分通过阅读make文件的操作,进行手动解决OceanWave3D的编译,主要进行了以下操作:
从官网手动下载OceanWave3D,下载完成后解压,并将文件夹名字后的“-master”去掉;然后将OceanWave3D文件夹复制到waves2Foam文件夹的waves2Foam\ThirdParty文件夹中,并将waves2Foam\ThirdParty\settings\oceanWave3DSettings文件夹中的makefile与common.mk文件复制到waves2Foam\ThirdParty\OceanWave3D-Fortran90文件夹中并替换。
这已经是网上能搜到的基本所有的教程了,之后进入waves2Foam文件进行编译,输出结果如下,编译失败(由于篇幅有限,省略部分代码)
dyfluid@dyfluid-virtual-machine:~/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam$ ./Allwmake
v1912
=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
OFPLUSBRANCH=1
WAVES_APPBIN=/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/bin
WAVES_DIR=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/lib
WAVES_POST=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/solvers/solvers1912_PLUS
WAVES_SRC=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/src
WAVES_TUT=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=1912
=====================================
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 ...
fatal: 不是 git 仓库(或者任何父目录):.git
fatal: 不是 git 仓库(或者任何父目录):.git
fatal: 不是 git 仓库(或者任何父目录):.git
rm -f /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.o
rm -f /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/*.mod
rm -f /home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/bin/OceanWave3D
ls: 无法访问 '*.mod': 没有那个文件或目录
mv: 对 '*.mod' 调用 stat 失败: 没有那个文件或目录
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/precision.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/precision.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
precision.mod
已重命名 'precision.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/precision.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/constants.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/constants.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
已重命名 'constants.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/constants.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/datatypes.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/datatypes.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
ls: 无法访问 '*.mod': 没有那个文件或目录
datatypes.mod
已重命名 'datatypes.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/datatypes.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/HSL_LU.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/HSL_LU.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
hsl_lu.mod
已重命名 'hsl_lu.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/hsl_lu.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/OFmodule.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/OFmodule.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
ofmodule.mod
已重命名 'ofmodule.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/ofmodule.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/globalvariables.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/globalvariables.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
已重命名 'globalvariables.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/globalvariables.mod'
ls: 无法访问 'globalvariables.mod': 没有那个文件或目录
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/pdamp_CSR.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/pdamp_CSR.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
pdamp_csr.mod
已重命名 'pdamp_csr.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/pdamp_csr.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/variabledefs/SPK.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/SPK.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
spk.mod
已重命名 'spk.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/spk.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/utilities/ErfAux.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/ErfAux.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
erf_auxilliary.mod
已重命名 'erf_auxilliary.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/erf_auxilliary.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/utilities/ErfReal.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/ErfReal.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
error_function.mod
已重命名 'error_function.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/error_function.mod'
'thirdpartylibs/LIB_VTK_IO/static/lib_vtk_io.mod' -> '/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/lib_vtk_io.mod'
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/utilities/DetectBreaking.f90 -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/DetectBreaking.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
gfortran -O3 -fPIC -ffpe-trap=invalid,zero,overflow -ffree-line-length-none -fstack-protector-all -c src/utilities/eqns.f -o /home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build/eqns.o -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/ThirdParty/OceanWave3D-Fortran90/../build
src/utilities/eqns.f:39:72:
39 | 2 COEFF(I)=Z(N+I+10)/DCOSH(I*Z(1))
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 2 at (1)
src/utilities/eqns.f:46:72:
46 | 1 RHS(7)=RHS(7)+Z(10+I)+Z(10+I)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 1 at (1)
src/utilities/eqns.f:68:72:
68 | 5 V=V+J*Z(N+J+10)*E*SINA(NM)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 5 at (1)
出现了非常多的ls: 无法访问 '.mod': 没有那个文件或目录
mv: 对 '.mod' 调用 stat 失败: 没有那个文件或目录
=====================================
COMPILE SOLVERS
=====================================
g++ -std=c++11 -m64 -DOPENFOAM=1912 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/applications/solvers/multiphase/VoF -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/meshTools/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/sampling/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/dynamicFvMesh/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/transportModels -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/transportModels/incompressible/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/transportModels/interfaceProperties/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/transportModels/twoPhaseMixture/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/TurbulenceModels/incompressible/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/src/waves2FoamSamplingNew/lnInclude -I/usr/include -DOFVERSION=1912 -DEXTBRANCH=0 -DOFPLUSBRANCH=1 -DXVERSION=0 -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/waveFoam.o -L/home/dyfluid/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -lfvOptions -lmeshTools -lsampling -ldynamicFvMesh -lincompressibleTransportModels -linterfaceProperties -limmiscibleIncompressibleTwoPhaseMixture -lturbulenceModels -lincompressibleTurbulenceModels -L/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /home/dyfluid/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin/waveFoam
/usr/bin/ld: 找不到 -lwaves2Foam: 没有那个文件或目录
/usr/bin/ld: 找不到 -lwaves2FoamSampling: 没有那个文件或目录
collect2: error: ld returned 1 exit status
make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/general:143:/home/dyfluid/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin/waveFoam] 错误 1
=====================================
COMPILE PRE-PROCESSING
=====================================
wmake faceSetToSTL
make[1]: 进入目录“/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing/faceSetToSTL”
make[1]: 离开目录“/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing/faceSetToSTL”
wmake relaxationZoneLayout
make[1]: 进入目录“/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout”
g++ -std=c++11 -m64 -DOPENFOAM=1912 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/meshTools/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude -DOFVERSION=1912 -DEXTBRANCH=0 -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/usr/include -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/relaxationZoneLayout.o -L/home/dyfluid/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -L/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout
/usr/bin/ld: 找不到 -lwaves2Foam: 没有那个文件或目录
collect2: error: ld returned 1 exit status
make[1]: *** [/home/dyfluid/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/general:143:/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/bin/relaxationZoneLayout] 错误 1
make[1]: 离开目录“/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing/relaxationZoneLayout”
make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/apps:29:relaxationZoneLayout] 错误 2
=====================================
COMPILE POST-PROCESSING
=====================================
g++ -std=c++11 -m64 -DOPENFOAM=1912 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/meshTools/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/src/waves2Foam/src/lnInclude -I/home/dyfluid/OpenFOAM/dyfluid-v1912/applications/utilities/waves2Foam/src/waves2FoamProcessing/lnInclude -I/usr/include -DOFVERSION=1912 -DEXTBRANCH=0 -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/postProcessWaves2Foam.o -L/home/dyfluid/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/lib \
-lOpenFOAM -lfiniteVolume -L/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamProcessing -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam
/usr/bin/ld: 找不到 -lwaves2Foam: 没有那个文件或目录
/usr/bin/ld: 找不到 -lwaves2FoamProcessing: 没有那个文件或目录
collect2: error: ld returned 1 exit status
make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/general:143:/home/dyfluid/OpenFOAM/dyfluid-v1912/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam] 错误 1
=====================================
COMPILE BREEDER
=====================================
Nothing available for compilation in the breeder
directory.
=====================================
COMPILATION DONE
=====================================
如上,就是所有的输出代码了,输入waveFoam命令并不能运行,实在是新手,对于这个大段代码束手无策,求各位大佬指点