<!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.&nbsp; 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++&nbsp; -g -O2&nbsp; -I.&nbsp; -I. -I./../graphics -DVTK_USE_GRAPHICS
-I./../imaging
<br>-DVTK_USE_IMAGING&nbsp; -I/usr/openwin/share/include/&nbsp;&nbsp; -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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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.&nbsp; 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: &lt;<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>--&nbsp;
J.A. Lee</pre>
&nbsp;</html>