Using Ruby for Sega Dreamcast development

From dreamcast.wiki
Revision as of 08:52, 22 February 2020 by Unknown user (talk) (→‎Draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

It's possible to develop in Ruby for the Sega Dreamcast using the mruby implementation. The proof-of-concept was made by Yuji Yokoo back in 2019. This is experimental and a lot of features are missing/not working/not tested (e.g. debugging).

Prerequisites

You should have a working KallistiOS environment. Also you need to have rake and bison installed.

Installing prerequisites on MinGW/MSYS

Install RubyInstaller (if XP : 2.0.0) then add it to the path. Install bison in the MinGW Get program

Installing prerequisites on MinGW-w64/MSYS2

 pacman -S rake bison

Setting up mruby

Open a Shell and type the following:

cd /opt
git clone https://github.com/mruby/mruby.git
cd /opt/mruby
cp examples/targets/build_config_dreamcast_shelf.rb /opt/mruby/build_config.rb
make

This will generate all the required files, the -lmruby is now available