Error occured in the installation of ROOT_v5.16

Hello,

I was trying to compile ROOT_v5.16 with gcc3.2.3 on SLC3. I followed the steps on the User Guide, and enabled roofit by ./configure --enable-roofit.
Then I started gmake, it worked correctly for a while, and then following error message appeared:

g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Ifreetype/src/freetype-2.1.9/include -o ftgl/src/FTVectoriser.o -c ftgl/src/FTVectoriser.cxx
ftgl/src/FTVectoriser.cxx: In member function void FTVectoriser::MakeMesh(double)': ftgl/src/FTVectoriser.cxx:184:GLUtesselator’ undeclared (first use this
function)
ftgl/src/FTVectoriser.cxx:184: (Each undeclared identifier is reported only
once for each function it appears in.)
ftgl/src/FTVectoriser.cxx:184: tobj' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:194:gluTessProperty’ undeclared (first use this
function)
ftgl/src/FTVectoriser.cxx:203: gluTessNormal' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:204:gluTessBeginPolygon’ undeclared (first use this
function)
ftgl/src/FTVectoriser.cxx:210: gluTessBeginContour' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:218:gluTessEndContour’ undeclared (first use this
function)
ftgl/src/FTVectoriser.cxx:221: gluTessEndPolygon' undeclared (first use this function) gmake: *** [ftgl/src/FTVectoriser.o] Error 1 rm utils/src/RStl_tmp.cxx utils/src/rootcint_tmp.cxx bin/rmkdepend -R -fftgl/src/FTVectoriser.d -Y -w 1000 -- -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Ifreetype/src/freetype-2.1.9/include -D__cplusplus -- ftgl/src/FTVectoriser.cxx g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Ifreetype/src/freetype-2.1.9/include -o ftgl/src/FTVectoriser.o -c ftgl/src/FTVectoriser.cxx ftgl/src/FTVectoriser.cxx: In member functionvoid
FTVectoriser::MakeMesh(double)’:
ftgl/src/FTVectoriser.cxx:184: GLUtesselator' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:184: (Each undeclared identifier is reported only once for each function it appears in.) ftgl/src/FTVectoriser.cxx:184:tobj’ undeclared (first use this function)
ftgl/src/FTVectoriser.cxx:194: gluTessProperty' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:203:gluTessNormal’ undeclared (first use this
function)
ftgl/src/FTVectoriser.cxx:204: gluTessBeginPolygon' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:210:gluTessBeginContour’ undeclared (first use this
function)
ftgl/src/FTVectoriser.cxx:218: gluTessEndContour' undeclared (first use this function) ftgl/src/FTVectoriser.cxx:221:gluTessEndPolygon’ undeclared (first use this
function)
gmake: *** [ftgl/src/FTVectoriser.o] Error 1

Gmake stopped after giving that message.

Could anyone help me figure what is wrong?Thanks in advance.

Cheers,
liuk

I tried on both a SLC3 machine (my own development machine) and a SLC4 machine (one of the CERN lxplus) and I do not see the problem you encountered. Is gl properlly installed on your machine ? are the missing items like GLUtesselator defined in your glu.h file ?

Thank you. I have switched to ROOT_v5.14, and the problem disappered.

A similar error message while installin root_v5.16 on ubuntu dapper:

nice -20 make install

