This is most likely the same thing that was happening to this other user on Windows 7 as he is getting the same error messages as I was. You can get around it on Linux by doing the following:
- Code: Select all
cd /usr/lib
sudo ln -s libSDL-1.2.so.0.11.2 libSDL.so
You can get around it on Windows by renaming the files or creating new ones that follow the naming convention.
The actual version number of your SDL may vary but the concept is the same. You will also need to do the same for all the other libraries as well.
Oddly enough when I first tried to install Rubygame SDL would load but the other libraries would not. I can only assume another game I had installed had created the symlink.
You could just use custom SDL loading paths to get around this but this appears to not work either. It appears to just ignore any of the path names I pass to it. Tested this by copying my libSDL to the libs subdirectory of my game folder and renaming it to "libSDL.so" and then using this example code:
- Code: Select all
main_dir = File.dirname(__FILE__)
SDL_PATHS = [ File.join( main_dir, "libs" ) ]
require "rubygame"
You would only notice this fail if there is not a symlink in the /usr/lib directory since load_library falls back on to the standard paths which may explain why no one has noticed.
Is there any way to add this to the installation documentation on the wiki? It might save someone a few hours scratching their heads.
