CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Help Got errors when compiling PVFoamReaderso

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2006, 21:55
Default Help Got errors when compiling PVFoamReaderso
  #1
New Member
 
Wei Zhang
Join Date: Mar 2009
Location: Shanghai, China
Posts: 6
Rep Power: 17
joey is on a distinguished road
All the moduels of my FOAM is compiled well except for the PVFoamReader.so. When compiling the PVFoamReader.so comes the Error Messages of missing headerfiles:

Can not find the vtkDataSet.H, vtkSource.H and so on...
How can I solve this problem ? Thanks a lot!
Joey
joey is offline   Reply With Quote

Old   September 18, 2006, 21:16
Default Help Got errors when compiling PVFoamReaderso
  #2
New Member
 
Wei Zhang
Join Date: Mar 2009
Location: Shanghai, China
Posts: 6
Rep Power: 17
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, 02:43
Default You need to copy additional fi
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 22:21.