bin/rmkdepend -R -fftgl/src/FTBitmapGlyph.d -Y -w 1000 – -pipe -m32 -Wall -W -W
overloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Ifreetype/src/free
type-2.1.9/include -D__cplusplus – ftgl/src/FTBitmapGlyph.cxx
g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFI
G -pthread -Ifreetype/src/freetype-2.1.9/include -DUSEPCH -include precompile.h
-o ftgl/src/FTBitmapGlyph.o -c ftgl/src/FTBitmapGlyph.cxx
In file included from include/FTBitmapGlyph.h:9,
from ftgl/src/FTBitmapGlyph.cxx:3:
include/FTGL.h:44:31: error: GL/gl.h: No such file or directory
include/FTGL.h:45:32: error: GL/glu.h: No such file or directory
ftgl/src/FTBitmapGlyph.cxx: In member function â:
ftgl/src/FTBitmapGlyph.cxx:54: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:54: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:54: error: expected primary-expression before â
ftgl/src/FTBitmapGlyph.cxx:54: error: expected )' before â ftgl/src/FTBitmapGlyph.cxx:58: error: â was not declared in this scope ftgl/src/FTBitmapGlyph.cxx:58: error: â was not declared in this scope ftgl/src/FTBitmapGlyph.cxx:59: error: ISO C++ forbids declaration of â with no t ype ftgl/src/FTBitmapGlyph.cxx:59: error: ISO C++ forbids declaration of â with no t ype ftgl/src/FTBitmapGlyph.cxx:59: error: expected primary-expression before â ftgl/src/FTBitmapGlyph.cxx:59: error: expected)’ before â
ftgl/src/FTBitmapGlyph.cxx:62: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:62: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:62: error: expected primary-expression before â
ftgl/src/FTBitmapGlyph.cxx:62: error: expected `)’ before â
make: *** [ftgl/src/FTBitmapGlyph.o] Error 1

I have gl-117 installed
gl.h and glu.h are in /cint/include/GL/ I don't know why it can't see these
I couldn't locate FTGL.h

[quote=“ssa”]A similar error message while installin root_v5.16 on ubuntu dapper:

nice -20 make install

bin/rmkdepend -R -fftgl/src/FTBitmapGlyph.d -Y -w 1000 – -pipe -m32 -Wall -W -W
overloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Ifreetype/src/free
type-2.1.9/include -D__cplusplus – ftgl/src/FTBitmapGlyph.cxx
g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFI
G -pthread -Ifreetype/src/freetype-2.1.9/include -DUSEPCH -include precompile.h
-o ftgl/src/FTBitmapGlyph.o -c ftgl/src/FTBitmapGlyph.cxx
In file included from include/FTBitmapGlyph.h:9,
from ftgl/src/FTBitmapGlyph.cxx:3:
include/FTGL.h:44:31: error: GL/gl.h: No such file or directory
include/FTGL.h:45:32: error: GL/glu.h: No such file or directory

I have gl-117 installed
gl.h and glu.h are in /cint/include/GL/ I don't know why it can't see these
I couldn't locate FTGL.h[/quote]

The GL header files are in the Ubuntu package libglu1-mesa-dev. Just install that one and it should be fine.

Cheers,
Frank

Hi all

I have the same problem on a machine where i have not the possibility to
install opengl.

For the installation of ROOT i explicitely disable opengl because it is not installed. Lokking in the Makefile of ROOT v5.16 the directory ftgl is
defined as MODULE. If i understand the make procedure correct, then this
modules are installed by all means.

Does it make sense to add a module to this list which depends on opengl
when you can disable opengl during configuration?

Ciao

Florian

[quote=“ssa”]A similar error message while installin root_v5.16 on ubuntu dapper:

nice -20 make install

bin/rmkdepend -R -fftgl/src/FTBitmapGlyph.d -Y -w 1000 – -pipe -m32 -Wall -W -W
overloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Ifreetype/src/free
type-2.1.9/include -D__cplusplus – ftgl/src/FTBitmapGlyph.cxx
g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFI
G -pthread -Ifreetype/src/freetype-2.1.9/include -DUSEPCH -include precompile.h
-o ftgl/src/FTBitmapGlyph.o -c ftgl/src/FTBitmapGlyph.cxx
In file included from include/FTBitmapGlyph.h:9,
from ftgl/src/FTBitmapGlyph.cxx:3:
include/FTGL.h:44:31: error: GL/gl.h: No such file or directory
include/FTGL.h:45:32: error: GL/glu.h: No such file or directory
ftgl/src/FTBitmapGlyph.cxx: In member function â:
ftgl/src/FTBitmapGlyph.cxx:54: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:54: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:54: error: expected primary-expression before â
ftgl/src/FTBitmapGlyph.cxx:54: error: expected )' before â ftgl/src/FTBitmapGlyph.cxx:58: error: â was not declared in this scope ftgl/src/FTBitmapGlyph.cxx:58: error: â was not declared in this scope ftgl/src/FTBitmapGlyph.cxx:59: error: ISO C++ forbids declaration of â with no t ype ftgl/src/FTBitmapGlyph.cxx:59: error: ISO C++ forbids declaration of â with no t ype ftgl/src/FTBitmapGlyph.cxx:59: error: expected primary-expression before â ftgl/src/FTBitmapGlyph.cxx:59: error: expected)’ before â
ftgl/src/FTBitmapGlyph.cxx:62: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:62: error: ISO C++ forbids declaration of â with no t
ype
ftgl/src/FTBitmapGlyph.cxx:62: error: expected primary-expression before â
ftgl/src/FTBitmapGlyph.cxx:62: error: expected `)’ before â
make: *** [ftgl/src/FTBitmapGlyph.o] Error 1

I have gl-117 installed
gl.h and glu.h are in /cint/include/GL/ I don't know why it can't see these
I couldn't locate FTGL.h[/quote]