东岳流体 hello CFD 编译案例 问题
-
大家好!
最近刚刚接触编译。我按照东岳流体网站上的例子编译 myFirstFoam的求解器,输出 hello CFD
.C文件 files文件 和 options文件 都是按照李老师网页上写的编写的。 wmake之后也没有报错,可是就是无法输出hello CFD
我用的是Gcc编译,版本是openfoam4.1
wmake之后如下
Make/options:1:11: warning: backslash-newline at end of file [enabled by default] EXE_INC = \ ^ Making dependency list for source file myFirstFoam.C g++ -std=c++0x -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/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c myFirstFoam.C -o Make/linux64GccDPInt32Opt/myFirstFoam.o g++ -std=c++0x -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/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/project/xiongqi/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/myFirstFoam.o -L/project/xiongqi/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/lib \ -lOpenFOAM -ldl \ -lm -o /project/xiongqi/OpenFOAM_tut/myFirstFoam
然后我输入 myFirstFoam命令之后
[xiongqi@swarm01 OpenFOAM_tut]$ myFirstFoam -bash: myFirstFoam: command not found
大家知道这个原因吗??