Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Tutorial #1: Setting up cygwin and KOS 1.3.x

                  
   
  1. #1

    Default Tutorial #1: Setting up cygwin and KOS 1.3.x

    EDIT (4/13/05): Changed path settings to /etc/profile. Added environ.sh file that I left out after the upgrade of the tutorial to use 1.3.x.
    EDIT (4/6/05): Upgraded tutorial to use KOS 1.3.x instead of 1.2.0.

    These tutorials should help you get started with Dreamcast development, even if you haven't coded before in your life. I'm trying to make these as newbie friendly as possible, so if you have any trouble with these, post here and let me know, so I can update them as appropriate.

    1) Download http://www.cygwin.com/setup.exe

    2) Run setup.exe
    a) Select Install for all users
    b) Select Text file type: unix
    c) Click on a mirror site
    d) Check all the boxes - you want a complete install

    This will take a while

    3) When the installation is done, Download
    http://s101533388.onlinehome.us/GPF/342sh-elf.rar
    a) Extract to c:\cygwin\usr\local\dc

    4) Download http://www.consolevision.com/members..._toolchain.rar
    a) Extract to c:\cygwin\usr

    5) Download http://s101533388.onlinehome.us/GPF/kos1.3.rar
    a) Extract to c:\cygwin\usr\local\dc

    6) Download http://s101533388.onlinehome.us/GPF/environ.rar
    a) Extract to c:\cygwin\usr\local\dc\kos1.3\kos

    7) Run a command prompt (cmd.exe, command.com depending on your version of Windows)

    8) Type cd\cygwin

    9) Type cygwin.bat

    10) close cygwin

    11) Open c:\cygwin\etc\profile in a text editor such as Notepad or Wordpad
    a)Add these lines to the bottom of the file:
    PATH=/usr/local/dc/arm-elf/bin:$PATH
    PATH=/usr/local/dc/sh-elf/bin:$PATH

    b)Then save the file.

    Now that you have Cygwin and KOS setup and workable, go to Tutorial #2 where we will learn to compile a simple SDL game (port) to the Dreamcast.

  2. #2
    DCEmu Newbie
    Join Date
    Apr 2005
    Posts
    5
    Rep Power
    0

    Default

    All the links have been shortened and don't work...is there some way to fix that? -_-"

  3. #3

    Default

    The original links didn't allow hotlinking. Try now.

  4. #4
    DCEmu Newbie
    Join Date
    Apr 2005
    Posts
    5
    Rep Power
    0

    Default

    It works. yay.

  5. #5
    DCEmu Newbie
    Join Date
    Apr 2005
    Posts
    5
    Rep Power
    0

    Default

    shouldn't c:\cygwin\usr\local\dc be where you extract kos to? Also the arrangement of 1.3 is different...so tutorial #2 is rather confusing >.>

  6. #6

    Default

    Quote Originally Posted by Cyruz
    shouldn't c:\cygwin\usr\local\dc be where you extract kos to?
    Yeah, you're right.

    Quote Originally Posted by Cyruz
    Also the arrangement of 1.3 is different...so tutorial #2 is rather confusing >.>
    Yeah, I completely forgot about different file names and whatnot. I wasn't going to go with 1.3.x, but decided to after the file downloads didn't work, as 1.3.x is stable, and it's less bugridden and has more features than 1.2.0. Everyone should be using the 1.3.x branch these days.

    I'll fix tutorial #2 right now.

  7. #7
    DCEmu Rookie Saoshyant's Avatar
    Join Date
    Apr 2004
    Location
    Portugal
    Age
    40
    Posts
    106
    Rep Power
    75

    Default

    Cheers fellow Metafox

    (we can do praise in this forum right? well if not delete this. Kudos anyway, I was feeling a tutorial like this was needed.)

  8. #8
    DCEmu Respected souLLy's Avatar
    Join Date
    Mar 2004
    Location
    London
    Age
    41
    Posts
    1,602
    Rep Power
    88

    Default

    great work meta, might even give this a go myself.

  9. #9

    Default

    Well I PMed you a thanks yesterday, but since the ball has started rolling... thanks again

  10. #10
    DCEmu Newbie
    Join Date
    Apr 2005
    Posts
    2
    Rep Power
    0

    Default

    I tried to follow your tutorial, but I somehow failed with cygwin installation. I have downloaded all cygwin packages and installed them for all users.

    I run cmd.exe, go to c:\cygwin and type cygwin.bat. It starts nicely, but when I enter 'useradd' I only get:

    bash: useradd: command not found

    OK, I can survive that. Then I looked into my directory, but the .bashrc is simply not there.

    So I created one with the contents:

    $ more .bashrc

    PATH=/usr/local/dc/arm-elf/bin:$PATH
    PATH=/usr/local/dc/sh-elf/bin:$PATH

    However it has no effect, even if I quit cygwin and login again. The changed variables are not in my environment.

    I can compile regular C++ programs (non-DC) without any problems.

    Maybe I don't have all packages? I run setup again and pressed view button to see the list of not installed packages. I can only see: emacs-leim and gcc-testsuite, so everything else should be installed. The directory with packages on disk, that was created during setup is 487MB big. The directory c:\cygwin (with kos/armtoos/sh-elf) is 1.77 GB big.

    Perhaps my environment is important:

    I'm running WinXP Pro on my notebook. I have 2 users: "admin" with administrator rights, that I used for installing cygwin and "user2" without administrator rights which I normally use for development.

    I tried both users, but the cygwin only works for "admin", which I can survive.

    Any clues what I'm doing wrong, so that I cannot change the PATH variable?

    Thanks,
    Cysio

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •