Building SDCC on NT4: A proposal

From SDCC wiki
Jump to: navigation, search

From sdcc-user-admin@lists.sourceforge.net Tue Apr 25 04:59:03 2000
Return-Path: <sdcc-user-admin@lists.sourceforge.net>
Date: Tue, 25 Apr 2000 11:49:17 0200 (MEST)
To: sdcc-user@lists.sourceforge.net
From: Felix Daners <felix_daners@gmx.ch>
Subject: [Sdcc-user] Building SDCC on NT4: A proposal
Sender: sdcc-user-admin@lists.sourceforge.net

Could anybody test this procedure? It seems to be a little bit shorter and
does not need to copy around the bash shell tools to a /bin directory

1) Install the CYGWIN 20.1 FULL package you get
from http://sourceware.cygnus.com/cygwin/
2) Mount some directories: Start the Bash shell
When the starting Bash shell complains about a missing /tmp directory,
you must mount one.

Bash$ mount -f D:\\Temp /tmp

(change the cygwin path according to your installation)

Bash$ mount -f D:\\PROGRAMME\\cygnus\\CYGWIN-b20\\H-I586-cygwin32\\bin
/bin

Bash$ mount -f D:\\PROGRAMME\\cygnus\\CYGWIN-b20\\share
/cygnus/CYGWIN-b20/share

3) Unzip the sdcc source kit to any directory and make this the
working directory in the bash shell you have already open.

Bash$ cd D:/sdcc

4) When I got the source kit, it was not clean. There were some objects
left in the avr package which were compiled on a linux machine I guess.
Take a Explorer and delete *.o files in the directory sdcc/src/avr
directory.

5) Run the configure script

Bash$ sh -c "./configure --prefix=/sdcc_2_2_0a"

This prepares the source to install the compiler in the D:\sdcc_2_2_0a
directory

It takes quite a while.

6) Run make

Bash$ make

It takes a while to build the sdcc compiler and tools. Because the
curses package is not included in the CYGWIN B20.1 FULL installation,
the simulators will not be built. You must compile and install the
curses package first if you want to build the simulators.
I did not do this because I do not consider to use the simulator.

7) Run make install

Bash$ make install

This will copy most of the files to the destination you have defined
in step 5.

8) Copy the binaries .exe from the /sdcc/bin to the destination
/sdcc_2_2_0a/bin directory. You may use a Explorer to do this

_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/sdcc-user

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox