CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Troubles with compiled version of paraviewparafoam (http://www.cfd-online.com/Forums/openfoam-bugs/62486-troubles-compiled-version-paraviewparafoam.html)

tgazz January 7, 2008 11:24

Hi everybody ! I am new on
 
Hi everybody !

I am new on this forum, and as a new comer, I must ask question on compilation troubles and bugs with paraFoam !

I did download everything for the 1.4.1 openFoam version.
I did compile it using the wiki tutorial.

The installation of third party softwares went smoothly. (gcc, java, cmake, paraview...). I also had to use foamFlex instead of my flex version.

My issud concerns paraFoam, but before I had a small trouble, that may be of interest:
During the big ./Allwmake in $HOME/OpenFOAM/OpenFOAM-1.4.1, I faced this compilation error. This is my first trouble.

#### begin ####

make[3]: Entering directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/da taConversion/foamToVTK'
SOURCE=foamToVTK.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/lagrangian/basic/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam/lnInclude -IlnInclude -I. -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/foamToVTK.o
Dans le fichier inclus à partir de writeFuns.H:244,
à partir de foamToVTK.C:90:
writeFunsTemplates.C:30:36: erreur: interpolatePointToCell.H : Aucun fichier ou répertoire de ce type
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = double]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = double, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:518: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::Vector<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::Vector<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:519: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::SphericalTensor<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::SphericalTensor<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:520: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::SymmTensor<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:521: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::Tensor<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::Tensor<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:522: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
make[3]: *** [Make/linuxGccDPOpt/foamToVTK.o] Erreur 1
make[3]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/da taConversion/foamToVTK'
make[2]: *** [foamToVTK] Erreur 2
make[2]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/da taConversion'
make[1]: *** [dataConversion] Erreur 2
make[1]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing'
make: *** [postProcessing] Erreur 2
+ '[' 0 = 1 -a '' = doc ']'

#### end ####

I could fix it by doing this:

In the directory $HOME/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphics/PVF oamReader, I do :

wmake libso vtkFoam

And then ./Allwmake again in the $HOME/OpenFOAM/OpenFOAM-1.4.1 directory, and everything compiles fine...

Solvers now seem to work fine. For example, the dambreak example runs OK.

My issue concerns paraFoam. The command `paraFoam . damBreak` in the directory ~/OpenFOAM/OpenFOAM-1.4.1/tutorials/interFoam gives the following error message

#### begin ####

ErrorMessage
# Error or warning: ERROR: In /home/openfoam/OpenFOAM/linux/paraview-2.4.4/Utilities/VTKClientServer/vtkClient ServerInterpreter.cxx, line 882
vtkClientServerInterpreter (0x8069968): Cannot load module "PVFoamReader" from "/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libPVFoamReader.so".


ERROR: In /home/openfoam/OpenFOAM/linux/paraview-2.4.4/Utilities/VTKClientServer/vtkClient ServerInterpreter.cxx, line 886
vtkClientServerInterpreter (0x8069968): libstdc++.so.6: cannot handle TLS data


ERROR: In /home/openfoam/OpenFOAM/linux/paraview-2.4.4/GUI/Client/vtkPVXMLPackageParser.cx x, line 678
vtkPVXMLPackageParser (0x88aac20): Error loading Library component PVFoamReader



ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in file: /home/openfoam/OpenFOAM/linux/paraview-2.4.4/GUI/Client/vtkPVWindow.cxx (2366)
vtkPVWindow (0x827bab0): Cannot read file information when no reader is specified. This probably means that the reader for the file with name: /home/openfoam/OpenFOAM/OpenFOAM-1.4.1/tutorials/interFoam/damBreak/damBreak.foa m cannot be found
ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in file: /home/openfoam/OpenFOAM/linux/paraview-2.4.4/GUI/Widgets/vtkKWApplication.cxx (1335)
vtkPVApplication (0x80f34a8):
Script:
paraFoam.pvs
Returned Error on line 11:
invalid command name ""
ErrorMessage end
called Tcl_FindHashEntry on deleted table
/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/bin/paraFoam: line 76: 27746 Abandon /home/openfoam/OpenFOAM/linux/paraview-2.4.4/bin/paraview paraFoam.pvs

#### end ####

There seems to be 2 problems in 1 there.

First, the Cannot load module "PVFoamReader" from ".../.../libPVFoamReader.so" thing.
Then, the "There was a VTK Error in file" trouble.

I did include the "wmake libso vtkFoam" trick in the begining, because I don't know what to think about it. It _may_ be source of the VTK issue.

It is interesting to note that the I can visualize my datas with a precompiled version of paraview. Also, my compiled paraview launches and seems to work well.

I found some similar messages in the forum, but I could not go through my answer.

So if anyone has ideas to solve my problems, I would be very glad!

zoune April 17, 2008 10:42

I managed to cope with that by
 
I managed to cope with that by making the symlinks of the includes "a la mano":
writeFunsTemplates.C:30:36: erreur: interpolatePointToCell.H : Aucun fichier ou répertoire de ce type

>> search for this file and you will find it in ...
/OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam

>> let's have a look in the includes stuff :
-I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam/lnInclude

>> ok, so we have to create the lnInclude directory under this path:
cd OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam
mkdir lnInclude

>> and symlink the file inside:
ln interpolate* lnInclude/

Et voilou !


All times are GMT -4. The time now is 12:13.