Compililation problems

Donald Tournier dtournie at ich.ucl.ac.uk
Wed Apr 19 09:01:25 EDT 2000


Hi!

I want to use VTK on both linux PC's and Sun Solaris (Ultrasparc), but I
am getting compilation errors for both of them:

On the Sun, I simply typed:
env CXX=/usr/local/bin/g++ CC=/usr/local/bin/gcc ./configure
make

The compilation fails in the graphics/ directory. This is the message
displayed:

-----------------------------------------------
/usr/local/bin/g++  -g -O2 -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/usr/openwin/include   -I./../common -I/home/ausab
le/software/src/tcl7.6/tk4.2/generic -I/home/ausable/software/src/tcl7.6/tcl7.6/generic   -I/home/schroede/montnaro/Python-1.4/Include -c vtkGraphicsFactory.cxx -o vtkGraphicsFactory.o
vtkGraphicsFactory.cxx: In function `static class vtkObject * vtkGraphicsFactory::CreateInstance(const char *)':
vtkGraphicsFactory.cxx:181: `vtkXRenderWindowInteractor' undeclared (first use this function)
vtkGraphicsFactory.cxx:181: (Each undeclared identifier is reported only once
vtkGraphicsFactory.cxx:181: for each function it appears in.)
vtkGraphicsFactory.cxx:181: parse error before `::'
*** Error code 1
make: Fatal error: Command failed for target `vtkGraphicsFactory.o'
Current working directory /opt/vtk/graphics
*** Error code 1
make: Fatal error: Command failed for target `build_graphics'
----------------------------------------------

Also, I don't know how to tell configure to use the xgl library. Maybe
someone can tell me?

For the Linux PC (running SuSE linux), I typed:

env CXX=/usr/bin/g++ CC=/usr/bin/gcc ./configure --with-mesa
--with-contrib --with-patented
make

This also failed in the graphics/ directory, probably at the equivalent
point. This was the message:

---------------------------------------------
/usr/bin/g++  -g -O2 -fPIC -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHA
VE_UNISTD_H -I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGIN
G -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB  -I/usr/include/G
L -DVTK_USE_MESA   -I/usr/X11R6/include  -I./../common -I/home/ausable/software/src/tcl
7.6/tk4.2/generic -I/home/ausable/software/src/tcl7.6/tcl7.6/generic  -I/home/schroede/
montnaro/Python-1.4/Include -c vtkMesaRenderWindow.cxx -o vtkMesaRenderWindow.o
In file included from vtkMesaRenderWindow.h:68,
                 from vtkMesaRenderWindow.cxx:45:
/usr/include/GL/osmesa.h:128: syntax error before `APIENTRY'
/usr/include/GL/osmesa.h:139: syntax error before `void'
/usr/include/GL/osmesa.h:170: syntax error before `APIENTRY'
/usr/include/GL/osmesa.h:180: syntax error before `APIENTRY'
/usr/include/GL/osmesa.h:197: syntax error before `void'
/usr/include/GL/osmesa.h:212: syntax error before `void'
/usr/include/GL/osmesa.h:226: syntax error before `APIENTRY'
vtkMesaRenderWindow.cxx: In method `vtkMesaRenderWindow::~vtkMesaRenderWindow()':
vtkMesaRenderWindow.cxx:227: warning: implicit declaration of function `int OSMesaDestr
oyContext(...)'
vtkMesaRenderWindow.cxx: In method `void vtkMesaRenderWindow::WindowInitialize()':
vtkMesaRenderWindow.cxx:460: warning: implicit declaration of function `int OSMesaCreat
eContext(...)'
vtkMesaRenderWindow.cxx:460: warning: assignment to `osmesa_context *' from `int' lacks
 a cast
vtkMesaRenderWindow.cxx: In method `void vtkMesaRenderWindow::MakeCurrent()':
vtkMesaRenderWindow.cxx:1186: warning: implicit declaration of function `int OSMesaMake
Current(...)'
make[1]: *** [vtkMesaRenderWindow.o] Error 1
make[1]: Leaving directory `/opt/vtk/graphics'
make: *** [build_graphics] Error 2    
---------------------------------------------

I have the feeling these two problems may be related. If anyone has an
idea which could help me, it would be really appreciated.

Thank you very much,

Donald.

_____________________________________________
Jacques-Donald Tournier
Physics & Radiology Unit
Institute of Child Health
30 Guildford Street
London WC1N 1EH

email: D.Tournier at ich.ucl.ac.uk
tel: +44 (0)171 405 9200 ext 0338


--------------------------------------------------------------------
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