Page 1 of 1

build errors

Posted: 21.05.2002, 15:47
by pmcevoy
Hello,

I am trying to build celestia under redhat 6.2 and 7.3 and I have not been able to get past ./configure. In both cases it complains about missing gl.h header files and doesn't detect gtk. I have enclosed the stdout of ./configure from the 6.2 machine on which I have Mesa-3.4.1-1, Mesa-devel-3.4.1-1 and gtkglarea-1.2.1-2, gtkglarea-devel-1.2.1-2 installed.

[pmcevoy@portugal celestia-1.2.4]$ ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether to include debugging code... ./configure: test: ==: binary operator expected
no
checking whether to be pedantic... ./configure: test: ==: binary operator expected
no
checking whether to do profiling... ./configure: test: ==: binary operator expected
no
checking whether to disable GTK.... ./configure: test: ==: binary operator expected
yes
./configure: test: ==: binary operator expected
./configure: test: ==: binary operator expected
./configure: test: ==: binary operator expected
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
./configure: test: ==: binary operator expected
checking for GL/gl.h... no
configure: error: No gl.h found. See INSTALL file for ddetails about how to correct this problem.
[pmcevoy@portugal celestia-1.2.4]$

I have also tried running ./configure --with-gl-lib=/usr/X11R6/lib --with-gl-inc=/usr/X11R6/include --with-gtk. This did not seem to have any effect.

Any help you could offer me would be greatly appreciated.

Thank you,

Patrick McEvoy

Posted: 21.05.2002, 18:14
by t00fri
Go manually to the header directories:

cd /usr/include/GL

Do you have the following header files there?
gl.h gl_mangle.h glext.h glu.h glut.h glx.h glx_mangle.h
glxext.h osmesa.h xmesa.h xmesa_x.h xmesa_xf86.h

If yes proceed to

cd /usr/X11R6/include/GL

Do have the following headers there:

GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h
MesaDrawingArea.h MesaDrawingAreaP.h MesaMDrawingArea.h MesaMDrawingAreaP.h
MesaWorkstation.h MesaWorkstationP.h gle.h


If yes check

rpm -qi gtk
rpm -qi gtk-devel

Altogether Celestia needs the following libraries installed


libpng.so.2 => /usr/lib/libpng.so.2 (0x40029000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4005b000)
libglut.so.3 => /usr/lib/libglut.so.3 (0x4007a000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x400ac000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x40135000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40182000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4018d000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x401a5000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x402d5000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x4030b000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x4030e000)
libdl.so.2 => /lib/libdl.so.2 (0x40333000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40337000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4033f000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4034e000)
libm.so.6 => /lib/libm.so.6 (0x4040e000)
libgnome.so.32 => /opt/gnome/lib/libgnome.so.32 (0x40430000)
libgnomesupport.so.0 => /opt/gnome/lib/libgnomesupport.so.0 (0x40449000)
libesd.so.0 => /usr/lib/libesd.so.0 (0x4044f000)
libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x40475000)
libdb.so.2 => /lib/libdb.so.2 (0x40497000)
libgnomeui.so.32 => /opt/gnome/lib/libgnomeui.so.32 (0x404a5000)
libart_lgpl.so.2 => /opt/gnome/lib/libart_lgpl.so.2 (0x4057c000)
libgdk_imlib.so.1 => /usr/lib/libgdk_imlib.so.1 (0x4058b000)
libgtkgl.so.5 => /usr/lib/libgtkgl.so.5 (0x405af000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x405b4000)
libc.so.6 => /lib/libc.so.6 (0x40601000)
libz.so.1 => /lib/libz.so.1 (0x40727000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40736000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x4074c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40ae7000)

Go and look for them in the listed directories

If you are still OK then you should also get beyond the configure step...;-)

Much luck

Bye Fridger

Build Errors

Posted: 22.05.2002, 12:03
by Patrick McEvoy
Hello Fridger,

Thanks for such a quick reply. After going through your message I have discovered the following issues.

I have gtk+-1.2.10-1 and gtk+-devel-1.2.10-1 installed not gtk and gtk-devel which seems to cause the configure program to fail. The problem seems to be checking for a gtkglarea function prototype which does exist.

The other issue is that /usr/lib/libGLcore.so does not exist but I have the XFree86 library instead /usr/X11R6/lib/modules/extensions/libGLcore.a

Can I build celestia with this setup by changing the confiure program or do I need to downgrade gtk and obtain a libGLcore lib specifically for my video card?

Thanks again for your help,

Patrick