OpenGL not found

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
Nesmontu
Explorer
Explorer
Posts: 15
Joined: Fri Nov 09, 2007 3:21 pm
Location: Belgium

OpenGL not found

Post by Nesmontu »

Hello,
First off: I LOVE this game :D
However, the SVN won't work for me (revision 11689 on Ubuntu Gutsy 64-bit) :(
./configure fails with

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 have all development libraries installed. I've also been searching this forum for my error, and some people reported fixing it by installing libXmu-dev or libXi-dev, both of which I have installed. I really don't know what to make of it... so here's my config.log, and I hope someone else does know :)
You do not have the required permissions to view the files attached to this post.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

First off welcome Nesmontu not sure but i have a feeling that it may be a 32/64 bit mix up as i run only 32 bit on a 32 bit machine i have no idea on the fix.


Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Melkior
Star Pilot
Star Pilot
Posts: 4
Joined: Fri Nov 09, 2007 6:38 pm
Location: France, Lyon

Post by Melkior »

Hello,

I am running Ubuntu Gutsy also in 64 bits mode.

I manage to compile the same version you failed upon.

I tried to found out where is the GL library tested in the gcc -lGL entries of the configure logfile you gave :

Code: Select all

$ dpkg -S gl.h
nvidia-glx-dev: /usr/share/doc/nvidia-glx-dev/include/GL/gl.h
ubuntu-docs: /usr/share/ubuntu-artwork/home/locales-ubuntu/index-gl.html
libsdl1.2-dev: /usr/share/doc/libsdl1.2-dev/docs/html/guidevideoopengl.html
libsdl1.2-dev: /usr/include/SDL/SDL_opengl.h
mesa-common-dev: /usr/include/GL/gl.h
In the first column you have the packages that are installed on my system.
The two packages that really contain gl.h are the nvidia-glx-dev (devel package for my nVidia video driver) and the mesa-common-dev.

I suggest to you to look at those packages first (or the equivalent if you are running an ATI video driver).

Good luck
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

You need the package with a libGL.so (without any version number after it) that points to a symbolic link.
The development packages provide that version.

It sounds like the mesa-common-dev (at the very least) is what you need.. however I would also recommend installing Video Card drivers (with development headers included)
Melkior
Star Pilot
Star Pilot
Posts: 4
Joined: Fri Nov 09, 2007 6:38 pm
Location: France, Lyon

Post by Melkior »

ace123 wrote:You need the package with a libGL.so (without any version number after it) that points to a symbolic link.
The development packages provide that version.
Searching for this specific file I got the following result :

Code: Select all

