Re: [ROOT] trouble of compiling ROOT 3.05-07

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Nov 06 2003 - 00:37:51 MET


Make sure you have:

$ rpm -q -f /usr/include/X11/Xlib.h
XFree86-devel-4.2.0-8

Cheers, Fons.



On Wed, 2003-11-05 at 19:42, Jianglai Liu wrote:
> Dear ROOTers,
> 
> I have been tring to compile ROOT 3.05/07 on my desktop. I did the
> normal 
> > ./configure linux 
> and then 
> > gmake
> 
> Somehow it dies when trying to look for the X11 header file. Below is the
> initial portion of the error messages (it was way too long so I can't copy
> all of them.)
> 
> g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -D_REENTRANT -o
> x11/src/GX11Gui.o -c x11/src/GX11Gui.cxx
> In file included from x11/src/GX11Gui.cxx:32:
> include/TGX11.h:31:22: X11/Xlib.h: No such file or directory
> include/TGX11.h:32:23: X11/Xutil.h: No such file or directory
> include/TGX11.h:33:23: X11/Xatom.h: No such file or directory
> include/TGX11.h:34:28: X11/cursorfont.h: No such file or directory
> include/TGX11.h:35:24: X11/keysym.h: No such file or directory
> In file included from include/TGX11.h:37,
>                  from x11/src/GX11Gui.cxx:32:
> include/Xpm.h:85:24: X11/Xlib.h: No such file or directory
> include/Xpm.h:86:25: X11/Xutil.h: No such file or directory
> In file included from include/TGX11.h:37,
>                  from x11/src/GX11Gui.cxx:32:
> include/Xpm.h:162: `Display' was not declared in this scope
> include/Xpm.h:162: parse error before `,' token
> include/Xpm.h:172: `Display' was not declared in this scope
> include/Xpm.h:172: parse error before `,' token
> include/Xpm.h:184: syntax error before `*' token
> include/Xpm.h:185: 'Colormap' is used as a type, but is not defined as a
> type.
> include/Xpm.h:216: 'Bool' is used as a type, but is not defined as a type.
> include/Xpm.h:228: 'Bool' is used as a type, but is not defined as a type.
> include/Xpm.h:327: `Display' was not declared in this scope
> include/Xpm.h:327: `display' was not declared in this scope
> include/Xpm.h:327: `Drawable' was not declared in this scope
> include/Xpm.h:327: parse error before `,' token
> include/Xpm.h:333: `Display' was not declared in this scope
> include/Xpm.h:333: `display' was not declared in this scope
> 
> I never had this trouble before with ROOT up to 3.04/02. Maybe something
> changed on my system, I don't know. My X11 header file should be located
> at /usr/X11R6/include/X11/. I am guess it fails to find them. It doesn't
> seem to be a --with-x11-incdir configuring flag though.
> 
> BTW I am using the standard RH 9 distribution with gcc3.2.2. If anyone
> could give me a hint I would really be appreciated. Thanks a lot!
> 
> Jianglai
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET