SUSE 11 下 OpenFOAM 1.7.1编译

完整的编译过程有待完善,遇到的问题都列出来了。
问题1:
make[3]: Entering directory `/root/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc’
SOURCE=alloc.cpp ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-de
In file included from alloc.cpp:25:
MASTER.h:527:31: error: X11/Intrinsic.h: No such file or directory
出现这个问题显然是X11的头文件Intrinsic.h的问题。
需要做的是安装xorg-x11-devel。对应SUSE Linux Enterprise Server 11的操作如下:
rpm -ivh xorg-x11-devel-7.4-8.24.2.x86_64.rpm
通常情况下会有大量xorg-x11的包要装。。。。。。
问题2:
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/chenwei/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/potentialFoam
/usr/bin/ld: Make/linux64GccDPOpt/potentialFoam.o: undefined reference to symbol ‘Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)’
/usr/bin/ld: note: ‘Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)’ is defined in DSO /home/chenwei/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so so try adding it to the linker command line
/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/potentialFoam] Error 1
make[2]: Leaving directory `/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/applications/solvers/basic/potentialFoam’
make[1]: *** [potentialFoam] Error 2
解决办法:修改~/OpenFOAM/OpenFOAM-1.7.1/wmake/rules/linux64Gcc/general为:
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so
问题3:
make[3]: Entering directory `/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/postProcessing/dataConversion/foamToTecplot360′
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -Itecio/tecsrc/lnInclude     -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/basic/lnInclude     -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude     -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude   -fPIC Make/linux64GccDPOpt/tecplotWriter.o Make/linux64GccDPOpt/vtkMesh.o Make/linux64GccDPOpt/foamToTecplot360.o -L/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \
-ltecio     -llagrangian     -lfiniteVolume     -lmeshTools     -lgenericPatchFields -lOpenFOAM -liberty -ldl /home/chenwei/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-system/libPstream.so   -lm -o /home/chenwei/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/foamToTecplot360
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
rpm -ivh /tmp/binutils-devel-2.20.0-0.7.9.x86_64.rpm
问题4:
chenwei@node70:~/OpenFOAM/OpenFOAM-1.7.1/src/decompositionMethods/parMetisDecomp> SOURCE=parMetisDecomp.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX      -I/home/chenwei/OpenFOAM/ThirdParty-1.7.1/ParMetis-3.1/ParMETISLib     -I/home/chenwei/OpenFOAM/ThirdParty-1.7.1/ParMetis-3.1     -I../decompositionMethods/lnInclude     -I../metisDecomp/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/chenwei/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -I~/mpi/openmpi1.4.2-gnu/include  -fPIC -c $SOURCE -o Make/linux64GccDPOptSYSTEMOPENMPI/parMetisDecomp.o
parMetisDecomp.C:37:17: error: mpi.h: No such file or directory
解决:目前还未找到定义系统mpi相关路径的变量,比较笨的办法是
chenwei@node70:~> cp ~/mpi/openmpi1.4.2-gnu/include/mpi.h ~/OpenFOAM/OpenFOAM-1.7.1/src/decompositionMethods/parMetisDecomp/
问题5:
ld: cannot find -liberty
解决办法:
rpm -ivh binutils-devel-2.20.0-0.7.9.x86_64.rpm
问题6:

node1:/public/software/MRFSimpleFoam/MRFSimpleFoam # wmake

g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-40 -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/turbulenceModels/RAS -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/transportModels -IlnInclude -I. -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC Make/linux64GccDPDebug/MRFSimpleFoam.o -L/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPDebug \
-L/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt -lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl  -ggdb3 -DFULLDEBUG -lm -o /root/OpenFOAM/root-1.5-dev/applications/bin/linux64GccDPDebug/MRFSimpleFoam
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: warning: libmeshTools.so, needed by /public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: warning: libtriSurface.so, needed by /public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
Make/linux64GccDPDebug/MRFSimpleFoam.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()’:
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:303: undefined reference to `Foam::IPstream::waitRequests()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:304: undefined reference to `Foam::OPstream::waitRequests()’
Make/linux64GccDPDebug/MRFSimpleFoam.o: In function `Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()’:
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:303: undefined reference to `Foam::IPstream::waitRequests()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:304: undefined reference to `Foam::OPstream::waitRequests()’
Make/linux64GccDPDebug/MRFSimpleFoam.o: In function `void Foam::Pstream::gather<bool, Foam::andOp<bool> >(Foam::List<Foam::Pstream::commsStruct> const&, bool&, Foam::andOp<bool> const&)’:
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:64: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:74: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:86: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:97: undefined reference to `Foam::OPstream::~OPstream()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:97: undefined reference to `Foam::OPstream::~OPstream()’
Make/linux64GccDPDebug/MRFSimpleFoam.o: In function `void Foam::Pstream::scatter<bool>(Foam::List<Foam::Pstream::commsStruct> const&, bool&)’:
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:131: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:141: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:151: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:162: undefined reference to `Foam::OPstream::~OPstream()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/gatherScatter.C:162: undefined reference to `Foam::OPstream::~OPstream()’
Make/linux64GccDPDebug/MRFSimpleFoam.o: In function `double Foam::gSum<double>(Foam::UList<double> const&)’:
/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/FieldFunctions.C:487: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::dictionary const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryFaceCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `typeinfo for Foam::triSurface’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(Foam::triSurface const&, Foam::Field<Foam::Vector<double> > const&, Foam::List<Foam::FixedList<int, 3> >&, Foam::List<Foam::FixedList<double, 3> >&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cartesianCS::cartesianCS(Foam::word const&, Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Vector<double> const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::orientedSurface::orientedSurface(Foam::triSurface const&, Foam::Vector<double> const&, bool)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellSet::cellSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystems::coordinateSystems(Foam::objectRegistry const&, Foam::word const&, Foam::fileName const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellSet::~cellSet()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::smallestDist(Foam::Vector<double> const&, Foam::polyPatch const&, int, Foam::List<int> const&, int&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::~coordinateSystem()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::getPointNeighbours(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::labelledTri> const&, Foam::Field<Foam::Vector<double> > const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystems::coordinateSystems()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::directMappedPolyPatch::typeName’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::wallPoint::greatPoint’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::word const&, Foam::Vector<double> const&, Foam::coordinateRotation const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::operator>>(Foam::Istream&, Foam::wallPoint&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Vector<double> > const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::getPatchIDs(Foam::word const&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystems::rewriteDict(Foam::dictionary&, bool) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::subsetMesh(Foam::List<bool> const&, Foam::List<int>&, Foam::List<int>&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::patchWave::~patchWave()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::~triSurface()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `typeinfo for Foam::directMappedPolyPatch’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::~triSurface()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::topoSetSource::New(Foam::word const&, Foam::polyMesh const&, Foam::dictionary const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::operator=(Foam::triSurface const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::writeDict(Foam::Ostream&, bool) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryPointCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurface::triSurface()’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::triSurfaceTools::delaunay2D(Foam::List<Foam::Vector2D<double> > const&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::directMappedPolyPatch::calcMapping() const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libincompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const’
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)’
collect2: ld returned 1 exit status
make: *** [/root/OpenFOAM/root-1.5-dev/applications/bin/linux64GccDPDebug/MRFSimpleFoam] Error 1
解决办法:
首先配置ld.so.conf如下:
node1:/public/software/MRFSimpleFoam/MRFSimpleFoam # tail /etc/ld.so.conf
/usr/lib
/usr/local/lib64
/opt/kde3/lib64
include /etc/ld.so.conf.d/*.conf
/opt/lampp/lib/mysql
/opt/lampp/lib/mysql
/opt/lampp/lib/mysql
/opt/lampp/lib/mysql
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/dummy
/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt
修改后运行ldconfig,再次编译:
node1:/public/software/MRFSimpleFoam/MRFSimpleFoam # wmake
SOURCE=MRFSimpleFoam.C ;  g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-40 -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/turbulenceModels/RAS -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/transportModels -IlnInclude -I. -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPDebug/MRFSimpleFoam.o
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-40 -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/turbulenceModels/RAS -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/transportModels -IlnInclude -I. -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/public/software/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude   -fPIC Make/linux64GccDPDebug/MRFSimpleFoam.o -L/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPDebug \
-L/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt.bak -lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl  -ggdb3 -DFULLDEBUG -lm -o /root/OpenFOAM/root-1.5-dev/applications/bin/linux64GccDPDebug/MRFSimpleFoam
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleRASModels
collect2: ld returned 1 exit status
make: *** [/root/OpenFOAM/root-1.5-dev/applications/bin/linux64GccDPDebug/MRFSimpleFoam] Error 1
其次修改make文件:
node1:/public/software/MRFSimpleFoam/MRFSimpleFoam # cat Make/options
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/turbulenceModels/RAS \
-I$(LIB_SRC)/transportModels
EXE_LIBS = \
-L/public/software/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt \
-lincompressibleRASModels \
-lincompressibleTransportModels \
-lfiniteVolume
此条目发表在HPC分类目录,贴了, , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。

验证图片

*