• Rise from your gwave!

Setup GNUC from Kpit.

Discussion in 'Saturn Dev' started by TakaIsSilly, Jun 25, 2003.

  1. TakaIsSilly

    TakaIsSilly New Member

    How to setup the new GNUC from Kpit:

    Make sure you download the COFF package.

    Extract all files and setup it at the desired location.

    Install the libraries (SGL or SBL) in separated paths.

    This is my GNU_SH_coff.bat - edit it to your path settings.

    @Echo Off
    Set PATH=F:\DEVELO~1\SH\Sh-coff\bin;F:\DEVELO~1\SH\OtherU~1;%PATH%
    SET C_INCLUDE_PATH=F:\DEVELO~1\SH\Sh-coff\include;F:\DEVELO~1\SH\Sh-coff\SGL\inc
    SET CPLUS_INCLUDE_PATH=F:\DEVELO~1\SH\Sh-coff\include\cxx;F:\DEVELO~1\SH\Sh-coff\include;F:\DEVELO~1\SH\Sh-coff\SGL\inc
    Set MAKE_MODE=unix
    Cmd "cd\" /k
    I have the distribution at F:\Develo~1\SH\Sh-coff

    SGL(not SBL6) is installed in F:\Develo~1\SH\Sh-coff\SGL

    Run GNU_SH_coff.bat to enter the compiler env.

    makefiles need some changes:

    The base SGL Makefile starts like this:

    #  SEGA SATURN Graphic library make file for GNU
    # macro
    CC = gcc
    LD = ld
    RM = deltree
    CONV = objcopy
    change the names so that:

    # macro
    CC = sh-coff-gcc
    LD = sh-coff-ld
    RM = rm
    CONV = sh-coff-objcopy
    (since WinXP has no deltree binary, Kpit's has rm installed on the Other Utilities section, and we use that.)

    Stuff should work now. Any doubts go here...
  2. vbt

    vbt Staff Member

    Sorry TakaIsSilly, I think I saw that somewhere but I was looking for something really hard to configure(specific files to copy for instance), anyway thanks a lot [​IMG] [​IMG]

    I won't have to loose time on that [​IMG]
  3. TakaIsSilly

    TakaIsSilly New Member

    As far as i know, this is the whole nine yards, the whole sheebang. The leacked compiler release wan't that mutch diferent...
  4. vbt

    vbt Staff Member

    oups [​IMG] [​IMG] [​IMG] silly question

Share This Page