CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   openFoam-1.7.x installation (http://www.cfd-online.com/Forums/openfoam-installation/124087-openfoam-1-7-x-installation.html)

Roman1 September 27, 2013 04:25

openFoam-1.7.x installation
 
Hello all. I need a help in installing openFoam 1.7.0 if possible, please. I use the latest Ubuntu. Last version of OpenFoam is installed and work OK. I didn't find the .deb pack of openFoam-1.7.1 (0) on official site and I was forced to use source pack. There are the mistakes that I would be glad to resolve with your help. Thanks.

Code:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/postProcessing/postCalc    -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude  -fPIC Make/linux64GccDPOpt/uprime.o -L/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt \
        /home/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/postCalc.o    -lfiniteVolume    -lgenericPatchFields -lOpenFOAM -liberty -ldl  -lm -o /home/vniipo/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/uprime
/usr/bin/ld: Make/linux64GccDPOpt/uprime.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/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/dummy/libPstream.so so try adding it to the linker command line
/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/dummy/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/uprime] Error 1
make[3]: Leaving directory `/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/postProcessing/velocityField/uprime'
make[2]: *** [uprime] Error 2
make[3]: Entering directory `/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/postProcessing/velocityField/vorticity'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/postProcessing/postCalc    -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude  -fPIC Make/linux64GccDPOpt/vorticity.o -L/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt \
        /home/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/postCalc.o    -lfiniteVolume    -lgenericPatchFields -lOpenFOAM -liberty -ldl  -lm -o /home/vniipo/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/vorticity
/usr/bin/ld: Make/linux64GccDPOpt/vorticity.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/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/dummy/libPstream.so so try adding it to the linker command line
/home/vniipo/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/dummy/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Ans so on

wyldckat September 27, 2013 21:13

Greetings Roman and welcome to the forum!

I see that you need OpenFOAM 1.7.x because of this thread: http://www.cfd-online.com/Forums/ope...tallation.html

OK, first let's address the topic of OpenFOAM versions ;) OpenFOAM 1.7 has got the following versions:
You can find instructions on how to build OpenFOAM 1.7.1 on Ubuntu 12.04 here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
As for building OpenFOAM 1.7.x, it's just a matter of replacing in step #2 of the previous, the command:
Code:

tar xzf OpenFOAM-1.7.1.tgz
With this one:
Code:

git clone git://github.com/OpenCFD/OpenFOAM-1.7.x.git
And after you finish step #2, run:
Code:

mv ThirdParty-1.7.1 ThirdParty-1.7.x
Best regards,
Bruno

Roman1 September 30, 2013 09:26

Thanks, Bruno. OpenFoam-1.7.x is now installed and works OK. I appreciate your experience. But there is a lack of some files for the installation of fireFoam - ex. debugName.H. These files are in the openFoam-2.1.1 folders but not in the folders of OF-1.7.x. Why Is it so ?

Roman1 October 2, 2013 04:08

Hello all. Having spent much time at compiling fireFoam I do not have ideas about the reasons of the next mistakes. I need a help, please.

/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `typeinfo for Foam::compressible::LESModel'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::regionModel::postEvolveRegion ()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `typeinfo for Foam::regionModels::singleLayerRegion'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::read()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::directMappedFixedInternalValueFvPatchField< double>::typeName'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::~singleLay erRegion()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::directMappedFixedInternalValueFvPatchField< Foam::Vector<double> >::typeName'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `Foam::regionModels::regionModel1D::~regionModel1D ()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::directMappedFixedPushedInternalValueFvPatch Field<Foam::Vector<double> >::typeName'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::singleLaye rRegion(Foam::fvMesh const&, Foam::word const&, Foam::word const&, bool)'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::regionModel::info() const'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::regionModel::evolveRegion()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `typeinfo for Foam::regionModels::regionModel1D'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::regionModel::evolve()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `Foam::regionModels::regionModel1D::regionModel1D( Foam::fvMesh const&)'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::passivePat chIDs() const'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `Foam::regionModels::regionModel1D::moveMesh(Foam: :List<double> const&, double)'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `Foam::compressible::LESModel::typeName'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::singleLaye rRegion(Foam::fvMesh const&)'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::directMappedFieldFvPatchField<double>::type Name'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libpyrolysisModels17x.so: undefined reference to `Foam::regionModels::regionModel1D::read()'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsolidChemistryModel17x.so: undefined reference to `Foam::basicSolidThermo::New(Foam::fvMesh const&)'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::directMappedFixedPushedInternalValueFvPatch Field<double>::typeName'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::magSf() const'
/home/vniipo/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libsolidMixture.so: undefined reference to `Foam::solid::New(Foam::Istream&)'
/home/vniipo/OpenFOAM/vniipo-1.7.x/lib/linux64GccDPOpt/libsurfaceFilmModels17x.so: undefined reference to `Foam::regionModels::singleLayerRegion::nHat() const'
collect2: ld returned 1 exit status
make: *** [/home/vniipo/OpenFOAM/vniipo-1.7.x/applications/bin/linux64GccDPOpt/fireFoam] Error 1

wyldckat October 2, 2013 08:02

Sorry, busy week.

Quick answer:
  1. Clean the folder where you have your personal fireFoam version:
    Code:

    wclean all
  2. Then check the instructions on this thread: http://www.cfd-online.com/Forums/ope...-firefoam.html


All times are GMT -4. The time now is 03:53.