Hi all Looking at the web page for the Spoon/0.8.1 release, it mentions Windows and Linux, but doesn't mention OS X on a Mac. There was a OS X port a while ago (mid-2007) which worked pretty well, but is there an official more up-to-date version?
I have actually got the "Spoon" release working on my Mac Pro (running Leopard 10.5.6), but only after a bit of hacking: 1. The "configure" file looks for "macosx" in the host string, but my host string returns "i386-apple-darwin9.6.0". I'm hopeless with bash, so I just duplicated the "macosx" bit and changed the case to say "*darwin*". 2. Various functions in the "ide.c" file reference 64-bit file handling things in "stdio.h", such as "fopen64" and use "off_64t"s to store various values, which Leopard doesn't support. Apparently the standard "fopen" supports 64 bits and so on, so I had to comment out a load of code in the "loadhd" where it checks that the hard disc image files can be opened and change off64_t to off_t in the "callbackide" function. 3. Compiling got almost to the end and then complained about a missing file - "rpc-macosx.c". This doesn't exist anywhere. I made a copy of the Linux one, reasoning that there's probably not a huge difference given the Un*x roots of both OSs and changed the name accordingly. 4. #3 then threw up an error about the "initnetworking" function not being defined, which is in the "linux-networking.c" file. Attempting to compile this failed for some reason, so I just commented out the "initnetworking" call. At this point, compilation completed and I had a freshly-built "rpcemu" binary. Running this gave me an error, telling me that the size of the files in the ROM directory was incorrect - too big. These were the same files that I used with the previous OS X version, so I knew they were fine. Thinking that the "roms.txt" file was being picked up, I tried deleting that, to no avail. By editing the "romload.c" file to insert some "printf" statements, the culprit made itself clear: the ".DS_Store" file that OS X sprinkles everywhere. I changed the code so that if a file starts with a full stop, it doesn't get picked up. Success! It booted up my old RISC PC disc image and promptly crashed when something called "!CDFix" ran. Messing around with blank hard disc images revealed an odd Pinboard behaviour - if you click on the Pinboard and attempt to drag a selection rectangle, the mouse immediately jumps outside the RPCEmu window to a position just outside the bottom left corner. Weird. Anyway, after getting rid of !CDFix, I got the desktop to run properly. The Pinboard bug vanished as I use !Larger instead and I gave Sim City 2000 a whirl - works perfectly. There are some issues: 1. I have no idea how to get the menus up, so I have to edit "rpc.cfg" manually to change memory settings and the like. 2. Caps Lock doesn't work at all. 3. Mouse buttons are strange: the middle button on my Microsoft mouse doesn't do anything, presumably because it doesn't do anything on OS X either aside from act as a wheel. ALT+Left click mimics the Menu button. Similarly, the right button doesn't work either (it does in OS X), but CTRL-clicking gets around this. 4. I can't press F12 to get to the command prompt as this invokes the Dashboard instead. 5. It could really, really do with an OS X front end with proper menus and the like for changing the configuration. Unfortunately I have no idea how to implement one! Would the developers be interested in patches so others can get Spoon compiling on a Mac without hacking source code? I can patch the code properly if you want and produce some diffs. Cheers Tim -- [email protected]
_______________________________________________ Rpcemu mailing list [email protected] http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu
