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
Thanks for posting that Jan. Where did you put RISC.img, relative to -/Bld/risc? I got similar <SDL errors> under slackware 13, which has got plenty README/s for SDL. Of course I don't need another ETHO version running under slak. I wonder if any body as actually tested under rPi; which has got 8 files: lib + a README* for sdl. But slak13 has ver 1.2.7 & rPi has *lib*1.2.so* ; which seems strange, since rPi is newer? It's quite difficult to d/l & compile with rPi, with only 2 ports for: keybrd, mouse, modem, external-memory. Let me try. == Chris Glur. On 4/6/14, Jan Verhoeven <jan@verhoeven272.nl> wrote:
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
eas lab wrote:
Thanks for posting that Jan. Where did you put RISC.img, relative to -/Bld/risc?
~/Bld is a scratchpad for building packages... I built the 'risc' executable in '~/Bld/risc'. Then I copied it to ~/Oberon/risc (together with pcsend.sh, and pcreceive.sh Npw just add the RISC.img file and you can rock 'n roll.
I got similar <SDL errors> under slackware 13, which has got plenty README/s for SDL.
The emulator requires SDL2 so you need to get the sources and compile them. Yes, /usr/doc/SDL-1.2.14 is a treasure chest of information.
Of course I don't need another ETHO version running under slak. I wonder if any body as actually tested under rPi; which has got 8 files: lib + a README* for sdl. But slak13 has ver 1.2.7 & rPi has *lib*1.2.so* ; which seems strange, since rPi is newer?
Yeah but the Raspie is based on the ARM library tree and these are not always current. -- Groetjes Jan Verhoeven
The emulator depends on "SDL2" and not "SDL1.2." The easiest way is to download the latest SDL2 Version from "http://www.libsdl.org/". BW, Volkert Am 09.04.2014 19:18, schrieb eas lab:
Thanks for posting that Jan. Where did you put RISC.img, relative to -/Bld/risc? I got similar <SDL errors> under slackware 13, which has got plenty README/s for SDL. Of course I don't need another ETHO version running under slak. I wonder if any body as actually tested under rPi; which has got 8 files: lib + a README* for sdl. But slak13 has ver 1.2.7 & rPi has *lib*1.2.so* ; which seems strange, since rPi is newer?
It's quite difficult to d/l & compile with rPi, with only 2 ports for: keybrd, mouse, modem, external-memory.
Let me try.
== Chris Glur.
On 4/6/14, Jan Verhoeven <jan@verhoeven272.nl> wrote:
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
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
volkert@nivoba.de wrote:
The emulator depends on "SDL2" and not "SDL1.2." The easiest way is to download the latest SDL2 Version from "http://www.libsdl.org/".
Do you have any experience with statically linked SDL and SDL2 sources? I cannot statically link SDL sources. Yet. As far as I know, statically linking cannot be done with SDL. Right? I want to experiment with a foreign module for Mocka, based on SDL or SDL2. -- Groetjes Jan Verhoeven
O M G !! Another ETHO. Looks good; but I lost mouse & keybrd. Perhaps/understandably <RISC.img> doesn't do USB. But rPi only has USB: 2 ports. It's confusing, switching the display from rPi to slak13's:- 1. LEO = the work-horse. 2. LNO: FrameBuffer [not X11] is impressive. Yes now I remember it seg-faults for `oberon`. I use ./install. & then the only line ending with ".". Obviously the <*.par> is first set for FrameBuffer mode. LNO needs you to make your own file-tree navigation tools. I need it mostly to read my old: N-O partitions. 3. V4 opens *nix & AOSfs files automatically, per format. I patched <saveAsAscii> to <saveAs*nix> V5forPi looks like an example of a successful collaborative project? But did anybody run V5 on rPi YET? ====
As far as I know, statically linking cannot be done with SDL. Right? 'statically linking' is about bundling the libraries into the single executable when compiling - I think? man <gcc> shows a zillion references to "static". Since SDL 'interlinks' so many facilities: statically could be a problem? ==== Now that I've recovered from seeing ETHO V5, let me switch back to see if rPi is still alive.
== Chris Glur
Am 09.04.2014 20:19, schrieb Jan Verhoeven:
volkert@nivoba.de wrote:
The emulator depends on "SDL2" and not "SDL1.2." The easiest way is to download the latest SDL2 Version from "http://www.libsdl.org/".
Do you have any experience with statically linked SDL and SDL2 sources? Sorry, i have not.
BW, Volkert
participants (3)
-
eas lab -
Jan Verhoeven -
volkert@nivoba.de