Spice+ logo

Main
  Homepage
  Status
  Download

Compiling
  DOS version
• Windows version

  Link


Compiling under Windows
MinGW Environment


1. Get MinGW


To compile Spice+ under Windows you need MinGW development environment. Like DJGPP, you need several packages. All the files below are needed, so download them. Note that there may be newer versions of these files, but Spice+ is not verified to compile with any other versions of the following files.

File name File size Description
mingw-runtime-0.5-20010221.tar.gz 191 kB This file contains the MinGW-runtime v.0.5-20010221.
gcc-2.95.2-3.zip 2526 kB This file contains the C compiler v.2.95.2-3.
binutils-2.10.91-20010114.zip 1059 kB This file contains the binary utilities v.2.10.91-20010114.
ld-2.10.91-20010126.zip 212 kB This file contains the linker v.2.10.91-20010126.
make-3.77-mingw32.zip 316 kB This file contains the make v.3.77.
w32api-0.5.1.tar.gz 730 kB This file contains the Windows API v.0.5.1.


2. Extract all files


Next, you have uncompress the MinGW files in the same directory, c:\mingw.


3. Setup MinGW


Next we will have to set up the environment variables.
Open a command prompt. You can find it either from under Start Menu - Programs, or you can simply select Run and type command.com into the dialog box. Now there are two possibilities:

- modify the file autoexec.bat
You have to edit autoexec.bat and find the line which says something like
path c:\win98;c:\win98\command
Add
;c:\mingw\bin
to the end of that line, so that it will look like
path c:\win98;c:\win98\command;c:\mingw\bin
Then save the file.
You have to reboot your computer to make the changes effective and permanent.

- create a file batch
For example type
edit go.bat
then write the line:
path %path%;c:\mingw\bin
save the file and exit. Run the batch file (you need not to reboot your system).
In this case you have to lunch the batch file every time a new command prompt is opened, because the changes aren't permanent.


4. Library


In order to compile Spice+ you also need the following library:
- Readline library
IMPORTANT! - Note that there may be newer versions of these files, but you need this version to use my patch. This patch is based on the file readline-4.2-20010727.zip, which is a MinGW port of GNU Readline Library. My version of the patch add Enhanced Keys (INS, DEL, HOME, END, PAGE UP, PAGE DOWN, direction keys anf function key) support.

File name File size Description
readline-4.2.zip 215 kB This file contains the GNU Readline library v.4.2.
readline-4.2-patch.zip 215 kB This file contains the Patch to compile Readline library v.4.2 under MinGW + compiled library, for those who are tired to compile :).


5. Install Readline


Readline library is available in binary form, so you just have to unzip all files in c:\mingw preserving the subdirectory structure.

If you want to compile it you have to extract all files from readline-4.2.zip to c:\readline for example, then extract the patch from readline-4.2-patch.zip to the same directory, and type:
patch -p1 < patch.dif
then you can compile with
make
and install with
make install


6. Compile Spice+


To compice Spice+ just go to its directory with
cd \spiceplus
and type
make