[vtkusers] vtk3.2 Beta configure problems and compilitation warnings

Julia Schnabel Julia.Schnabel at kcl.ac.uk
Fri Jan 12 13:34:43 EST 2001


Hello, 

first of all, I have successfully compiled the new beta release with gcc 2.95.2
on a sun solaris 2.6 machine. This is a quick summary of little problems that I
encountered on the way which I'd like to resolve in a better way - maybe anyone
could help me out here?

1) The usual problem with old openwin X11 includes which is successfully fixed
by setting USER_CXXFLAGS = -fpermissive . (It was suggested that a better way
would be something like "-isystem /usr/openwin/share/include" which would only
do a permissive for the system directories, but remain strict anywhere else, but
that I haven't tried yet). 

Anyway, isn't there any more elegant way of forcing vtk to look for the proper
X11 first? I've tried a --with-x --x-includes=/usr/X11R6.4/include
--x-libraries=/usr/X11R6.4/lib but still in systems.make the following is set: 
GRAPHICS_API_FLAGS = -I/usr/openwin/share/include/   -I/usr/X11R6.4/include   

Using the -fpermissive option, I get tons of warnings which I don't like, again
haven openwin includes before the proper X11 includes:
In file included from /projects/local/vtk/tk/generic/tk.h:83,
                 from ./tkAppInit.cxx:14:
/usr/openwin/share/include/X11/Xlib.h:2063: warning: ANSI C++ forbids
declaration `XSetTransientForHint' with no type
and so on and on and on...

2) More warnings here which don't seem to make much sense:

In file included from
/projects/local/vtk/vtk3.2_gcc/common/vtkSystemIncludes.h:57,
                 from /projects/local/vtk/vtk3.2_gcc/common/vtkIndent.h:52,
                 from /projects/local/vtk/vtk3.2_gcc/common/vtkObject.h:67,
                 from /projects/local/vtk/vtk3.2_gcc/common/vtkDataObject.h:62,
                 from /projects/local/vtk/vtk3.2_gcc/common/vtkDataSet.h:67,
                 from /projects/local/vtk/vtk3.2_gcc/common/vtkImageData.h:52,
                 from /projects/local/vtk/vtk3.2_gcc/common/vtkImageSource.h:55,
                 from
/projects/local/vtk/vtk3.2_gcc/imaging/vtkImageToImageFilter.h:55,
                 from my_include.h:64,
                 from my_source.cxx:21:
/projects/local/vtk/vtk3.2_gcc/common/vtkConfigure.h:16: warning:
`_HP_NO_FAST_MACROS' redefined
But there is only one #define _HP_NO_FAST_MACROS in vtkConfigure.h, and nowhere
else?

3) Minor detail, really, but I tried to follow the instructions in Readme.html
regarding 
building VTK for multiple architectures:
having vtk3.2 in $VTK_HOME
mkdir $HOME/vtk_solaris; cd $HOME/vtk-solaris; $VTK_HOME/configure --with-tcl 
This seems to make a proper setup in the new directory, but when running make,
it can't find the targets dir, nor any of the subtargets like in wrap. This also
happens when trying to do something like --with-src=$VTK_HOME So I ended up
copying the whole vtk3.2 tree to vtk_solaris.
Wouldn't it be better to have configure create architecture dependent libraries
and binaries under $VTK_HOME/lib and bin, e.g. in suitable subdirs like
sparc-sun-solaris2.6 or sparc-sun-solaris2.8 or linux or whatever?

Thanks for reading this far :-) And many more thanks when coming up with (a)
solution(s)!!! 

Julia
-- 
Julia A. Schnabel, Ph.D.
Computational Imaging Science Group    Tel: +44 (0)20 7955 2721 
Radiological Sciences                  Tel: +44 (0)20 7955 4531 (secr.)
5th Floor Thomas Guy House             Fax: +44 (0)20 7955 4532     
Guy's Hospital, King's College London  mailto:julia.schnabel at kcl.ac.uk
London SE1 9RT, UK                     http://www-ipg.umds.ac.uk/j.schnabel/




More information about the vtkusers mailing list