Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
65 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:

Contents
 Introduction
 Compiling Our
 First Program


 Printable version
 Discuss this article
 in the forums



The Series
 Part I
 Part II

Compiling Our First Program

Once everything is setup, you can test it by compiling the Stars demo from Dan Potter’s site.

Note: You will have to edit the Makefile to fit your system

Note: If you are using the uploader.py script you must keep Minicom open

Linux

Try typing make run from the console in the current directory of the demo program. This will test whether you have built your cross-complier correctly and that your system is producing SH-4 executable files in little endian format. make run will also attempt to upload your srec to the Dreamcast only if you have installed uploader.py from Dan’s site.

Win32

Try typing make srec from the console in the current directory of the demo program. This will test whether you have built your cross-complier correctly and that your system is producing SH-4 executable files in little endian format. Now you will have to use a Windows load utility to upload your srec file to your Dreamcast. DC Uploader 2.01 works great for this.

After the uploading is done you should see the stars demo on the screen.

Congratulations!!!! You’re now ready to create your own real homebrew Dreamcast programs. The next part in this series will talk about using Libdream and KOS for drawing graphics on the screen.

Any Problems?

First you should visit www.julesdcdev.com. This is a GREAT portal site with lots of resources to get you started in DC programming. Also try http://newbie.julesdcdev.com. Also, I would advise anyone that is interested in DC programming to join the dcdev mailing list: dcdev-subscribe@egroups.com