Dreamcast SDK: Installing the open source KallistiOS SDK

I always struggle to install the open source dreamcast sdk “KallistiOS“, so here is a few commands which should help with that.

Installing KOS (KallistiOS) toolchain

sudo apt install -y build-essential git texinfo libjpeg-dev automake-1.15
sudo mkdir -p /opt/toolchains/dc
sudo chown -R $USER:$USER /opt/toolchains/dc
cd /opt/toolchains/dc
git clone git@github.com:Cpasjuste/KallistiOS.git kos
cd kos/utils/dc-chain
#wget https://github.com/Cpasjuste/DreamShell/raw/0ec9e645a3a1fcca9bad71e0c1ef42476afda477/sdk/toolchain/patches/gcc-9.3.0-kos.diff -O patches/gcc-9.3.0-kos.diff
cp config.mk.testing.sample config.mk
./download.sh && ./unpack.sh
make
./cleanup.sh

Installing KOS “sdk” with dc-swat patches for g1-ata and such (useful for RetroDream, for example)

cd /opt/toolchains/dc/kos
wget https://github.com/Cpasjuste/DreamShell/raw/0ec9e645a3a1fcca9bad71e0c1ef42476afda477/sdk/toolchain/patches/kos.diff
git apply kos.diff
cp doc/environ.sh.sample environ.sh
source /opt/toolchains/dc/kos/environ.sh
make -j9

Installing KOS ports (libraries) from my repo (include a few fixes and simulant OpenGL 1 wrapper)

cd /opt/toolchains/dc
git clone git@github.com:Cpasjuste/kos-ports.git
cd kos-ports
sh utils/build-all.sh

Leave a Reply

Your email address will not be published. Required fields are marked *