PDA

View Full Version : BeginnerGuide: How I made my first DC elf in WinXP



I_am_a_newbie
November 29th, 2004, 11:17
I've spent over a day trying to find out what I needed to compile for the DreamCast, and there was so much information that made lots of assumptions about cygwin, gnu and who knows what. I am a Windows guy, and I knew NOTHING about this, so therefore I got nowhere. Then I found rawoul's complete devkit, and it was *almost* all you need, but people were having problems. I solved my issues, and have successfully compiled an elf. Here is a step by step report, starting from having a Windows XP machine with an internet browser and an internet connection (it should work with other versions of windows also)

1. go to www.cygwin.cpp, run their setup program (http://www.cygwin.com/setup.exe). Use all default settings, but you must also install package: devel -> 'Make: The GNU version of the 'make' utility', version 3.80-1
2. Check your 'c:\windows\system32'. If you have a file called cygwin1.dll, then it might very well be out of date (I had this, don't know what installed this). Rename this to cygwin1old.dll, to get it out of the way
2. Download the 57mb development package from http://rawoul.free.fr/dcdev.tar.bz2, and move it to c:\cygwin\home\USER (where USER depends on what the name of your currently logged on user name is)
3. Open start menu->program files->cygwin bash shell
3. In cygwin shell, type: 'cd /home/USER' (where USER depends on what the name of your currently logged on user name is)
4. In cygwin shell, type 'tar -xvjf dcdev.tar.bz2'
5. The \cygwin\home\USER\dcdev\environ.sh file has a bug, as it assumed that the user was named rawoul. In a text editor (not notepad, it cannot read it properly, I used visual studio), edit this file, line 55, to contain: export PATH="${PATH}:${KOS_CC_BASE}/bin:${DC_ROOT}/dc/bin"
6. in cygwin shell, type 'cd dcdev'
7. in cygwin shell, type 'source environ.sh'
8. in cygwin shell, type 'cd sticks'
9. in cygwin shell, type 'make'
10. after a while it should finish, and if you scroll up there should Â*be 1 warning in total (unused variable IrisController&p).
9. in cygwin shell, type 'dir'. There should now be a file called sticksb0.elf

Warning: I have not tested the elf - that is my next step. But so far so good.

If you see any bugs in this please report them here. If not, I want to spread this guide around, because it is a pain to set this up

Darksaviour69
November 29th, 2004, 11:30
thanks for the tutorial, it helps the scene!