$ LC_ALL=C dpkg -S libGL.so
diversion by nvidia-glx-dev from: /usr/lib/libGL.so
diversion by nvidia-glx-dev to: /usr/lib/nvidia/libGL.so.xlibmesa
libgl1-mesa-dev, nvidia-glx-dev: /usr/lib/libGL.so
diversion by nvidia-glx from: /usr/X11R6/lib/libGL.so.1
diversion by nvidia-glx to: /usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa
diversion by nvidia-glx from: /usr/X11R6/lib32/libGL.so.1.2
diversion by nvidia-glx to: /usr/X11R6/lib32/nvidia/libGL.so.1.2.xlibmesa
diversion by nvidia-glx from: /usr/lib/libGL.so.1
diversion by nvidia-glx to: /usr/lib/nvidia/libGL.so.1.xlibmesa
nvidia-glx, libgl1-mesa-glx: /usr/lib/libGL.so.1
diversion by nvidia-glx from: /usr/X11R6/lib32/libGL.so.1.2
diversion by nvidia-glx to: /usr/X11R6/lib32/nvidia/libGL.so.1.2.xlibmesa
nvidia-glx: /usr/lib/libGL.so.1.0.9639
diversion by nvidia-glx from: /usr/X11R6/lib/libGL.so.1
diversion by nvidia-glx to: /usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa
diversion by nvidia-glx from: /usr/lib/libGL.so.1.2
diversion by nvidia-glx to: /usr/lib/nvidia/libGL.so.1.2.xlibmesa
diversion by nvidia-glx from: /usr/lib/libGL.so.1
diversion by nvidia-glx to: /usr/lib/nvidia/libGL.so.1.xlibmesa
diversion by nvidia-glx from: /usr/X11R6/lib32/libGL.so.1
diversion by nvidia-glx to: /usr/X11R6/lib32/nvidia/libGL.so.1.xlibmesa
diversion by nvidia-glx from: /usr/X11R6/lib/libGL.so.1.2
diversion by nvidia-glx to: /usr/X11R6/lib/nvidia/libGL.so.1.2.xlibmesa
diversion by nvidia-glx from: /usr/lib32/libGL.so.1
diversion by nvidia-glx to: /usr/lib32/nvidia/libGL.so.1.xlibmesa
nvidia-glx, ia32-libs: /usr/lib32/libGL.so.1
nvidia-glx: /usr/lib32/libGL.so.1.0.9639
diversion by nvidia-glx from: /usr/lib32/libGL.so.1.2
diversion by nvidia-glx to: /usr/lib32/nvidia/libGL.so.1.2.xlibmesa
diversion by nvidia-glx from: /usr/lib32/libGL.so.1
diversion by nvidia-glx to: /usr/lib32/nvidia/libGL.so.1.xlibmesa
diversion by nvidia-glx from: /usr/X11R6/lib/libGL.so.1.2
diversion by nvidia-glx to: /usr/X11R6/lib/nvidia/libGL.so.1.2.xlibmesa
diversion by nvidia-glx from: /usr/lib/libGL.so.1.2
diversion by nvidia-glx to: /usr/lib/nvidia/libGL.so.1.2.xlibmesa
libgl1-mesa-glx: /usr/lib/libGL.so.1.2
diversion by nvidia-glx from: /usr/X11R6/lib32/libGL.so.1
diversion by nvidia-glx to: /usr/X11R6/lib32/nvidia/libGL.so.1.xlibmesa
diversion by nvidia-glx-dev from: /usr/X11R6/lib/libGL.so
diversion by nvidia-glx-dev to: /usr/X11R6/lib/nvidia/libGL.so.xlibmesa
diversion by nvidia-glx from: /usr/lib32/libGL.so.1.2
diversion by nvidia-glx to: /usr/lib32/nvidia/libGL.so.1.2.xlibmesa
ia32-libs: /usr/lib32/libGL.so.1.2
diversion by nvidia-glx-dev from: /usr/lib/libGL.so
diversion by nvidia-glx-dev to: /usr/lib/nvidia/libGL.so.xlibmesa
diversion by nvidia-glx-dev from: /usr/X11R6/lib/libGL.so
diversion by nvidia-glx-dev to: /usr/X11R6/lib/nvidia/libGL.so.xlibmesa
These entries refer to both nvidia-glx and nvidia-glx-dev packages.

The same should exist for ATI.
Nesmontu
Explorer
Explorer
Posts: 15
Joined: Fri Nov 09, 2007 3:21 pm
Location: Belgium

Fixed!

Post by Nesmontu »

Well I had all mentioned packages installed, so at first I still couldn't figure out what was wrong... then I did a ls -l /usr/lib | grep libGL, and I didn't have a libGL.so without version number! Simply creating a symbolic link to libGL.so.1.2 fixed the problem, configure went fine :D Now on to the make... :D

EDIT: make went fine, and Vega Strike is running nicely :D Thanks for your help everyone!
FattyPants
Trader
Trader
Posts: 31
Joined: Sat Dec 08, 2007 11:55 pm

Problem with OpenGL as well

Post by FattyPants »

Hi.

I have had this problem as well. Only I'm running a 32bit comp. I'm very new to this so please forgive my ignorance. :)

I ./configure and it goes fine until it reaches OpenGL and it says that it can't find the GL library.

I've tried Nesmontu's successful fix and haven't had any success with it. I type ls -l ../usr/lib | grep libGL and it finds libGL, apparently. I then tried to link but it doesn't seem to work. I'm running an nVidia card with the driver development package installed. I also installed libmesagl1-devel.

This is what I get when I grep libGL--

Code: Select all

[root@localhost vegastrike]# ls -l /usr/lib | grep libGL
lrwxrwxrwx  1 root root       10 Dec 20 20:59 libGL.so -> libGL.so.1*
lrwxrwxrwx  1 root root       12 Dec 20 20:59 libGL.so.1 -> libGL.so.1.2*
-rwxr-xr-x  1 root root   420968 Aug 31 07:48 libGL.so.1.2*
lrwxrwxrwx  1 root root       20 Oct 21 10:53 libGLU.so.1 -> libGLU.so.1.3.060500*
-rwxr-xr-x  1 root root   529604 Jan 21  2007 libGLU.so.1.3.060500*
It appears to have found libGL.so. So I assume that's not the problem. Nevertheless, it says it can't find OpenGL library. Is there something more that I'm lacking? Other than a brain? :D

Thanks for any help you can give!

