[vtkusers] Mandrake Linux 9.0 -- VTK build problem
Jonathan Lau
jclau at uwaterloo.ca
Sat Jan 11 20:34:25 EST 2003
Hi,
I am currently having problems building vtk4.0 on a "fresh" install of
Mandrake Linux 9.0 (g++ version 3.2).
I have been following the installation instructions in VTK/README.txt.
However, my install is failing when building vtkXImageWindow.cxx with
the following errors:
begin>
g++ -DvtkRendering_EXPORTS -fPIC -I/home/jclau/VTK/Rendering
-I/home/jclau/VTK/Rendering -I/home/jclau/VTK -I/home/jclau/VTK/Common
-I/home/jclau/VTK/Filtering -I/home/jclau/VTK/Imaging
-I/home/jclau/VTK/Graphics -I/home/jclau/VTK/IO
-I/home/jclau/VTK/Utilities/zlib -I/home/jclau/VTK/Utilities/png
-I/home/jclau/VTK/Utilities/jpeg -I/home/jclau/VTK/Common/Testing/Cxx
-c /home/jclau/VTK/Rendering/vtkXImageWindow.cxx -o vtkXImageWindow.o
In file included from /home/jclau/VTK/Rendering/vtkXImageWindow.cxx:42:
/home/jclau/VTK/Rendering/vtkXImageWindow.h:53:29: X11/Xlib.h: No such
file or directory
/home/jclau/VTK/Rendering/vtkXImageWindow.h:54:30: X11/Xutil.h: No such
file or directory
/home/jclau/VTK/Rendering/vtkXImageWindow.h:55:35: X11/cursorfont.h: No
such file or directory
/home/jclau/VTK/Rendering/vtkXImageWindow.h:56:26: X11/X.h: No such file
or directory
/home/jclau/VTK/Rendering/vtkXImageWindow.h:57:31: X11/keysym.h: No such
file or directory
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from /home/jclau/VTK/Common/vtkSystemIncludes.h:84,
from /home/jclau/VTK/Common/vtkIndent.h:52,
from /home/jclau/VTK/Common/vtkObject.h:67,
from /home/jclau/VTK/Common/vtkWindow.h:53,
from /home/jclau/VTK/Rendering/vtkImageWindow.h:54,
from /home/jclau/VTK/Rendering/vtkXImageWindow.h:59,
from /home/jclau/VTK/Rendering/vtkXImageWindow.cxx:42:
/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.
In file included from /home/jclau/VTK/Rendering/vtkXImageWindow.cxx:42:
/home/jclau/VTK/Rendering/vtkXImageWindow.h:86: parse error before `)' token
/home/jclau/VTK/Rendering/vtkXImageWindow.h:87: `Window' was not
declared in this scope
...(etc, etc. --> more tk-related errors)...
/home/jclau/VTK/Rendering/vtkXImageWindow.h:204: `void operator=(...)'
must be a nonstatic member function
/home/jclau/VTK/Rendering/vtkXImageWindow.h:204: `void operator=(...)'
must take exactly two arguments
/home/jclau/VTK/Rendering/vtkXImageWindow.cxx:51: syntax error before
`*' token
...(etc, etc. --> a whole bunch of other problems, probably due to the
header file errors...)...
/home/jclau/VTK/Rendering/vtkXImageWindow.cxx:1228: `class
vtkXImageWindow' has no member named `ColorMap'
/home/jclau/VTK/Rendering/vtkXImageWindow.cxx:1228: `XSetWindowColormap'
undeclared (first use this function)
make[3]: *** [vtkXImageWindow.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2
<end
The source of the problem seems to be that vtkXImageWindowHeader.h can't
find the X11 headers. How can I get the vtkXImageWindow header to "see"
these header files? i.e. will I have to modify
the vtkXImageWindowHeader.h manually, or is it because my build settings
are off?
If you want specific information about my build settings please let me
know and I will send them over. I just don't want to overload the list
with my whole CMakeCache.txt...
Sorry, if this is a trivial problem, I am still new to this.
Any help would be appreciated!
Jon
More information about the vtkusers
mailing list