configure: error: GL library was not found

Report bugs, bug fixes and workarounds here.
Topic author
MaxIT

configure: error: GL library was not found

Post #1by MaxIT » 12.01.2003, 07:40

(I thought I've post this yesterday but I think I've clicked only 'preview button' ;-) )

I'm trying to make this wonderful sw under my new linuxbox. I'm running: Suse 8.0 w/Kde. Matrox G400 with right Xfree86 (all 3d games & programs works fine).

I've downloaded package 1.2.5. When running ./configure I get:

Code: Select all

checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glNewList in -lGL... no
checking for glNewList in -lMesaGL... no
configure: error: GL library was not found


OpenGL should be installed fine on my box, as long 3d is working in programs like VegaStrike or Racer.

Any Idea?[/code]

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 23
With us: 23 years 1 month
Location: Hamburg, Germany

configure: error: GL library was not found

Post #2by t00fri » 12.01.2003, 10:14

MaxIT wrote:(I thought I've post this yesterday but I think I've clicked only 'preview button' ;-) )

I'm trying to make this wonderful sw under my new linuxbox. I'm running: Suse 8.0 w/Kde. Matrox G400 with right Xfree86 (all 3d games & programs works fine).

I've downloaded package 1.2.5. When running ./configure I get:

Code: Select all

checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glNewList in -lGL... no
checking for glNewList in -lMesaGL... no
configure: error: GL library was not found


OpenGL should be installed fine on my box, as long 3d is working in programs like VegaStrike or Racer.

Any Idea?[/code]


Did you successfully /compile and link/ already other source code apart from Celestia that uses 3d libraries like libGL, libGLU, libglut, ...and the corresponding headers?

We are not talking about /running/ 3d programs but /building/ them. This needs additional developer installations as you are hopefully aware of.

I suggest you check this first, since an incomplete 3d building installation is not related to problems in Celestia source code.

Have you been able to /compile/ 'racer' for example?

Bye Fridger

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 9 months
Location: Lyon (France)

Post #3by Christophe » 12.01.2003, 10:30

You did post he same message on the users forum yesterday, http://www.shatters.net/forum/viewtopic.php?p=10014&highlight=#10014

My advice was to look at the end of config.log to see why the compile of the test opengl program failed.

Topic author
MaxIT

configure: error: GL library was not found

Post #4by MaxIT » 12.01.2003, 15:03

t00fri wrote:Did you successfully /compile and link/ already other source code apart from Celestia that uses 3d libraries like libGL, libGLU, libglut, ...and the corresponding headers?

We are not talking about /running/ 3d programs but /building/ them. This needs additional developer installations as you are hopefully aware of.

I suggest you check this first, since an incomplete 3d building installation is not related to problems in Celestia source code.

Have you been able to /compile/ 'racer' for example?

Bye Fridger

You're absolutely right: all 3d packages running on my machine was pre-compiled ones. So surely I'm missing dev libs for libGL etc.
I'm going to check them all: is there any reference on the web on which I can get info about where getting them? I'm asking this because it isn't awlays clear on where get the code of this or that library and since I'm kinda "newbie", I'll save a lot of time if somebody could suggest me a starting point. Thank you very much
Max

Topic author
MaxIT

can't find where are header

Post #5by MaxIT » 17.01.2003, 17:38

I've checked my system and as YaSt2 says, I've installed correctly both mesaglu and mesaglut libs and devel packages. ./configure can't find them, and I don't really know where they are installed to force it with --with-gl-libs configure option.
Anyone has a workaround for this?

Topic author
MaxIT

config.log

Post #6by MaxIT » 18.01.2003, 00:53

Let me insist ;-)

this the extract of config.log after my attempt to run configure script. I think this is the part regarding the problem:

Code: Select all

configure:28729: checking for GL/gl.h
configure:28736: result: yes
configure:28755: checking for glNewList in -lGL
configure:28788: gcc -o conftest  -Wall -Wunused   -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -rdynamic -L/opt/gnome/lib -L/usr/lib -L/usr/X11R6/lib conftest.c -lGL   -lm  -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -lgtkgl >&5
/usr/i486-suse-linux/bin/ld: cannot find -laudiofile
collect2: ld returned 1 exit status
configure:28791: $? = 1
configure: failed program was:
#line 28762 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char glNewList ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
glNewList ();
  ;
  return 0;
}
configure:28808: result: no
configure:28822: checking for glNewList in -lMesaGL
configure:28855: gcc -o conftest  -Wall -Wunused   -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -rdynamic -L/opt/gnome/lib -L/usr/lib -L/usr/X11R6/lib conftest.c -lMesaGL   -lm  -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -lgtkgl >&5
/usr/i486-suse-linux/bin/ld: cannot find -laudiofile
collect2: ld returned 1 exit status
configure:28858: $? = 1
configure: failed program was:
#line 28829 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char glNewList ();
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
glNewList ();
  ;
  return 0;
}
configure:28875: result: no
configure:28885: error: GL library was not found

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 9 months
Location: Lyon (France)

config.log

Post #7by Christophe » 18.01.2003, 09:36

MaxIT wrote:Let me insist ;-)

this the extract of config.log after my attempt to run configure script. I think this is the part regarding the problem:

Code: Select all

configure:28822: checking for glNewList in -lMesaGL
configure:28855: gcc -o conftest  -Wall -Wunused   -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -rdynamic -L/opt/gnome/lib -L/usr/lib -L/usr/X11R6/lib conftest.c -lMesaGL   -lm  -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -lgtkgl >&5
/usr/i486-suse-linux/bin/ld: cannot find -laudiofile
collect2: ld returned 1 exit status



Well, there you go, you're missing the audiofile library. See it's always a good idea to have a look at the config.log file, don't trust what configure tells you!

libaudiofile is probably a gnome dependency.

Topic author
MaxIT

libaudiofile

Post #8by MaxIT » 20.01.2003, 14:01

Thank you, you've just opened my mind :-)

BTW, I've tried to retrive most recent pacjkage for libaudio file

http://www.rpmfind.net/linux/rpm2html/s ... =Search+...

it's 0.1.6, but I've if I try to install it system tell me there is another package in conflict, something like libaudiofiole-2.xx.x-ximian.rpm (yes I'm actually running Ximian Evolution).


Return to “Bugs”