Compiling Our First ProgramOnce 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 LinuxTry 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. Win32Try 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 |