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).

New SVN - configure can't find GL libraries

Postby eracc » Mon Dec 27, 2010 9:50 pm

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?
Attachments
config.log
My config.log as requested.
(149.65 KiB) Downloaded 232 times
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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

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

Postby klauss » Tue Dec 28, 2010 8:45 am

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

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

Postby eracc » Tue Dec 28, 2010 4:38 pm

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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

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

Postby klauss » Tue Dec 28, 2010 4:41 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

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

Postby eracc » Tue Dec 28, 2010 4:43 pm

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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

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

Postby klauss » Tue Dec 28, 2010 4:44 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

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

Postby eracc » Tue Dec 28, 2010 4:50 pm

The glxinfo output is attached as a file.
Attachments
glxinfo.txt
Output from glxinfo
(26.55 KiB) Downloaded 165 times
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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

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

Postby klauss » Tue Dec 28, 2010 4:58 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

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

Postby eracc » Tue Dec 28, 2010 5:42 pm

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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

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

Postby eracc » Tue Dec 28, 2010 5:53 pm

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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

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

Postby eracc » Tue Dec 28, 2010 6:10 pm

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".
User avatar
eracc
Bounty Hunter
Bounty Hunter
 
Posts: 167
Topics: 25
Joined: Mon Nov 28, 2005 1:24 pm
Location: TN, USA

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

Postby klauss » Tue Dec 28, 2010 7:27 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina



Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 1 guest

cron