Problem compiling vtk 3.1 with Solaris 2.6

Vetle Roeim vetler at ifi.uio.no
Mon Feb 21 13:01:42 EST 2000


on 2000-02-21, owner-vtkusers at public.kitware.com wrote:

> Dear fellow vtker's
> 
> I'm trying to compile vtk 3.1 using the following system configuration
> 
> Sun SPARC Ultra-60
> Solaris 2.6
> gcc 2.95.2
> 
> and
> 
> ./configure --with-x --with-opengl --with-shared --with-patented             
>        --with-contrib --with-local
> 
> The compilation chugs happily along, until it reaches the graphics
> directory, and tries to compile vtkXRenderWindowInteractor.cxx.
> At this point the following error occurs:
> 
> make[1]: Entering directory `/export/home0/stuff/vtk/vtk/graphics'
> /usr/local/bin/g++  -g -O2 -fPIC -DVTK_WORDS_BIGENDIAN -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./../local -DVTK_USE_LOCAL  -DVTK_USE_OGLR -I/usr/openwin/share/include/   
> -I/usr/openwin/include  -I./../common     -c vtkXRenderWindowInteractor.cxx 
> -o vtkXRenderWindowInteractor.o
> In file included from /usr/openwin/share/include/X11/Intrinsic.h:56,
>                  from vtkXRenderWindowInteractor.h:65,
>                  from vtkXRenderWindowInteractor.cxx:47:
> /usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration 
> `XSetTransientForHint' with no type
> /usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration 
> `XActivateScreenSaver' with no type
> /usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration 
> `XAddHost' with no type
> /usr/openwin/share/include/X11/Xlib.h:2086: ANSI C++ forbids declaration 
> `XAddHosts' with no type
> 
> plus a massive dump of similar XSomething error messages.
> 
> Any help / insight into this problem would be most appreciated.
> Thanks.

use the gcc switch '-fpermissive' when compiling (set it in the 
file 'users.make').

(perhaps this should be added to the FAQ?)

vr

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list