Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Installation tutorial for xspim UNIX
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
    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!
  • Currently 1.40 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)

Installation tutorial for xspim | 1 comments | Create New Account
Click here to return to the 'Installation tutorial for xspim' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Installation tutorial for xspim
Authored by: amedico on Sep 27, '04 11:32:19PM

The above is no longer necessary - simpy following the directions on the site is sufficient. The only thing you may want to do is set TRAP_DIR to an absolute path so you don't always have to keep exceptions.s in your working directory.

[ Reply to This | # ]