Installation tutorial for xspim
Sep 05, '01 02:17:03AM
Contributed by: eagle_eyes
I have spent the last few days trying to get xspim (a MIPS emulator) to work with OS X and have finally got it going. After spending many frustrating hours on it I figured that I would post how to get it working for the few who might need it (unless you are really into assembler or need it for class or work there is really no point). fyi: download spim from here
Read the rest of the article for detailed installation instructions...
1. Install Xfree86 and get xDarwin working...
The key here was to run the installer script as root or in sudo mode (see my previous post on xWindow)
2. Modify the Configure file...
OS X uses alot of the same stuff as BSD, it just needed the name of the libc file - libc.dylib. and instead of using termio, it uses termios so all those references in these two parts had to be changed
3. Add two links (switch to root or sudo -s from here on out to make it easier)...
in the usr dir add a link for X11R6 to X11
in the usr/include dir add link for /usr/X11/include/X11 to X11
4. Change the Makefile.std...
X_Include_dir = /usr/X11/include
TOPDIR = /usr/X11
TRAP_DIR /usr/bin
BIN_DIR = /usr/bin
MAN_DIR = /usr/man (I had to make this directory because I could not figure out where the rest of the man files were stored at, my ignorance of unix shows well here)
5. run the configure file...
sh Configure
6. run the install to put the trap handler where it belongs...
make -f Makefile.std install
7. run the test make...
make -f Makefile.std test
this is where most problems show up, if it fails either something is funky with the os X running, or something was not set right
8. run the full make
make -f Makefile.std xspim
9. run the install one last time
make -f Makefile.std install
10. fire up xDarwin and run xspim from the prompt
xspim
it may just be my ignorance of xWindow, but the program loads and there is a black frame attached to the mouse that once clicked somewhere the program shows up.
11. Get some sleep :-)
I don't know if this will be of any help, but I spent enough time trying to get it working that I figured I would spread the word on how to get it running in OS X!
Comments (1)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20010905021703203