sinclair44
New member
I'm trying to get 0.4 working on OS X (again). I'm okay using the X11/gtk environment, but I'm having some problems running it. Here's what I've done to get it to compile:
- modify the SDL test and makefiles to use `sdl-config --cflags` and `sdl-config --libs` as apopriate
- remove #include <malloc.h> in a bunch of places
- comment out the x86 asm in r4300/x86/rjump.c - this is probably the cause of my problems, or the next one
removing random code is not generally a good idea, I know, but I wanted to get it to compile 
- copy a bunch of signal defines from some page on the internet into main/gui_gtk/main_gtk.c - OS X was missing a few, so I copied the whole lot from another OS, I think BSD... again, probably not a good idea, but I wanted it to compile
Well, the interface runs, and can load a ROM, but it crashes when I try to run it (yes, I expected that to happen!!! it actually got farther than I thought it would). Here's a transcript of me loading Mario 64 and trying to run it:
My problems now:
- fixing the 3 lines of x86 asm in the whole project! They're all in r4300/x86/rjump.c
- finding the right header/defines for main/gui_gtk/main_gtk.c
- since the ROM loads sucessfully, I assume there are no endian issues... Flea got them fixed?
(To OS X users: there's really very little hope of this working, but I figured it was worth a shot.)
Thanks for any help or insight... and I apologize for any incoherentness in the above post... it's late.
- modify the SDL test and makefiles to use `sdl-config --cflags` and `sdl-config --libs` as apopriate
- remove #include <malloc.h> in a bunch of places
- comment out the x86 asm in r4300/x86/rjump.c - this is probably the cause of my problems, or the next one
- copy a bunch of signal defines from some page on the internet into main/gui_gtk/main_gtk.c - OS X was missing a few, so I copied the whole lot from another OS, I think BSD... again, probably not a good idea, but I wanted it to compile
Well, the interface runs, and can load a ROM, but it crashes when I try to run it (yes, I expected that to happen!!! it actually got farther than I thought it would). Here's a transcript of me loading Mario 64 and trying to run it:
Code:
Couldn't read config file '/Users/josh/Desktop/emu64/.//gui_gtk.conf': No such file or directory
rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
file found
rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
byteswaping rom...
rom byteswaped
rom loaded succesfully
80 37 12 40
ClockRate=f
Version:1444
CRC: 635a2bff 8b022326
name: SUPER MARIO 64
Manufacturer: Nintendo
Cartridge_ID: 534d
Country Code : 4500
size: 4096
PC= 80246000
md5 code:20B854B239203BAF6C961B850A4A51A2
eeprom type:0
init timer!
memory initialized
demarrage r4300
dynamic recompiler
Signal number 4 caught:
errno = 0 (Unknown error: 0)
My problems now:
- fixing the 3 lines of x86 asm in the whole project! They're all in r4300/x86/rjump.c
- finding the right header/defines for main/gui_gtk/main_gtk.c
- since the ROM loads sucessfully, I assume there are no endian issues... Flea got them fixed?
(To OS X users: there's really very little hope of this working, but I figured it was worth a shot.)
Thanks for any help or insight... and I apologize for any incoherentness in the above post... it's late.