[vtkusers] 3.12/Linux compilation problem

Elvis Chen chene at cs.queensu.ca
Fri Jul 7 15:12:16 EDT 2000


greetings,

I downloaded vtk312Unix.tar.gz and tried to compile it under Linux
(Mandrake 7.1, XFree86 4.0 with nvidia glx installed, gcc 2.95.3 (19991030
prelease).  After edited user.make to specify the header files for
tck/tk/python, I ran the following "configure" command:

salmon [2:26pm] [/home/chene/vtk312/vtk31]>./configure --with-opengl
--with-shared --with-tcl --with-python --with-tkwidget --with-patented
--with-contrib

I use "--with-opengl" since I'm using nvidia's glx driver for hardware
acceleration.  I then ran gmake; it ran for a while, but stops at:

c++  -O3  -fPIC -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H
-DHAVE_UNISTD_H -I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
-DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib
-DVTK_USE_CONTRIB  -I/usr/X11R6/include  -I./../common
-I/usr/src/RPM/SOURCES/tk8.0.5/generic
-I/usr/src/RPM/SOURCES/tcl8.0.5/generic  -I/usr/include/python1.5 -c
vtkGraphicsFactory.cxx -o vtkGraphicsFactory.o
vtkGraphicsFactory.cxx: In function `static class vtkObject *
vtkGraphicsFactory::CreateInstance(const char *)':
vtkGraphicsFactory.cxx:181: `vtkXRenderWindowInteractor' undeclared (first
use this function)
vtkGraphicsFactory.cxx:181: (Each undeclared identifier is reported only
once
vtkGraphicsFactory.cxx:181: for each function it appears in.)
vtkGraphicsFactory.cxx:181: parse error before `::'
gmake[1]: *** [vtkGraphicsFactory.o] Error 1
gmake[1]: Leaving directory `/home/chene/vtk312/vtk31/graphics'
gmake: *** [build_graphics] Error 2


Can someone please give me a hand to figure out what's wrong?  I'd really
like to try linux with hardware OpenGL acceleration (I was previously
using g200, and vtk was very slow.  Now I'm using TNT2)

thanx in advance,

Elvis






More information about the vtkusers mailing list