![]() |
Software > Ruby > Ruby GUI toolkits >
A Ruby GUI toolkit.
This was originally out of the running because it uses the closed source FMOD library for sound output on Windows. Releasing commercial software on Windows would require getting a license for FMOD.
However, since everything else is horrid beyond comprehension and this is just gem install gosu we’ll use it for now.
.. and examples work out of the box: /usr/lib/ruby/gems/1.8/gems/gosu-0.7.25/examples
- https://github.com/gosu/gosu/wiki/Ruby-Tutorial
- https://github.com/gosu/gosu/wiki/Getting-Started-on-Linux
- https://web.archive.org/web/20150906134738/http://ruby.about.com/od/gosugme/ss/Rapid-Game-Prototyping-In-Ruby.htm
—
- 2010-11-10 – (version not recorded) on Lubuntu 10.10
-
(date not recorded) – (version not recorded) – Unity Linux (version not recorded)
- I had issues installing it and never got it running.
-
TexPlay — an image manipulation tool for Ruby and Gosu
Snippets ∞
Additional libraries ∞
Troubleshooting ∞
Cannot require gosu, it explodes ∞
https://github.com/jacius/rubygame
crap I should have ignored that.. it’s for an older failed library.
smart install libsdl-devel libSDL_mixer-devel libboost-devel libSDL_ttf-devel libmesaglut3-devel libSDL_gfx-devel libSDL_image-devel
https://code.google.com/archive/p/gosu/wikis/GettingStartedOnLinux.wiki suggests libmesaglw1-devel libSDL_Pango-devel
gem install gosu gem install ruby-opengl
/usr/lib/ruby/gems/1.8/gems/gosu-0.7.25/lib/gosu.so: /usr/lib/ruby/gems/1.8/gems/gosu-0.7.25/lib/gosu.so: undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE - /usr/lib/ruby/gems/1.8/gems/gosu-0.7.25/lib/gosu.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/gosu-0.7.25/lib/gosu.rb:12
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from testgame.rb:6
Solved: I ended up switching from Unity Linux to Lubuntu.
OpenGL ∞
sudo gem install ruby-opengl freeglut3-dev
rake? mkrf?
sudo apt-get install ruby rdoc ri ruby1.8-dev
(RDoc)
Hrm, I don’t exactly remember what I did, but it was pretty easy to get things working.
2010-11-10 – (version not recorded) ∞
I began with:
\sudo \apt-get install libsdl1.2-dev pkg-config g++ libboost-dev libsdl-mixer1.2-dev ... and more, bah
Recommended, I did this:
\sudo \apt-get install g++ libgl1-mesa-dev libpango1.0-dev libboost-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev ruby1.8-dev \sudo \gem install gosu
./gosu.rb:5: uninitialized constant Gosu (NameError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./gosu.rb:3
I asked for help:
- https://code.google.com/archive/p/gosu/wikis/GettingStartedOnLinux.wiki
-
https://web.archive.org/web/20200929064014/https://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=493
Somehow, scripts began to work when I’m in ~ when I run them. This wasn’t the case earlier (they were broken everywhere). What the hell.
Unsolved: Why do I have to be in ~ or in the tutorials directory to run scripts?

