[vtkusers] VTK 4.0 with VolumePro support on Linux

Sebastian Haase haase at msg.ucsf.edu
Tue Sep 24 20:03:19 EDT 2002


Hi Folks,
I'm trying to get started with VTK !
We have a VolPro1000 board - so I got the VTK source , ccmake and turned the
VolPro1000 option on.
I had to create a directory named 'vli3'  and under that a directory
'include'
to put the header file 'vtk3.h'  into that . So finally I told ccmake that
my header file is in
'/jws18/lehuaStuff/vli3/include/'
When I do a make I get ( maybe after 30 min. or so)
these compiler errors complaining about e.g. VLIContext defined both in a
VTK-header file and in the vli3.h file which came with the VolumePro1000
board. :


g++-3.0 -g -O2 -DvtkRendering_EXPORTS -fPIC -I/home/haase/vtk/VTK/Rendering 
-I/jws18/lehuaStuff -I/home/haase/vtk/VTK/Rendering -I/home/haase/vtk/VTK/Hy
brid -I/home/haase/vtk/VTK/Patented -I/home/haase/vtk/VTK/Parallel -I/home/h
aase/vtk/VTK_volPro -I/home/haase/vtk/VTK/Common -I/home/haase/vtk/VTK/Filte
ring -I/home/haase/vtk/VTK/Imaging -I/home/haase/vtk/VTK/Graphics -I/home/ha
ase/vtk/VTK/IO -I/home/haase/vtk/VTK/Utilities/zlib -I/home/haase/vtk/VTK/Ut
ilities/png -I/home/haase/vtk/VTK/Utilities/jpeg -I/home/haase/vtk/VTK/Commo
n/Testing/Cxx -I/usr/include/tcl8.3 -I/usr/include/python2.2 -I/usr/include/
tcl8.3    -I/usr/X11R6/include -c
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx -o
vtkVolumeProVP1000Mapper.o
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx: In constructor
   `vtkVolumeProVP1000Mapper::vtkVolumeProVP1000Mapper()':
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:89: use of
   `VLIContext' is ambiguous
/home/haase/vtk/VTK/Rendering/vtkVolumeProMapper.h:80:   first declared as
   `class VLIContext' here
/jws18/lehuaStuff/vli3/include/vli3.h:3954:   also declared as `class
   vli3::VLIContext' here
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:89: `VLIContext'
   denotes an ambiguous type
/home/haase/vtk/VTK/Rendering/vtkVolumeProMapper.h:80:   first type here
/jws18/lehuaStuff/vli3/include/vli3.h:3954:   other type here
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:89: parse error
   before `::' token
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:96: use of
   `VLILookupTable' is ambiguous
/home/haase/vtk/VTK/Rendering/vtkVolumeProMapper.h:82:   first declared as
   `class VLILookupTable' here
/jws18/lehuaStuff/vli3/include/vli3.h:3260:   also declared as `class
   vli3::VLILookupTable' here
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:96:
`VLILookupTable'
   denotes an ambiguous type
/home/haase/vtk/VTK/Rendering/vtkVolumeProMapper.h:82:   first type here
/jws18/lehuaStuff/vli3/include/vli3.h:3260:   other type here
/home/haase/vtk/VTK/Rendering/vtkVolumeProVP1000Mapper.cxx:96: parse error
   before `::' token

<snip> (..and so on)

What causes this problem? Why is it including 'vli3.h' (even though I have
VTK 4 - ooh, this might refer to the VolPro1000 lib version , which is
VP1000V3.0.2 .... ) ?
Is gcc-3 a problem ?

Thanks for any help.

Sebastian

--
Sebastian Haase
University of California, San Francisco






More information about the vtkusers mailing list