Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Gosu installation problem
- - By RavensKrag Date 2010-07-12 23:16
I've never had this problem before, but on my new computer, something has gone wrong, and I am unable to run Gosu applications, even a trivial one which just displays a window with a title.

When I attempt to run a Gosu application, I get this error.

         ruby: symbol lookup error: /var/lib/gems/1.9.1/gems/gosu-0.7.22/lib/gosu.so: undefined symbol: glXChooseVisual

Can anyone help me?
Parent - - By RunnerPack Date 2010-07-13 03:53
Sounds like a problem with either OpenGL or Xwindows. Have you tried any other OpenGL software? i.e. something not based on Ruby+Gosu. Maybe one of them will have a more specific error message (like which file is missing that symbol).

I would start with whatever package manager your system uses (you didn't say which distro you're using) and make sure the latest versions of the OpenGL and X packages are properly installed, including anything needed to link the two (probably something that's an optional part of X). When/if that's all in order, check video-card drivers.

You can try an OpenGL/X diagnostic or benchmarking program to confirm that it's working outside Ruby/Gosu, if it turns out to be a Ruby/Gosu problem.

If none of that works, I'm too dumb to help. :P
Parent - - By RavensKrag Date 2010-07-13 17:55
Oh, sorry, I somehow didn't realize that my distribution would be a factor in finding a solution >.<  I am running Ubuntu 10.4 Lucid Lynx.  Also, it seems that I do have OpenGL support on my computer, as glxgears works fine.  Should a try a "real" OpenGL application instead?  Also, I am running a custom kernel compiled from a vanilla version of 2.6.34, if that makes any difference.
Parent - - By RunnerPack Date 2010-07-18 02:42 Edited 2010-07-18 06:04
Well, "having OpenGL support" doesn't really mean anything... There is a reference software rasterizer that will run (slowly) on practically anything with graphics capabilities, but it also won't necessarily support the "glXChooseVisual" function, as this is specific to the X windowing system. I assume glgears would have to use something like "glXChooseVisual" to make a window in which to render itself (which I think is what it does; see here: http://www.talisman.org/opengl-1.1/Reference/glXChooseVisual.html), so I can't explain why it would work and not Gosu.

I looked up "ubuntu glXChooseVisual" and found out Blender (a 3D modeling program) will give this error sometimes, too. Some people (using Nvidia cards) found that a driver upgrade did the trick. This thread (http://ubuntuforums.org/archive/index.php/t-999642.html) though old, has some things you can try.

Again, I'm not a Linux user (though I have used it, but not Ubuntu) so I can only search the web for stuff. Since you have the PC in front of you, this should be easier for you ;)

Sorry I couldn't help more...

EDIT: You might try making sure the dependencies (especially "libgl1-mesa-dev") listed on this wiki page: http://code.google.com/p/gosu/wiki/GettingStartedOnLinux are installed.
Parent - - By RavensKrag Date 2010-07-19 03:45
Well, I had other problems with that computer, so thank you very much for your help, but I don't think it should be a problem any more.  I believe I will have to return that laptop, and I already have a new Acer that I'm trying to get working in Linux.  Gosu seems to work fine, so I'll just have to sort out the other problems.

Thank you again for you help.
Parent - - By kotakotakota Date 2010-07-19 13:00 Edited 2010-07-19 15:06
Before, you return it, let me see If I can do anything for you.  First of all, what is the output of glxinfo?  This should give information about the graphics driver.  Also, the output of lspci.  Thanks!
Parent - - By RavensKrag Date 2010-07-19 16:00
Well, like I said I had other problems with that laptop, but I will post the information if you'd like, for the sake of others.  I'm pretty sure the problem stems from a botched ATI driver installation though.

The problematic laptop in question is an HP pavilion dm4 with ATI Radeon HD 5450 graphics.  This means it has ATI 5450 dedicated graphics as well as Intel graphics.  Hybrid graphics systems seem to have quite a few problems in Linux... hopefully that will get worked out in the near future. 

At any rate, I'll try to post the information you requested later today.
Parent - - By kotakotakota Date 2010-07-19 20:10
Ah I see, I missed the part about other problems... Sorry about that.  Both returning it as well as trying to fix those problems are quite hassles, so I suppose you might as well pick your poison.
Parent - - By RavensKrag Date 2010-07-21 16:14
Well, sorry about not posting the information like I said.  I've been busier lately than I thought I'd be.  But I'm pretty sure the problem centers on the fact that the HP in question comes with switchable graphics, and I attempted to install drivers for the ATI card.  This resulted in something getting messed up on the Intel driver side.  As a result, Gosu failed to run correctly.

My new computer has a similar setup, so I suppose I'll just stick to the open-source ATI drivers for now.
Parent - By RavensKrag Date 2010-07-23 03:09
I've seen the information in the second link before.  However, I think the first link is too old to be relevant any more.  The ATI closed-source drivers have advanced a lot in just the last few months, or so it seems from my findings.
Up Topic Gosu / Gosu Exchange / Gosu installation problem

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill