<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
In you system.make, try changing-I/usr/openwin/share/include/ to -isystem
/usr/openwin/share/include/
<p>Mukta Nandwani wrote:
<blockquote TYPE=CITE>Hi there,
<p>I am trying to install vtk on sun4. I configured as:
<br>./configure --with-mesa --with-shared --with-java --with-patented
<br>--with-contrib
<p>Now, when i try gmake, i get the following compilation error:
<p>c++ -g -O2 -I. -I. -I./../graphics -DVTK_USE_GRAPHICS
-I./../imaging
<br>-DVTK_USE_IMAGING -I/usr/openwin/share/include/ -I/usr/openwin/include
<br>-I./../common -I../common -I/home/ausable/software/src/tcl7.6/tk4.2/generic
<br>-I/home/ausable/software/src/tcl7.6/tcl7.6/generic -I/usr/java1.2/include
<br>-I/usr/java1.2/include/solaris -I/home/schroede/montnaro/Python-1.4/Include
-c
<br>vtkOpenGLImageActor.cxx -o vtkOpenGLImageActor.o
<br>In file included from vtkOpenGLRenderWindow.h:53,
<br>
from vtkOpenGLImageActor.cxx:49:
<br>/usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration
<br>`XSetTransientForHint' with no type
<br>/usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration
<br>`XActivateScreenSaver' with no type
<p>..and lots of other such terms (in Xlib.h, and Xutil.h) that seem to
have no
<br>type. I tried looking into the Xlib.h file, and found that all
these terms
<br>are declared as (for example):
<p>extern XSetTransientForHint
<p>Am I missing some include file here?
<p>Thanks,
<br>Mukta.
<p>_______________________________________________
<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></blockquote>
<pre>--
J.A. Lee</pre>
</html>