Difference between revisions of "Compiling KOS on Windows"

From DCEmulation
Jump to navigation Jump to search
(Toolchain (cross-compiler and libraries))
Line 9: Line 9:
 
== Toolchain (cross-compiler and libraries) ==
 
== Toolchain (cross-compiler and libraries) ==
 
# Run 32bit Cygwin Terminal as administrator [[File:Cyg02.jpg]]
 
# Run 32bit Cygwin Terminal as administrator [[File:Cyg02.jpg]]
 
 
# Download kos-2.0.0-src.tar.gz from here http://sourceforge.net/projects/cadcdev/files/kallistios/2.0.0/
 
# Download kos-2.0.0-src.tar.gz from here http://sourceforge.net/projects/cadcdev/files/kallistios/2.0.0/
 
# Create a folder /dc/ in your /Cygwin/usr/local/ folder
 
# Create a folder /dc/ in your /Cygwin/usr/local/ folder
Line 17: Line 16:
 
# In cygwin, navigate to your dc-chain folder. Since I installed the chain on my d:, my command is
 
# In cygwin, navigate to your dc-chain folder. Since I installed the chain on my d:, my command is
 
  $ cd d:/cygwin/usr/local/dc/kos/utils/dc-chain
 
  $ cd d:/cygwin/usr/local/dc/kos/utils/dc-chain
 
 
# Download the libs needed by dc-chain by running the script with this command:
 
# Download the libs needed by dc-chain by running the script with this command:
 
  $ ./download.sh
 
  $ ./download.sh
 
 
# Extract the libs needed by dc-chain by running the script with this command:
 
# Extract the libs needed by dc-chain by running the script with this command:
 
  $ ./unpack.sh
 
  $ ./unpack.sh
 
 
# Patch the default kos install by running the script with this command:
 
# Patch the default kos install by running the script with this command:
 
  $ ./patch.sh
 
  $ ./patch.sh
 
 
# Build the dc-chain with this command
 
# Build the dc-chain with this command
 
  $ make
 
  $ make

Revision as of 08:48, 15 March 2016

Cygwin setup

  1. Install Cygwin 32bit, setup-x86.exe from here http://cygwin.com/install.html
  2. Click next twice, making sure to install from internet.
  3. Choose install directory. I chose d:\cygwin. Click next.
  4. Choose download directory. Does not affect install directory. Click next 3 times.
  5. Chose packages to install. I chose Devel, Libs, and Utils. Cyg01.jpg
  6. Click next. When the download and install is completed (this can take some time), Cygwin should be good to go.

Toolchain (cross-compiler and libraries)

  1. Run 32bit Cygwin Terminal as administrator Cyg02.jpg
  2. Download kos-2.0.0-src.tar.gz from here http://sourceforge.net/projects/cadcdev/files/kallistios/2.0.0/
  3. Create a folder /dc/ in your /Cygwin/usr/local/ folder
  4. Create a folder /kos/ in your /Cygwin/usr/local/dc/ folder
  5. Extract the contents of /kos-2.0.0-src/ into your /Cygwin/usr/local/dc/kos/ folder
  6. Download this patch and extract into your dc-chain folder
  7. In cygwin, navigate to your dc-chain folder. Since I installed the chain on my d:, my command is
$ cd d:/cygwin/usr/local/dc/kos/utils/dc-chain
  1. Download the libs needed by dc-chain by running the script with this command:
$ ./download.sh
  1. Extract the libs needed by dc-chain by running the script with this command:
$ ./unpack.sh
  1. Patch the default kos install by running the script with this command:
$ ./patch.sh
  1. Build the dc-chain with this command
$ make

KOS

  1. Download this environ.sh and extract into your /Cygwin/usr/local/dc/kos/ folder
  2. Navigate to your kos directory in Cygwin. Since I installed the chain on my d:, my command is
$ cd d:/cygwin/usr/local/dc/kos
  1. Configure your environment by running this command:
$ . ./environ.sh
  1. Build KOS by running the command
$ make


That's All! When kos is built, you are ready to start compiling your own code for the Dreamcast using Kos 2.0 and GCC 4.7.3.