CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Help Got errors when compiling PVFoamReaderso

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 18, 2006, 20:16
Default When I compiled PVFoamReader.s
  #1
New Member
 
Wei Zhang
Join Date: Mar 2009
Location: Shanghai, China
Posts: 7
Rep Power: 8
joey is on a distinguished road
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
joey is offline   Reply With Quote

Old   September 19, 2006, 01:43
Default You need to copy additional fi
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
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
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Various errors: Floating point, UDF compiling, etc SEMC FLUENT 1 September 6, 2011 09:08
Errors with surfactantFoam While Compiling OpenFOAM141dev from extends chegdan OpenFOAM Installation 1 July 3, 2008 21:10
Compiling errors for OpenFOAM 13 brucejimo OpenFOAM Installation 3 October 5, 2006 00:01
Help Got errors when compiling PVFoamReaderso joey OpenFOAM Paraview & paraFoam 0 September 18, 2006 20:12
Missing header files when compiling PVFoamReaderso joey OpenFOAM Paraview & paraFoam 0 September 17, 2006 20:55


All times are GMT -4. The time now is 08:04.