[vtkusers] compiling VTK4.2.2 help on Solaris 2.6 please

Ellen Shlossberg Ellen.Shlossberg at tufts.edu
Tue Aug 5 16:58:08 EDT 2003


Hello all,

I have posted an error here before, but I will try again now. I am attempting to
compile VTK 4.2.2 on a Solaris 2.6 with gcc version 2.95.2. after a long while,
i have the following error:

In file included from /usr/openwin/share/include/X11/Intrinsic.h:56,
                 from
/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering/vtkXRenderWindowInteractor.h:41,
                 from
/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering/vtkGraphicsFactory.cxx:62:
/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

*lots of "with no type" errors

*** Error code 1
The following command caused the error:
/usr/local/bin/g++ -o vtkGraphicsFactory.o      -I/usr/openwin/share/include
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/IO
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Imaging
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Graphics
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Filtering
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Common
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Common/Testing/Cxx
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/zlib
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/jpeg
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/png
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/tiff
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/expat
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/freetype/include
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/freetype
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/ftgl/src
-I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/ftgl  
-I/usr/openwin/share/include  -c
/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering/vtkGraphicsFactory.cxx
make: Fatal error: Command failed for target `vtkGraphicsFactory.o'
Current working directory /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering
*** Error code 1
The following command caused the error:
make  all
make: Fatal error: Command failed for target `default_target'
Current working directory /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering
*** Error code 1
The following command caused the error:
cd /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering; make default_target
make: Fatal error: Command failed for target `default_target_Rendering'
Current working directory /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2
*** Error code 1
The following command caused the error:
make  all
make: Fatal error: Command failed for target `default_target'


Are there any pre-compiled binaries of VTK? I have also tried doing a search of
"with no type" errors, but could not find anything relevant.

Any help would be appreciated.

Thanks!
Ellen




More information about the vtkusers mailing list