EDIT: Never mind, I got it by just copy/pasting libGL.so, libGL.so.1 and libGL.so.1.0...etc from my nvidia folder into /usr/lib. It worked. Now I just get a new error. Oh well. Back to searching through the forums. :)
You do not have the required permissions to view the files attached to this post.
Xit
Bounty Hunter
Bounty Hunter
Posts: 186
Joined: Mon Aug 06, 2007 2:34 am
Location: Cambs

Post by Xit »

I too had problems like this quite a while ago now, with Debain etch and libraries being shown missing until they were reinstalled, would it be worth making a sticky for this and some of the other common problems?
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

Xit wrote:I too had problems like this quite a while ago now, with Debain etch and libraries being shown missing until they were reinstalled, would it be worth making a sticky for this and some of the other common problems?
Yep I've had this problem as well and that sounds like a good idea.

For the record my setup is ubuntu 7.10 gutsy 32bit and I've got around the unfound GL and GLU using the symbolic link to the versioned files but am now stuck without source files on the system.

My ubuntu config is a bit messed up cos I installed compiz to get the fancy effects but that stopped the restricted drivers for my ATI x1700 from showing textures properly in some games e.g. Open Arena, and prevented all 3D games from running fullscreen, so I removed compiz and went back to a standard fglrx style desktop, which is a pity because the cube, etc. were fun.

Anyway, now got to get gl source.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

Welcome epi_cure_us if you have any problems or questions just post.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

nvidia installs it's own version of libgl and such, we all know this. The stock installer from nvidia searches for and removes the plain libgl from your distro and makes symlinks and installs it's libs in the correct directory (/usr/lib). it should also run ldconfig, to re-construct ld's list of libs.

if you are doing something special, make sure the directory that nvidia's libs are in /etc/ld_so.config (or whatever it's named in /etc). rerun ldconfig.

If you're having trouble with some pkged version of nvidia's drivers, that's their problem. I've never had an issue with nvidia's installer. I just have to re-install whenever apt updates libGL. And that's with debian unstable.
Ed Sweetman endorses this message.
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

Thanks Loki :)

I got gl.h from mesa-common-dev install (unlike nvidia installs ati installs of xorg-driver-fglrx do not include it under /usr/share/doc or anywhere else) and added devlib for glut, now have a problem with config finding expat, which symbolic link or -- switch should I use given this is what I've got?

/usr/share/pycentral/python-xml/site-packages/_xmlplus/dom/expatbuilder.py
/usr/share/doc/python-xml/README.pyexpat
/usr/share/doc/expat
/usr/share/doc/expat/copyright
/usr/share/doc/expat/changelog.Debian.gz
/usr/share/doc/expat/changelog.gz
/usr/share/doc/libexpat1
/usr/share/doc/libexpat1/copyright
/usr/share/doc/libexpat1/changelog.Debian.gz
/usr/share/doc/libexpat1/changelog.gz
/usr/lib/libexpat.so.0
/usr/lib/python2.5/lib-dynload/pyexpat.so
/usr/lib/python2.5/xml/parsers/expat.pyc
/usr/lib/python2.5/xml/parsers/expat.py
/usr/lib/python2.5/xml/sax/expatreader.py
/usr/lib/python2.5/xml/sax/expatreader.pyc
/usr/lib/python2.5/xml/dom/expatbuilder.pyc
/usr/lib/python2.5/xml/dom/expatbuilder.py
/usr/lib/python2.5/site-packages/_xmlplus/parsers/expat.pyc
/usr/lib/python2.5/site-packages/_xmlplus/parsers/pyexpat.so
/usr/lib/python2.5/site-packages/_xmlplus/parsers/expat.py
/usr/lib/python2.5/site-packages/_xmlplus/sax/drivers/drv_pyexpat.py
/usr/lib/python2.5/site-packages/_xmlplus/sax/drivers/drv_pyexpat.pyc
/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py
/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.pyc
/usr/lib/python2.5/site-packages/_xmlplus/sax/drivers2/drv_pyexpat.py
/usr/lib/python2.5/site-packages/_xmlplus/sax/drivers2/drv_pyexpat.pyc
/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.pyc
/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py
/usr/lib/libexpat.so.1.0.0
/usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so
/usr/lib/libexpat.so.1
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

all this hand editing means you have a broken install... either the dist had broken pkgs, or you installed something outside of their pkgs, or the dist just sucks.

in any case. you should have libexpat.so.1.0.0 symlinked to libexpat.so and rerun ldconfig.

the .so symlink is required when you're not requesting specific versions.

