palazi88 |
July 25, 2013 16:59 |
wmake problems during custom utility compilation
Hello everyone
I'm new OF user, just yesterday I succesfully installed 12.3Suse and 2.2.1 OpenFoam on my computer. I followed by this instructions:
http://www.openfoam.org/download/suse.php
And everything looked great, tutorial cases worked, but... when I tried to create my own utility called "wallHeatFluxIncompressibleNu", I got some strange errors. Because I was afraid, that the problem is caused because of code errors, I just copied good, working utility "wallHeatFlux" from OF2.2.1 and then I renamed it to "wallHeatFluxTest" and tried compiled... but I again got the same errors... so I suppose that I don't have some library or sth similar. Maybe someone can help me?
Below you can find list of errors:
Quote:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.2.1/src/turbulenceModels -I/opt/OpenFOAM-2.2.1/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/OpenFOAM-2.2.1/src/thermophysicalModels/specie/lnInclude -I/opt/OpenFOAM-2.2.1/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/OpenFOAM-2.2.1/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM-2.2.1/src/thermophysicalModels/solidThermo/lnInclude -I/opt/OpenFOAM-2.2.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.2.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/wallHeatFluxTest.o -L/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib \
-lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -lLESdeltas -lreactionThermophysicalModels -lfiniteVolume -lgenericPatchFields -lspecie -lfluidThermophysicalModels -lsolidThermo -lOpenFOAM -ldl -lm -o /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/bin/wallHeatFluxTest
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libmeshTools.so, needed by /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libsolidSpecie.so, needed by /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libradiationModels.so, needed by /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libLESfilters.so, needed by /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleLESModels.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libtriSurface.so, needed by /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
Make/linux64GccDPOpt/wallHeatFluxTest.o: In function `main':
wallHeatFluxTest.C.text.startup+0x1007): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `FoamointToPointPlanarInterpolation::findTime(Foam ::List<Foam::instant> const&, int, double, int&, int&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::reduce(double&, Foam::minOp<double> const&, int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::~coordinateSystem()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledBase::typeName'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::regionCoupledPolyPatch'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleLESModels.so: undefined reference to `Foam::LESfilter::New(Foam::fvMesh const&, Foam::dictionary const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(FoamlyMesh const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so: undefined reference to `Foam::Reaction<Foam::exponentialSolidTransport<Fo am::species::thermo<Foam::hExponentialThermo<Foam: :rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::dictionaryConstructorTablePtr_'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryFaceCells(Foa m::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UIPstream::UIPstream(Foam::UPstream::commsT ypes, int, Foam:ynamicList<char, 0u, 2u, 1u>&, int&, int, bool, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::finishedRequest(int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `vtable for Foam::cyclicAMILduInterfaceField'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::mappedPatchBase::calcMapping() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `typeinfo for Foam::mappedPatchBase'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMILduInterfaceField'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::~faceSet()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::mappedPatchBase::calcAMI() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(FoamlyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterfaceField::~cyclicAMILduIn terfaceField()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::UPstream::waitRequests(int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::samplePoints() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::abort()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `FoamintToPointPlanarInterpolation::timeNames(Foam ::List<Foam::instant> const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(FoamlyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::resetRequests(int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledWallPolyPatch::typeName'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam:atchWave:atchWave(Foam:olyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::getPointNeighbours(Foam::Pri mitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMILduInterface'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foamerator<<(Foam::Ostream&, Foam::wallPoint const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::init(int&, char**&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledPolyPatch::typeName'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledBase:wner() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledLduInterface::~regionCoupledLd uInterface()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::mappedPatchBase::sampleMesh() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::UIPstream::UIPstream(int, Foam::PstreamBuffers&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::cyclicAMIPolyPatch::typeName'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::regionCoupledBase'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::NamedEnum<Foam::mappedPatchBase::sampleMode , 5>::names'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::~mappedPatchBase()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::UPstream::nRequests()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam:olyPa tch const&, Foam::dictionary const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam:olyPa tch const&, Foam::mappedPatchBase const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledBase::neighbPatchID() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::mappedPatchBase::samplePolyPatch() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<i nt, Foam::Hash<int> > const&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryPointCells(Fo am::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::mappedPatchBase::typeName'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `typeinfo for Foam::cyclicAMIPolyPatch'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<i nt, Foam::Hash<int> > const&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::regionCoupledLduInterface'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so: undefined reference to `Foam::Reaction<Foam::constIsoSolidTransport<Foam: :species::thermo<Foam::hConstThermo<Foam::rhoConst <Foam::specie> >, Foam::sensibleEnthalpy> > >::dictionaryConstructorTablePtr_'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::sumReduce(double&, int&, int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterface::~cyclicAMILduInterfa ce()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::addValidParOptions(Foam::HashTabl e<Foam::string, Foam::word, Foam::string::hash>&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::regionCoupledBase::AMI() const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::exit(int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::smallestDist(Foam::Vector<do uble> const&, Foam:olyPatch const&, int, Foam::List<int> const&, int&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam:olyPa tch const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::reduce(Foam::Vector2D<double>&, Foam::sumOp<Foam::Vector2D<double> > const&, int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequest(int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam:atchWave::~patchWave()'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam:perator>>(Foam::Istream&, Foam::wallPoint&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::regionCoupledWallPolyPatch'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::write(Foam::Ostream&) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so: undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes , int, char const*, long, int)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::di ctionary const&, Foam:bjectRegistry const&)'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterfaceField::transformCouple Field(Foam::Field<double>&, unsigned char) const'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so: undefined reference to `Foam::FaceCellWaveName::debug'
/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam:ointToPointPlanarInterpolation:ointToPointPl anarInterpolation(Foam::Field<Foam::Vector<double> > const&, Foam::Field<Foam::Vector<double> > const&, double)'
collect2: error: ld returned 1 exit status
make: *** [/opt/OpenFOAM-2.2.1/platforms/linux64GccDPOpt/bin/wallHeatFluxTest] Błąd 1
|
|