[Oberon] Compiling the RISC system

Jan Verhoeven jan at verhoeven272.nl
Sun Apr 6 14:49:55 CEST 2014


It might have been published before but here are the things I did to get 
the risc machine working under Slackware 14.0:

bash-4.2$ mkdir Bld/risc

bash-4.2$ cd Bld/risc

bash-4.2$ git clone https://github.com/pdewacht/oberon-risc-emu .

bash-4.2$ make
cc -o risc sdl-main.c sdl-ps2.c risc.c risc-fp.c risc-sd.c pclink.c -g
-Os -Wall -Wextra -Wconversion -Wno-sign-conversion -std=c99
sdl2-config --cflags --libs -lm
/bin/sh: sdl2-config: command not found
sdl-main.c:7:17: fatal error: SDL.h: No such file or directory
compilation terminated.
sdl-ps2.c:3:17: fatal error: SDL.h: No such file or directory
compilation terminated.
make: *** [risc] Error 1
bash-4.2$

install SDL2 from source

  - download
  - extract
  - ./configure
  - make
  - become su
  - make install
  - exit

now recompile in /Bld/risc with

bash-4.2$ make

Make sure RISC.img is extracted and available

And it runs with

bash-4.2$ ./risc RISC.img

I just have reformatted the C sources for an old git like I am with more 
whitespace and curly braces on a line by themselves etc.

The emulator is an impressive piece of work.

-- 
Groetjes

Jan Verhoeven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/oberon/attachments/20140406/7c40c039/attachment.html 


More information about the Oberon mailing list