[vtkusers] problem on compiling examples on Mandrake Linux 9.0

Charlie H. Chang charlie.chang at nchc.gov.tw
Tue Oct 29 04:22:07 EST 2002


Hello all,
Is there any known-problem about compiling the VTK examples
on Mandrake Linux 9.0 with gcc 3.2?

I have used CMake and VTK cvs source on my mandrake Linux 9.0
Building the VTK is ok, but when I try to compile some of the examples
I have the following error:

--------------------------------------------------------------------------------
host% make
/opt/bin/cmake -S/opt/build/VTK/Examples/DataManipulation/Cxx
-O/opt/build/VTK/Examples/DataManipulation/Cxx
-H/opt/build/VTK/Examples/DataManipulation/Cxx
-B/opt/build/VTK/Examples/DataManipulation/Cxx
g++ -I/opt/build/VTK/Examples/DataManipulation/Cxx -I/opt/include/vtk
-I/usr/X11R6/include
-c /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx
-o Arrays.o
In file included from /usr/include/c++/3.2/backward/strstream:51,
from /opt/include/vtk/vtkSystemIncludes.h:46,
from /opt/include/vtk/vtkIndent.h:27,
from /opt/include/vtk/vtkObjectBase.h:46,
from /opt/include/vtk/vtkObject.h:44,
from /opt/include/vtk/vtkDataArray.h:48,
from /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:23:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
This
file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Examples include substituting the <X> header for the <X.h> header for C++
includes, or <sstream> instead of the deprecated header <strstream.h>.
To disable this warning use -Wno-deprecated.

/opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:
In function `int main(int, char**)':
/opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:87:
no method `vtkPolyData::New'
/opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:89:
invalid use of undefined type `struct vtkPolyData'
/opt/include/vtk/vtkPolyDataMapper.h:34:
forward declaration of `struct vtkPolyData'
/opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:90:
invalid use of undefined type `struct vtkPolyData'
/opt/include/vtk/vtkPolyDataMapper.h:34:
forward declaration of `struct vtkPolyData'
..
...
make[1]: *** [Arrays.o] Error 1
make: *** [default_target] Error 2
----------------------------------------------------------------------

However, some of the examples are ok though. (Modelling and Tutorial/step1)
Any idea?
Thank you in advance!

-- 
Charlie H. Chang, Software Development Group
National Center for High-performance Computing
T: 1-886-3-5776085x362
E: charlie.chang at nchc.gov.tw
W: www.nchc.gov.tw





More information about the vtkusers mailing list