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) toolchains

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
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/DC-SWAT/DreamShell/raw/ab09ad5c19464cd346fc029a25e02b2059ab80c6/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
sudo apt install -y automake-1.15
sh utils/build-all.sh

Leave a Reply

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