configure: 'GLUT library not found or too old version'

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

Missing GLU Library

Post by Lazypete »

Yep... got the code...
but configure won't work...

Code: Select all

checking for GLU library... no
checking for GLU library (with pthreads)... no
checking for MesaGLU library... no
checking for MesaGLU library (with pthreads)... no
checking for openglu32 library... no
checking for openglu32 library (with pthreads)... no
*** Hmm, you don't seem to have OpenGLU libraries installed in the standard
*** location (/usr/lib).  I'll check in /usr/X11R6/lib, since
*** many distributions (incorrectly) put OpenGLU libs there.
checking for GLU library... no
checking for GLU library (with pthreads)... no
checking for MesaGLU library... no
checking for MesaGLU library (with pthreads)... no
checking for openglu32 library... no
checking for openglu32 library (with pthreads)... no
configure: error: Cannot find GLU library
So I searched google for openglu...
found nothing good... except so site in language I could not understand !!

Then.. I looked at config.log

Code: Select all

configure:7944: result: no
configure:7973: checking for GLU library
configure:7993: gcc -o conftest    conftest.c   -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_mixer -L/usr/X11R6/lib -lGL -L/usr/X11R6/lib -lGLU >&5
/usr/lib/libGLU.so: undefined reference to `glPixelStorei'
So I searched for libGLU.so
in rpmfind.net
I found it!!!!! in Ximian RedCarpet !!! Duh !!
Can someone help me... Im tired its getting late....
Need ... sleeep.... goodnight !!
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

libGLU.so update

Post by Lazypete »

Hmmm...

After a good night of sleep here are the results!!!

I found where to get the libGLU.so
XFree-Mesa-libGLU...

Unfortunately... I already have that package installed and here are the files

/usr/lib/libGLU.so -> /usr/X11R6/lib/libGLU.so.1.3
/usr/lib/libGLU.so.1 -> /usr/X11R6/lib/libGLU.so.1.3

Why doesn't configure found them !!!

I'll put my config.log here if someone needs it!
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

hmm we need your config.log and I can't access it

you can just paste it here
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

darn!!

Post by Lazypete »

Yeah, around 15h00 GMT-5 yesterday I had a power outage home, so my webserver has been shutdown.

I have solved my GLU problem. One of the symbolic link was refering to a old library.
Now its GLUT time !! :-(

I think I don't have the good version, tho I searched the net and only found one lib that is more recent... and it's only two build ahead of mine so...
I tried it, but it failed

I was wondering, which version of glut do you compile against?
I currently have this one installed:
glut-3.7-14

It also give me a strange error message about GLext.h here it is!

Code: Select all

checking for GL library... yes
checking for glXGetProcAddressARB... yes
checking for GLU library... yes
checking for GL/gl.h... yes
checking GL/glext.h usability... no
checking GL/glext.h presence... yes
configure: WARNING: GL/glext.h: present but cannot be compiled
configure: WARNING: GL/glext.h: check for missing prerequisite headers?
configure: WARNING: GL/glext.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for GL/glext.h... yes
checking whether glext.h is recent enough... yes
checking for glut32 library... no
checking for glut library... no
configure: error: GLUT library not found or too old version. 3.7 (beta) or later required.
Here is my config.log ( only the interesting part... I hope )
If not the whole thing is here

Code: Select all

configure:8558: checking for glut library
configure:8584: gcc -o conftest   -L/usr/X11R6/lib -L/usr/X11R6/lib  conftest.c
  -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_mixer -L/usr/X11R6
/lib -lGL  -lGLU  -lglut -lXi -lXmu >&5
/usr/lib/libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status
configure:8587: $? = 1
configure: failed program was:
| #line 8567 "configure"
| /* confdefs.h.  */
Im running RH 9
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Re: darn!!

Post by pontiac »

I got the same errors before. (see here)
Try to temove all occurrences (normaly 3 times) of

Code: Select all

-lXi -lXmu
in your configure.in and retry to build the whole thing (aclocal,autoconf,....).

Unfortunately if you get trough configure you will get (99.9%) the same error (see here for more as I got :

Code: Select all

Target `all' not remade because of errors.
Not workaround right now :-(.


Pontiac
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

glut !!

Post by Lazypete »

Thanx for the tips, but unfortunately
I get the exact same error as I was getting.

libglut missing or too old!
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Re: glut !!

Post by pontiac »

Lazypete wrote:Thanx for the tips, but unfortunately
I get the exact same error as I was getting.

libglut missing or too old!
Sorry, my bad. I mixed up the solutions of my errors and dandandamans.

Hellcatv wrote the following post about a similar error as you got there:
http://vegastrike.sourceforge.net/forum ... =8749#8749
hellcatv wrote:however it does not share your glX primitiives that your GL requires
I suspect that your libGL version is too old for the libglut that goes with it
Hope that helps.

Pontiac
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

Yeeeehaaaa !!!

Post by Lazypete »

Thanx Pontiac that was just right.
My GL lib were too old for my glut lib.

Thanx to Hellcatv too for giving the actual answer!

Now its libPng, but I probably just don't have the devel package installed.
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

Yeehaa !!

Post by Lazypete »

I finally got ./configure to work.
But now make won't work!

Code: Select all

Making all in ai
make[4]: Entering directory `/usr/src/vegastrike/vegastrike/src/cmd/ai'
source='comm_ai.cpp' object='comm_ai.o' libtool=no \
depfile='.deps/comm_ai.Po' tmpdepfile='.deps/comm_ai.TPo' \
depmode=none /bin/sh ../../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src -I../../../src/boost129  -
DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_SDL_MIXER=1      -DHAVE_AL=1   -I/usr/inclu
de/python2.2 -DHAVE_PYTHON=1  -DUSE_BOOST_129=1   -gdwarf-2 -g3 -Wall -I/usr/inc
lude/SDL -D_REENTRANT -pipe  -c -o comm_ai.o `test -f 'comm_ai.cpp' || echo './'
`comm_ai.cpp
../../../depcomp: ../../../depcomp: No such file or directory
make[4]: *** [comm_ai.o] Error 127
make[4]: Leaving directory `/usr/src/vegastrike/vegastrike/src/cmd/ai'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/vegastrike/vegastrike/src/cmd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/vegastrike/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vegastrike/vegastrike'
make: *** [all] Error 2
Might it be related with this error of automake?

Code: Select all

launcher/Makefile.am: required file `./depcomp' not found
Anyone has a clue?
Am I really missing a file??

I checked the CVS under vegastrike and vegastrike/launcher and there is no depcomp file. So I assume this is a generated file !
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
pontiac
Elite
Elite
Posts: 1454
Joined: Sun Jan 12, 2003 6:24 pm
Location: Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy
Contact:

Post by pontiac »

Lazypete and I discussed a bit in IRC and found the solution to the depcomp error:
http://www.joeredcloud.com/kandarwiki/i ... Installing -> Q6
Guest

support FFII

Post by Guest »

I fully support the FFII, because software patents will cause much more problems than they will prevent (if they prevent any).

See you at the demo
Guest

Post by Guest »

Sorry, wrong thread.
This post was supposed to be in the offtopic forum (weird things going on here?):
http://vegastrike.sourceforge.net/forum ... php?t=1190
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

Darn!!!

Post by Lazypete »

This is the worst thing that could happen!

Yesterday I finally compiled VS. But unfortunately...
My hard drive had filled up.. then everything
began to crash as nothing was able to save its configuration
to the disk.

So I rebooted in single user mode and removed a couple
of useless package... tuxracer, kdegames, gnome-games and such.
All sort of package with none or very few dependencies.

The problem is that.. after rebooting!! VS wouldn't compile
anymore... and guess what!! The error is:

configure: error: GLUT library not found or too old version. 3.7 (beta) or later required.

But this time... I have the latest GLUT and GL libs!!!
The error is different in only one way.
If I check the config.log the error is a bit different:

Code: Select all

configure:8584: gcc -o conftest   -L/usr/X11R6/lib -L/usr/X11R6/lib  conftest.c
  -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_mixer  -lGL  -lGLU
  -lglut >&5
/usr/lib/libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/libglut.so: undefined reference to `XGetExtensionVersion'
/usr/lib/libglut.so: undefined reference to `XFreeDeviceList'
/usr/lib/libglut.so: undefined reference to `XQueryDeviceState'
/usr/lib/libglut.so: undefined reference to `XListInputDevices'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/libglut.so: undefined reference to `XFreeDeviceState'
/usr/lib/libglut.so: undefined reference to `XOpenDevice'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelRectSGIX'
/usr/lib/libglut.so: undefined reference to `XmuLookupStandardColormap'
/usr/lib/libglut.so: undefined reference to `XSelectExtensionEvent'
collect2: ld returned 1 exit status
configure:8587: $? = 1
I have much more undefined reference than the first time!!!
I think i'm gonna cry !! :-(
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

Update!

Post by Lazypete »

I think I'll just give up on this.
Im receiving a new motherboard tonite so I'll just re-install
all my OSes.

Anyway... here's the update.

After uninstalling glut, libGL and restoring the originaly installed with RH9 libs.
and re-installing the updated lib.

I get those error:

Code: Select all

configure:8559: checking for glut library
configure:8585: gcc -o conftest   -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.c -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_mixer -lGL -lGLU -lglut >&5
/usr/lib/libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status
God that's the worst thing about Linux !!
Yes it is !!
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
Lazypete
Trader
Trader
Posts: 27
Joined: Mon Jan 06, 2003 1:49 am
Location: Quebec city
Contact:

Made it.. again :-)

Post by Lazypete »

I'll update the wiki with that.

BE SURE TO ALWAYS CAREFULLY WATCH YOUR SYMLINK!!

That was the problem.... /usr/X11R6/lib/libGL.so was linked to the bad libGL.so.1.0.4363
instead of libGL.so.1.2
At first they will ignore you,
then they will laugh at you,
then they will fight you,
then you will win.
Guest

Post by Guest »

I have RH9 and have the same Problem.
i find out, that there is no libGL.so (only libGL.so.1)
i make a
ln -s libGL.so.1.2 libGL.so
and suddenly ./configure find glut :shock:
don' know if this solve the problem of other guys, but for me it work...

(sorry for my bad english)
Post Reply