CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   Help Got errors when compiling PVFoamReaderso (http://www.cfd-online.com/Forums/openfoam-paraview/61243-help-got-errors-when-compiling-pvfoamreaderso.html)

joey September 18, 2006 20:16

When I compiled PVFoamReader.s
 
When I compiled PVFoamReader.so, I got error message as below:
[zhangwei@Joey PVFoamReader]$ ./Allwmake
make: Nothing to be done for `allFiles'.
make: `lnInclude/uptodate' is up to date.
make: `Make/linuxGcc4DPOpt/dependencies' is up to date.
libso
SOURCE_DIR=.
SOURCE=vtkFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/zhangwei/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/zhangwei/OpenFOAM/linux/paraview-2.4.3/include -I../PVFoamReader -I/home/zhangwei/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/vtkFoam.o
In file included from ../PVFoamReader/vtkFoamReader.h:40,
from vtkFoam.C:38:
../PVFoamReader/vtkDataSetSource.h:22:23: error: vtkSource.h: No such file or directory
vtkFoam.C:39:35: error: vtkDataArraySelection.h: No such file or directory
vtkFoam.C:40:33: error: vtkUnstructuredGrid.h: No such file or directory
vtkFoam.C:41:26: error: vtkPointData.h: No such file or directory
vtkFoam.C:42:25: error: vtkCellData.h: No such file or directory
vtkFoam.C:43:27: error: vtkFloatArray.h: No such file or directory
vtkFoam.C:44:26: error: vtkCharArray.h: No such file or directory
../PVFoamReader/vtkDataSetSource.h:26: error: invalid function declaration
../PVFoamReader/vtkFoamData.h:46: error: invalid function declaration
../PVFoamReader/vtkFoamReader.h:59: error: invalid function declaration
vtkFoamConvertVolField.H: In member function 'void Foam::vtkFoam::convertVolField(const Foam::GeometricField<type,>&)':
vtkFoamConvertVolField.H:42: error: incomplete type 'vtkUnstructuredGrid' used in nested name specifier
vtkFoamConvertVolField.H:42: error: invalid use of undefined type 'struct vtkFoamReader'
vtkFoam.H:53: error: forward declaration of 'struct vtkFoamReader'
vtkFoamConvertVolField.H:44: error: 'vtkFloatArray' was not declared in this scope
vtkFoamConvertVolField.H:44: error: 'cellTypes' was not declared in this scope
vtkFoamConvertVolField.H:44: error: 'vtkFloatArray' is not a class or namespace
vtkFoamConvertVolField.H:63: error: invalid use of undefined type 'struct vtkUnstructuredGrid'
vtkFoam.H:54: error: forward declaration of 'struct vtkUnstructuredGrid'
vtkFoamConvertVolField.H: In member function 'void Foam::vtkFoam::convertVolField(const Foam::GeometricField<type,>&) [with Type = double]':
vtkFoamConvertVolField.H:75: error: incomplete type 'vtkUnstructuredGrid' used in nested name specifier.............and so on.
How can I solve this problem?
Many many thanks!
Joey

hjasak September 19, 2006 01:43

You need to copy additional fi
 
You need to copy additional files from the paraview build:

cd ~/OpenFOAM/linuxSrc

mkdir ~/OpenFOAM/linux/paraview-2.4.4/include
cp ./paraview-2.4.4/VTK/Common/vtk* ~/OpenFOAM/linux/paraview-2.4.4/include/
cp ./paraview-2.4.4/VTK/Filtering/vtk* ~/OpenFOAM/linux/paraview-2.4.4/include/
cp ./paraview-2.4.4-obj/VTK/vtk* ~/OpenFOAM/linux/paraview-2.4.4/include/
cp ./paraview-2.4.4-obj/ParaViewConfig.cmake ~/OpenFOAM/linux/paraview-2.4.4/lib/paraview-2.4/


Hrv


All times are GMT -4. The time now is 19:32.