New SVN - configure can't find GL libraries

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).
Post Reply
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

New SVN - configure can't find GL libraries

Post by eracc »

Today, I just wiped out my SVN directory for VegaStrike and did a clean checkout. Running ./configure here is ending in an error:

Code: Select all

...
checking for GL library... no
checking for GL library (with pthreads)... no
checking for MesaGL library... no
checking for MesaGL library (with pthreads)... no
checking for opengl32 library... no
checking for opengl32 library (with pthreads)... no
*** Hmm, you don't seem to have OpenGL libraries installed in the standard
*** location (/usr/lib).  I'll check in /usr/X11R6/lib, since
*** many distributions (incorrectly) put OpenGL libs there.
checking for GL library... no
checking for GL library (with pthreads)... no
checking for MesaGL library... no
checking for MesaGL library (with pthreads)... no
checking for opengl32 library... no
checking for opengl32 library (with pthreads)... no
configure: error: Cannot find GL library
I appear to have GL libraries:

Code: Select all

[gene@era4 vegastrike]$ locate /GL/gl
/usr/include/GL/gl.h
/usr/include/GL/gl_mangle.h
/usr/include/GL/glext.h
/usr/include/GL/glfbdev.h
/usr/include/GL/glu.h
/usr/include/GL/glu_mangle.h
/usr/include/GL/glut.h
/usr/include/GL/glutf90.h
/usr/include/GL/glx.h
/usr/include/GL/glx_mangle.h
/usr/include/GL/glxext.h
/usr/include/GL/glxint.h
/usr/include/GL/glxmd.h
/usr/include/GL/glxproto.h
/usr/include/GL/glxtokens.h
/usr/include/nvidia-current/GL/gl.h
/usr/include/nvidia-current/GL/glext.h
/usr/include/nvidia-current/GL/glx.h
/usr/include/nvidia-current/GL/glxext.h
/usr/include/root/GL/glew.h
/usr/include/root/GL/glxew.h
/usr/lib/python2.6/site-packages/OpenGL/GL/glget.py
/usr/lib/python2.6/site-packages/OpenGL/GL/glget.pyc
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/gl.h
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/glext.h
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/glx.h
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/glxext.h
/usr/share/root/cint/cint/include/GL/gl.h
/usr/share/root/cint/cint/include/GL/glu.h
/usr/share/root/cint/cint/include/GL/glut.h
/usr/share/root/cint/cint7/include/GL/gl.h
/usr/share/root/cint/cint7/include/GL/glu.h
/usr/share/root/cint/cint7/include/GL/glut.h
I have tried these both with and without ending slashes:

Code: Select all

./configure --with-gl-inc=/usr/include
./configure --with-gl-inc=/usr/include/GL
./configure --with-gl-inc=/usr/include/nvidia-current
./configure --with-gl-inc=/usr/include/nvidia-current/GL
The system used is in my signature. Suggestions?
You do not have the required permissions to view the files attached to this post.
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New SVN - configure can't find GL libraries

Post by klauss »

Try cmake instead of autotools.

But I suspect you're missing some GL-related dev package. Ie, you have the normal package installed, but not the development version.

Check to see if you have dev versions of glut.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

Re: New SVN - configure can't find GL libraries

Post by eracc »

Okay, I'll try cmake.

You mean this?
$ rpm -aq|grep glut
libmesaglut3-7.8.1-6mdv2010.1
libmesaglut3-devel-7.8.1-6mdv2010.1 <---
libmgl-glut5-1.10-2mdv2010.1
And these?
$locate /glut
/usr/include/GL/glut.h
/usr/include/GL/glutf90.h
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New SVN - configure can't find GL libraries

Post by klauss »

In debian it's libfreeglut3-dev, but it might be that.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

Re: New SVN - configure can't find GL libraries

Post by eracc »

Here are all the options I have for installing anything with 'glut' in the package name:
# urpmq --list|grep glut
libmesaglut3
libmesaglut3-devel
libmgl-glut5
These are all already installed.
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New SVN - configure can't find GL libraries

Post by klauss »

Hey... I hadn't seen you attached the config.log.

Taking a look at it, your system seems to have something rather broken:

Code: Select all

