PDA

View Full Version : SDL with newlib KOS and GCC 3.4.X



GPF
October 16th, 2004, 04:39
Anyone get it to work? I might have patched it wrong?

I rebuilt SDL_mixer, SDL_image, and SDL with all known patches. But now I have some weird problems. I had to reduce the screen from 32 bit to 16 bit and use software and not hardware rendering. and the controller is all messed up, directions are reversed and no sound.

I was able to get SDL_mixer to play mod files in another program.

Unfortunetly, I can only test with Chankast right now, so that might be the problem also. But somethings were working before so I don't know if its SDL or changes to KOS that broke SDL.

Thanks

quzar
October 16th, 2004, 05:46
i still cant get newlib/kos-svn to work right at all =( as soon as i do ill try testing for you.

bender
October 16th, 2004, 09:56
If you are building the toolchain using Jim's Makefile, just remove the 'patch_kos' thing from the Makefile (latest versions of kos are already patched and the build does not work if you don't remove it)
i've also tested some kos examples and seems everything it's ok ;)
cheers

GPF
October 16th, 2004, 10:30
yeah most of the KOS examples work fine. Just running into some issues with SDL. Just wanted to see if anyone else had patched SDL and if it worked for them.

Quzar, are you using the toolchain script from Jim Ursetto at http://3e8.org/hacks/dc/dc-chain-0.1.tgz ?

I couldn't get GCC to build under Mingw/msys that easy and I can't get any examples to work. But under Cygwin the script was flawless, I started it, went out to lunch and came back it was done.

If I can compress it down, I'll post it somewhere next week.(its on my work computer).

There used to be a thread on consolvision, that blackaura wrote describing the process he used to shrink the gcc 3.0.4 toolchain, but it appears that since the cv forum changeover , a lot of the dev post are gone.


Troy

quzar
October 16th, 2004, 11:07
I used this one:



#! /bin/sh
#
# dc_build.sh
# Toolchain builder for Dreamcast development
#
# By BlackAura, May 30th 2003
# [email protected]
#
# Compiler setup based on Hangar Eleven's Cygwin tutorial
# http://www.hangar-eleven.de/en/devdc-gcc-cygwin.html
#
# MinGW patches based on Lawrence Sebald's MinGW build script
# http://ljsdcdev.sunsite.dk/
#

Mekanaizer
October 16th, 2004, 12:39
Hi

For me it works 100%

GPF check your PM board :)

-Mekanaizer-