SDL on RISCOS
Stephen Leary (372) 272 posts |
Has anyone managed to (cross) compile SDL with GCCSDK lately? /riscos/compileZone/libsdl1.2-1.2.13$ make /bin/sh ./libtool—mode=compile arm-unknown-riscos-gcc -g -O2 -I./include -D_GNU_SOURCE=1 -D_REENTRANT -c ./src/video/riscos/SDL_riscosFullScreenVideo.c -o build/SDL_riscosFullScreenVideo.lo arm-unknown-riscos-gcc -g -O2 -I./include -D_GNU_SOURCE=1 -D_REENTRANT -c ./src/video/riscos/SDL_riscosFullScreenVideo.c -o build/SDL_riscosFullScreenVideo.o ./src/video/riscos/SDL_riscosFullScreenVideo.c:44:24: error: unixlib/os.h: No such file or directory my unixlib directory does not contain an os.h header. |
Chris Gransden (337) 1207 posts |
I can confirm that it works fine. I’m not sure why you’re getting that error though. |
Stephen Leary (372) 272 posts |
Thanks for the reply Chris, can you confirm the presence of os.h in your unixlib include directory? |
Chris Gransden (337) 1207 posts |
It looks like one of the autobuilder patches hasn’t applied properly. See here for the relevant patch. |
Stephen Leary (372) 272 posts |
Discovered my problem…. rman wasnt installed, however oracle11g client was installed and has a executable component called rman! Lovely! |
Stephen Leary (372) 272 posts |
Coreutils seems to have been updated in such a way that the current patches do not apply. I havent seen an “autobuilder” product to raise this as a bug in bugzilla. patching file lib/mountlist.c Hunk #1 succeeded at 89 (offset -10 lines). Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/freadptr.p patching file lib/freadptr.c Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/Makefile.p patching file man/Makefile.in Hunk #1 FAILED at 1278. 1 out of 1 hunk FAILED —saving rejects to file man/Makefile.in.rej Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/freading.p patching file lib/freading.c Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/freadseek.p patching file lib/freadseek.c Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/fseterr.p patching file lib/fseterr.c Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/getloadavg.p patching file lib/getloadavg.c Hunk #1 succeeded at 357 (offset -8 lines). Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/freadahead.p patching file lib/freadahead.c Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/signal.p patching file lib/signal.in.h Hunk #1 succeeded at 322 with fuzz 1 (offset 131 lines). Autobuilder: RISC OS patch: /opt/gccsdk/autobuilder/cli/coreutils/stat.p patching file src/stat.c Hunk #1 succeeded at 117 (offset -1 lines). Autobuilder: Patches failed Package coreutils: Failure Build for package “coreutils” failed |
Jeffrey Lee (213) 6048 posts |
It’s probably a good idea to talk about any problems you have with GCCSDK on the GCCSDK mailing list, since I don’t think ROOL intend these forums to cover RISC OS related topics as a whole (and the people who are most knowledgeable about the GCCSDK autobuilder may not frequent these forums) For general RISC OS programming stuff there’s always comp.sys.acorn.programmer, or the iconbar forums |
Stephen Leary (372) 272 posts |
Yeah i tried the gccsdk mailing list list but it doesnt let anyone post to it. Which makes it as useful as an ashtray on a motorbike. |
Chris Gransden (337) 1207 posts |
Did you go here and subscribe first? |
Stephen Leary (372) 272 posts |
yes, subscribed and confirmed and the mailing list rejected my mails. |
Chris Gransden (337) 1207 posts |
If you try building coreutils again you should now find it builds successfully. Hopefully I didn’t break anything. :-) |
Stephen Leary (372) 272 posts |
Thanks for looking at that for me Chris, the patches applied but the build failed.
|
Chris Gransden (337) 1207 posts |
I was using shared libraries. If you try again it should be ok. |
Stephen Leary (372) 272 posts |
Sorted, Thanks Chris. |
Uwe Kall (215) 120 posts |
Chris, Stephen – do you have a readily built !SDL app that can be used on the beagleboard? And maybe some instructions on how to set it up? (I used it on the RiscPC some years ago but it was too slow for what I intended to do with it) |
Chris Gransden (337) 1207 posts |
All of the games here on riscos.info use the SDL libraries. They all run on the beagleboard except Wesnoth. Most should run with acceptable frame rates on a standard beagleboard. You’ll also need Drenderer and UnixHome. Due to slow usb you may experience slow startup times, best to run them from a RAM disc. |