configure:8782: g++ -o conftest     conftest.cpp -lutil  -L/usr/lib -lSDL -lpthread  -lGL >&5
/usr/lib/libGL.so: undefined reference to `_nv000009gl'
If finds libGL.so, but it can't link it because it's missing some symbol?
So... WTF?

What does glxinfo say to you?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

Re: New SVN - configure can't find GL libraries

Post by eracc »

The glxinfo output is attached as a file.
You do not have the required permissions to view the files attached to this post.
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New SVN - configure can't find GL libraries

Post by klauss »

Take a look at this, perhaps it's something similar:
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

Re: New SVN - configure can't find GL libraries

Post by eracc »

Hmmm, that may be. The symbolic link /usr/lib/libGL.so.1 was pointing to an old /usr/lib/libGL.so.190.42. My current nVidia driver is actually the 195.36.24 release. I redid the symbolic linking and will try again with cmake per your suggestion.

Here is what the setup was before I changed the linking:
# locate -i libgl.so|xargs ls -l
lrwxrwxrwx 1 root root 10 2010-12-10 20:48 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 15 2010-08-08 12:47 /usr/lib/libGL.so.1 -> libGL.so.190.42
-rwxr-xr-x 1 root root 388136 2010-06-21 15:22 /usr/lib/libGL.so.1.2
-rwxr-xr-x 1 root root 721792 2009-12-03 19:24 /usr/lib/libGL.so.190.42
lrwxrwxrwx 1 root root 12 2010-08-08 12:20 /usr/lib/mesa/libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 388136 2010-06-21 15:21 /usr/lib/mesa/libGL.so.1.2
lrwxrwxrwx 1 root root 10 2010-12-26 21:58 /usr/lib/nvidia-current/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 18 2010-08-08 17:34 /usr/lib/nvidia-current/libGL.so.1 -> libGL.so.195.36.24
-rwxr-xr-x 1 root root 738816 2010-05-04 18:34 /usr/lib/nvidia-current/libGL.so.195.36.24
Here is after I changed it:
# locate -i libgl.so|xargs ls -l
lrwxrwxrwx 1 root root 10 2010-12-10 20:48 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 34 2010-12-28 17:33 /usr/lib/libGL.so.1 -> /usr/lib/nvidia-current/libGL.so.1
-rwxr-xr-x 1 root root 388136 2010-06-21 15:22 /usr/lib/libGL.so.1.2
-rwxr-xr-x 1 root root 721792 2009-12-03 19:24 /usr/lib/libGL.so.190.42
lrwxrwxrwx 1 root root 12 2010-08-08 12:20 /usr/lib/mesa/libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 388136 2010-06-21 15:21 /usr/lib/mesa/libGL.so.1.2
lrwxrwxrwx 1 root root 10 2010-12-26 21:58 /usr/lib/nvidia-current/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 18 2010-08-08 17:34 /usr/lib/nvidia-current/libGL.so.1 -> libGL.so.195.36.24
-rwxr-xr-x 1 root root 738816 2010-05-04 18:34 /usr/lib/nvidia-current/libGL.so.195.36.24
The ./configure phase does complete now. Thanks klauss. :)
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

Re: New SVN - configure can't find GL libraries

Post by eracc »

Apparently I do not know how to run 'cmake'. I am following the directions here: http://vegastrike.sourceforge.net/wiki/ ... e_from_SVN

I see nothing on that page about how to compile VegaStrike with 'cmake'. Should I be looking for compilation information for SVN elsewhere than the "official" wiki? :) However, plain old 'make' is running as I type this. Maybe it will finish without errors.
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

Re: New SVN - configure can't find GL libraries

Post by eracc »

Everything compiled without error. Ran vssetup and vegastrike. Both work. Now to get down to some playing. :)
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: New SVN - configure can't find GL libraries

Post by klauss »

eracc wrote:Apparently I do not know how to run 'cmake'. I am following the directions here: http://vegastrike.sourceforge.net/wiki/ ... e_from_SVN

I see nothing on that page about how to compile VegaStrike with 'cmake'. Should I be looking for compilation information for SVN elsewhere than the "official" wiki? :) However, plain old 'make' is running as I type this. Maybe it will finish without errors.
Ya, nobody (AFAIK) took the time yet to add cmake instructions to the wiki.

I think there's a thread somewhere around the forums.

In any case, it's simple:

Code: Select all

vegastrike$ mkdir build
vegastrike$ cd build
build$ ccmake ..
<<GUI pops up, follow on-screen instructions>>
build$ make
The good thing about cmake, besides that it uses pkg-config and is a lot faster and more predictable than configure, is that it has a nifty GUI (well, CUI, console UI) that makes the whole process a lot less painful.

If you get cmake going and feel like it, you're welcome to document how the process goes in the wiki, for other users' benefit ;)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply