Skip to content

Dreamcast: examples

cjcliffe edited this page Sep 24, 2012 · 1 revision

Building and Running Examples

With CubicVR built and the dc-load-serial or dc-load-ip version of dc-tool installed you can build and run the example applications.

Building basic_test and running with dc-load-ip

Boot up the DC with the dc-load-ip disc created earlier and leave it waiting at the network status screen.

Go to the basic_test example folder and build the project, assuming you've used the same path from the other parts of the guide it will be as follows:

~$ cd ~/Dreamcast/CubicVR/dreamcast/examples/basic_test
basic_test$ make net
# ... project builds here ..

Using the dc-tool that was installed via dc-load-ip installation steps you can now execute the binary and upload filesystem iso:

basic_test$ dc-tool -x basic_test.bin -i basic_test.iso
# ... upload and exec ...
# ... Kallistios info ...
# ... Program console output ...

The basic_test application should now be up and running on the DC with a textured cube on a blue background. Note that if it couldn't detect the ARP assigned IP you must supply the IP manually by passing the additional option of -t like: dc-tool -x basic_test.bin -i basic_test.iso -t 192.168.2.4 where 192.168.2.4 is the address you assigned the DC via ARP.

You can press the 'Start' button to exit the application, if you hit CTRL-C in the shell you will need to restart the Dreamcast whereas providing an exit key will allow you to run again without doing so.

The remaining examples of 'bullet', and 'obj_model' can also be compiled and run the exact same way, just substitute for basic_test in the above example.