PROGRESS: I tried installing Sonic R again, this time with Compiz turned off. This time, it worked! It crashed when I went to run the game, but I got the following output in the terminal:
Unhandled exception: divide by zero in 32-bit code (0x004801d9).
That got me thinking. Maybe we're having these problems because we're trying to run 32-bit Windows apps with the 64-bit version of Wine, on 64-bit Ubuntu? I don't know much about this kind of thing, but http://wiki.winehq.org/WineOn64bit says
If you're running a 64 bit version of your distro, building Wine the usual way yields... 64 bit wine! This usually isn't what you want. Building a 32 bit Wine on a 64 bit system requires a few extra steps.
They give instructions for building 32-bit Wine "The easy way," which is only supported on Ubuntu 8.10 out of all the distros of Linux right now. Lucky us! Unfortunately, I ran their instructions and got
install-wine-deps.sh: 2: Syntax error: newline unexpected
A bit of examination revealed why. The install-wine-deps.sh file that's retrieved using their command is an HTML file from Google Code! Talk about your mix-ups. But Google came through to help me find what we're *really* looking for, here: http://www.nabble.com/install-wine-deps.sh-can-now-handle-32-bit-wine-on-64-bit-systems-td21260595.html
I clicked on the link that they gave there, http://code.google.com/p/winezeug/source/browse/trunk/install-wine-deps.sh, and got -- sure enough -- a Google Code page. The code was there, though, and this time I just copied and pasted it into Gedit, and saved over the old file. Then I typed
sudo sh install-wine-deps.sh
as WineHQ recommended in the link that I gave earlier, and it worked! It pulled down all the necessary files and installed them.
Unfortunately, I'm stuck on the next part, where *they* say to type
./configure
make
and the guy on Nabble says to type
./configure --target=i686-unknown-gnu-linux
make
because typing ./configure just gives me
bash: ./configure: No such file or directory
Is there something I'm missing here? What can I do to get it to work? And does this sound like a good idea to investigate?
Incidentally, I think the problem with Runescape that I mentioned might be because I was trying to run it in IcedTea. Unfortunately, there isn't a 64-bit version of Sun Java in the repositories. There was a thread somewhere on the forums that explained how to install 64-bit Sun Java, but I tried it and couldn't get it to work. Maybe I did something wrong? I'll try to dig that thread up later on.