always run ldconfig when you change things in lib directories outside of your dist's pkgs. which should run it automatically after install.
Ed Sweetman endorses this message.
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

Thanks that symlinked worked for expat lib

Don't think it's broken, ubuntu just doesn't include a dev environment by default as far as I can tell (I guess that means it sucks if you're a developer but it's quite nice if you're fairly new to linux like me)

I've just been using standard repos for this build, only issue is with ati x1700 vs compiz but that's no big deal.

As I'm not a developer I don't automatically know which ubuntu packages relate to the requirements from HowTo:Compile from SVN, e.g. that libpng-devel is actually libpng12-dev, so it's taking me a while to work through but I'm getting there and hopefully posting this stuff here will help anyone who ends up in a similar situation. :)
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

when you graduate from ubuntu, and if you stick with linux long enough, you will, move on to debian.

I'm not sure how ubuntu handles using non-ubuntu native pkgs, but dont be surprised if it mucks things up with missing symlinks, files in the wrong place or not detected. It's not the behavior you'd see in a proper setup, so having a HOWTO or other guide that encourages that method would be detrimental. It's best to just use the dist that suites your needs, if ubuntu cant provide it for you, rather than make hacks to get it to do it, it's best to just find something that can (if any can) and use that.
Ed Sweetman endorses this message.
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

Thanks, do they pay you to be patronising or is it a natural gift? :lol:

As I said before, I'm using standard ubuntu repos for my packages.

I'm not getting into arguing about which distro is best (it's akin to the squabbles that keep left wing politics dead and buried in the UK)

Anyway, horse for courses, I've used Linux on and off for years but I wear a suit not an anorak ;) so I can't argue the finer points. For work servers we deploy Fedora and I've also played with Xandros, Mandrake, SuSE, etc. but just now I'm messing with a laptop install for fun. At least it was.

As far as I can gather ubuntu is yet another Debian fork and is breaking new ground in attracting XP and Vista users which must surely be good for the whole free software community.
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

Got it compiled and working, thanks for the help guys.

Am now getting a graphics error, internal screens are split top left to bottom right with the lower left side being a blank white triangle. External screen shows several white polys (triangles) when in motion.

I remove/purged my gfx driver then reinstalled it but no joy.

Any suggestions appreciated as SVN looks like it's got some good improvements over the current packaged release, just the front end menu alone is a big step forward.
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

do an svn update in your data4.x directory, then do an svn status | grep M and see if anything shows up as modified besides the vegastrike.config file. I assume you didn't build with any gcc opts besides -O2. nobody else has described what you say you're seeing, so i tend to think it's not in the code/data

maybe a screenshot too.
Ed Sweetman endorses this message.
cap601
Merchant
Merchant
Posts: 56
Joined: Wed Jul 18, 2007 3:28 pm

Post by cap601 »

To fix the white triangle effect upgrade your drivers to the latest ones from the ATI website (or use a utility like Envy to the work for you).
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

Thanks :)

The ATI website doesn't have a Linux driver for the X1700 but Envy managed to install one all the same.

This fixed the triangle problem but introduced a problem with 3D apps flickering back to the desktop, and also screwed my desktop resolution settings when Envy autoconfigured xorg.conf. I edited xorg.conf and got back to 1680x1050@60. Then realised that Envy had implemented compiz so I removed it which has fixed all the gfx problems in VS, now getting 30-90fps at 1680x1050x32bit, yay!

Only downer is that I think I overdid the compiz removal as I've lost my windows borders/resizing, etc. LOL, always something to fix.
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

do you see a framerate drop after you launch from atlantis and turn around (stationary) and view the planet? it should be a very noticeable drop compared to open space, if it occurs at all.
Ed Sweetman endorses this message.
Jameson
Explorer
Explorer
Posts: 10
Joined: Wed Mar 05, 2008 4:49 pm

Post by Jameson »

yep drops to around 40 and if I target the planet and spec into it then to just over 30

perfectly acceptable though, given that it's with the nicest shader and extreme details, looks totally awesome in fact, loving the humour of the splash pages as well

now I've just got to work out what I'm doing with the game :)

Give me 24 hours and I've a feeling I'll be hooked like I was on Elite over 20 years ago 8)

(sorted the problem with metacity as well, so we're all good)
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

cept the shader has nothing to do with the half framerate when viewing the planet compared to regular space. and quality settings dont change the effect. guess we can rule out video driver issues. Gotta be something in the code making the draw bog down. oh well, more research.
Ed Sweetman endorses this message.
Post Reply