HomeForumsWhat's newResources 
 
 
Setup GNUC from Kpit.
TakaIsSilly - Jun 25, 2003
 TakaIsSilly Jun 25, 2003
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.

Code:
  
@Echo Off

Set PATH=F:\DEVELO~1\SH\Sh-coff\bin;F:\DEVELO~1\SH\OtherU~1;%PATH%

SET INFOPATH=F:\DEVELO~1\SH\Sh-coff\INFO

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:

Code:
  
#

#  SEGA SATURN Graphic library make file for GNU

# macro

CC = gcc

LD = ld

RM = deltree

CONV = objcopy

change the names so that:

Code:
  
# 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...

 vbt Jun 25, 2003
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

I won't have to loose time on that

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

 vbt Jul 1, 2003
oups silly question