[Insight-users] Linux compilation question

Bill Oliver billo at Radix . Net
Tue, 3 Sep 2002 14:37:02 -0400 (EDT)


Hi!  I have just joined the mailing list, so if this
has been discussed, please forgive me.

I am trying to compile ITK on a Linux box.  Most of the
preliminaries have compiled OK, with the exception of some
CABLE problems that have to do with downloading with CVS
rather than compiling per se.

Things seemed to go OK for quite awhile but I have run
into the following error:



-----> Begin stderr output

.... crunch crunch crunch...


Building default_target in directory
/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView

/usr/local/bin/cmake
-S/home/oliver/src/Insight/Auxiliary/MetaImage/IView
-O/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView
-H/home/oliver/src/Insight -B/home/oliver/src/Insight_build

/usr/local/bin/fluid -c -h
/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUIBase.h
-o
/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUIBase.cxx
/home/oliver/src/Insight/Auxiliary/MetaImage/IView/IViewGUIBase.fld

/usr/local/bin/fluid -c -h
/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUI.h -o
/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUI.cxx
/home/oliver/src/Insight/Auxiliary/MetaImage/IView/IViewGUI.fld

/usr/local/bin/cmake
-S/home/oliver/src/Insight/Auxiliary/MetaImage/IView
-O/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView
-H/home/oliver/src/Insight -B/home/oliver/src/Insight_build

/usr/bin/g++ -O2 -I/home/oliver/src/Insight/Auxiliary/MetaImage/IView
-I/home/oliver/src/Insight_build
-I/home/oliver/src/Insight/Code/Numerics
-I/home/oliver/src/Insight/Code/Common
-I/home/oliver/src/Insight/Code/IO
-I/home/oliver/src/Insight_build/Code/Numerics/vxl
-I/home/oliver/src/Insight/Code/Numerics/vxl
-I/home/oliver/src/Insight_build/Code/Numerics/vxl/vcl
-I/home/oliver/src/Insight/Code/Numerics/vxl/vcl
-I/home/oliver/src/Insight/Utilities/png
-I/home/oliver/src/Insight/Utilities/zlib -I/usr/local/include/vtk
-I/home/oliver/src/Insight/Code/BasicFilters
-I/home/oliver/src/Insight/Auxiliary/MetaImage
-I/home/oliver/src/Insight/Auxiliary/MetaImage/IView
-I/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView
-I/usr/local/include
-I/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView
-D_PTHREADS  -I/usr/X11R6/include -c
/home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUIBase.cxx
-o IViewGUIBase.o

In file included from /usr/local/include/FL/x.H:45,
                 from /usr/local/include/FL/Fl_Image.H:29,
		 from /usr/local/include/FL/Fl_Menu_Item.H:30,
		from /usr/local/include/FL/Fl_Menu_.H:32,
		from /usr/local/include/FL/Fl_Menu_Bar.H:29,
		from /home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUIBase.h:9,
		from /home/oliver/src/Insight_build/Auxiliary/MetaImage/IView/IViewGUIBase.cxx:3:

/usr/X11R6/include/X11/Xutil.h:363: use of `Region' is ambiguous
/usr/X11R6/include/X11/Xutil.h:238:   first declared as `typedef struct
_XRegion *Region' here
/home/oliver/src/Insight/Code/Common/itkRegion.h:57:   also declared as `class itk::Region' here
/usr/X11R6/include/X11/Xutil.h:363: `Region' denotes an ambiguous type
/usr/X11R6/include/X11/Xutil.h:363: confused by earlier errors, bailing out
make[7]: *** [IViewGUIBase.o] Error 1
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_IView] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_MetaImage] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Auxiliary] Error 2
make: *** [default_target] Error 2


So, I have a namespace conflict.  What's a mother to do?

Is there a g++ option for ignoring this?

Any help would be appreciated!


Config:

OS: Mandrake 8.2, kernel 2.4.18-6mdk
Hardware: Compaq 1215US laptop,
          320MB RAM,
          786MB on disk as swap,
          996MHz AMD cpu,

gcc version 2.96



Thanks,


billo