[vtkusers] Unable to run even the tutorial
Ian Nowland
ian.nowland at ll.mit.edu
Thu Dec 22 11:25:59 EST 2005
Hello,
I'm trying to get VTK working on a redhat cluster. So far I've been
unsuccessful, and can't get the tutorials to compile, regardless of
which compiler I run. The error output I get is:
In file included from
/usr/local/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward/strstream:51,
from /home/nowland/vtk/VTK/Common/vtkIOStream.h:32,
from /home/nowland/vtk/VTK/Common/vtkSystemIncludes.h:40,
from /home/nowland/vtk/VTK/Common/vtkIndent.h:24,
from /home/nowland/vtk/VTK/Common/vtkObjectBase.h:43,
from /home/nowland/vtk/VTK/Common/vtkObject.h:41,
from /home/nowland/vtk/VTK/Common/vtkProcessObject.h:45,
from /home/nowland/vtk/VTK/Common/vtkSource.h:45,
from
/home/nowland/vtk/VTK/Filtering/vtkPolyDataSource.h:29,
from /home/nowland/vtk/VTK/Graphics/vtkConeSource.h:30,
from Cone.cxx:23:
/usr/local/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/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 <iostream> instead
of the deprecated header <iostream.h>. To disable this warning use
-Wno-deprecated.
/tmp/ccuQ8ncD.o(.text+0x11d): In function `main':
: undefined reference to `vtkConeSource::New()'
/tmp/ccuQ8ncD.o(.text+0x17c): In function `main':
: undefined reference to `vtkPolyDataMapper::New()'
/tmp/ccuQ8ncD.o(.text+0x18a): In function `main':
: undefined reference to `vtkPolyDataSource::GetOutput()'
/tmp/ccuQ8ncD.o(.text+0x199): In function `main':
: undefined reference to `vtkPolyDataMapper::SetInput(vtkPolyData*)'
/tmp/ccuQ8ncD.o(.text+0x19e): In function `main':
: undefined reference to `vtkActor::New()'
/tmp/ccuQ8ncD.o(.text+0x1c2): In function `main':
: undefined reference to `vtkRenderer::New()'
/tmp/ccuQ8ncD.o(.text+0x20c): In function `main':
: undefined reference to `vtkRenderWindow::New()'
/tmp/ccuQ8ncD.o(.text+0x27d): In function `main':
: undefined reference to `vtkRenderer::GetActiveCamera()'
/tmp/ccuQ8ncD.o(.text+0x28b): In function `main':
: undefined reference to `vtkCamera::Azimuth(double)'
/tmp/ccuQ8ncD.o(.gnu.linkonce.t._ZN11vtkRenderer8AddActorEP7vtkProp+0x14):
In function `vtkRenderer::AddActor(vtkProp*)':
: undefined reference to `vtkViewport::AddProp(vtkProp*)'
collect2: ld returned 1 exit status
I've searched the mailing list for similar errors, and the two solutions
seemed to be upgrading gcc past 3.2, and using shared libraries. I'm
using shared libraries, and I get this error output with gcc 2.96,
3.2.3, and 3.4. with icpc I get a less verbose but similar error output.
Any suggestions?
Thanks
More information about the vtkusers
mailing list