Currently, on my Linux distribution, Backtrack 4 ( based on Ubuntu 8.10, I think ), the show line hangs my whole script. Nothing happens, the window doesn't appear. I followed the instructions written @ http://code.google.com/p/gosu/wiki/GettingStartedOnLinux . What details should I provide you? ruby -v gives this :
It's perfectly normal that "show" blocks forever, but it should still open a window :(
Are you using some kind of compositing WM like Compiz? If so, can you try it without that one? That's the only troubleshooting option that regularly worked for me…
We should probably find out whether it's doing its magic but not showing a window, or it's hanging in the window creation bit. Try running this and let us know what it prints, if anything:
require 'gosu'
class LookABug < Gosu::Window def show @last = 0; super end
def update t = Gosu::milliseconds if @last < t - 1000 puts "update" @last = t end end end
puts "before main loop" LookABug.new(100, 100, false).show
It should only print once per second so's not to flood you with update update update. I doubt this will be a useful diagnostic, but it's worth a shot.
I searched on my computer for a compositing window manager, but I couldn't find one. I think I'm not running one. I searched for compiz, but I didn't find it. Could there be others? As for OpenGL, Blender seems to run fine.