PDA

View Full Version : Installing spim



eyescythe
07-21-2010, 07:56 AM
Hello Everyone!

Im installing spim on ubuntu which i got from SPIM MIPS Simulator (http://pages.cs.wisc.edu/~larus/spim.html).
Ive followed the steps but suddenly i got these following errors.



jars@jars-desktop:~/Desktop/spim/spim-8.0/xspim$ xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
<stdin>:1:19: error: stdio.h: No such file or directory
<stdin>:2:19: error: ctype.h: No such file or directory
<stdin>: In function ‘main’:
<stdin>:18: error: ‘NULL’ undeclared (first use in this function)
<stdin>:18: error: (Each undeclared identifier is reported only once
<stdin>:18: error: for each function it appears in.)
<stdin>:45: warning: incompatible implicit declaration of built-in function ‘sscanf’
<stdin>:49: warning: incompatible implicit declaration of built-in function ‘printf’
Aborted



im stucked right there and i dont know what to do. can anyone help me? :D

Thanks in advance!
Have a nice day!

Salem
07-21-2010, 10:39 AM
Did you install a C compiler?

Did you install a standard C library?

eyescythe
07-23-2010, 08:15 AM
thanks man! ive fixed this error

..gosh there's many requirement to install spim

eyescythe
07-23-2010, 11:36 AM
but now i have this error


/usr/bin/ld: cannot find -lXaw
collect2: ld returned 1 exit status
make: *** [xspim] Error 1


ive already installed a C compiler, flex and bison...

is there anything i need to install? (if there is one, then how do i install it?)

any comment is highly appreciated :)

Salem
07-23-2010, 12:50 PM
Xaw - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Xaw)

Either
- you need to install it,
- you need to get the name correct (do you have libXaw.a)?
- you need to specify the directory (using -L) where libXaw.a can be found.

Remember, case is important. Does it really have a capital letter?

eyescythe
07-23-2010, 07:33 PM
thanks a lot man!

ive completely installed spim!
now time for some programming action! :D

have a nice day!!