.oO  |  List directory  |  History  |  Similar  |  Print version
Projects 
   ScummC 
   php edna 
   nixshare 
   concede 
   Orewar 
   AEval 
Portable Coding 
   Shell scripts 
   Standard C 
Random stuff 
   Slackware and UTF-8 
   Bit tricks 
Wiki 
   Links 
   Playground 
   Impressum 

Projects > ScummC > Getting started with ScummC on Windows

 
rw-rw-r--   g33k   scummc
Table of contents:

Getting started with ScummC on Windows

If you are a Windows user, you will have to install MinGW or Cygwin to use ScummC. This page explains how to get started with Cygwin.

Install Cygwin

  • On the "Select Packages" page of the install wizard, select the following additional packages from the "Devel" category: bison, gcc-g++ and make. Any additional required packages will be installed automatically.
  • For the visual editors, you would also need the GTK+ packages, but currently the ScummC configure script doesn't seem to recognize them on Windows. You can use the binary Win32 builds instead.

Download ScummC

  • Download the latest ScummC release (currently 0.2.0) and save it in your Cygwin home directory.
  • Start the Cygwin Bash Shell.
  • Unzip the archive by typing
tar -xzvf scummc-0.2.0.tar.gz

Compile the ScummC tools

  • Go into the ScummC directory by typing
cd scummc-0.2.0
  • Run
./configure
  • Run
make

Compile a ScummC example game

  • Go into the game directory, e.g.
cd examples/openquest
  • If you try to run "make" now, you will most likely get an error of the type
*** No rule to make target `xyz', needed by `abc'.  Stop.

This is caused by the .exe extensions of the binaries which are missing in the makefile references.

  • For a quickfix, you can change the references in the makefile. Open the game makefile with an editor, e.g. WordPad.
  • Change the following lines
SCC=$(BIN_PATH)/scc
SLD=$(BIN_PATH)/sld
COST=$(BIN_PATH)/cost
CHAR=$(BIN_PATH)/char

by adding the .exe extension:

SCC=$(BIN_PATH)/scc.exe
SLD=$(BIN_PATH)/sld.exe
COST=$(BIN_PATH)/cost.exe
CHAR=$(BIN_PATH)/char.exe
  • You can now run "make" and compile the game. However, in order to play it, ScummVM will have to be patched and recompiled.
  • An easier solution is to change the binary key to have ScummVM recognize the game as DOTT. Open the makefile again and change the following line
scummc6.000: $(OBJS)
    $(SLD) -v $^ 

by adding the additional parameters:

scummc6.000: $(OBJS)
    $(SLD) -v $^ -o tentacle -key 0x69
  • Delete the previous binaries by running
make clean
  • Run "make" again. You should see that the game binaries are now all named tentacle.xxx.

Play a free SCUMM game in ScummVM

  • If you don't have ScummVM already, download and install it.
  • Start ScummVM, select "Add Game", and point it to the game binaries.
  • Run the game and enjoy.

Report errors

  • If, anywhere during this setup, you encountered any errors, please subscribe to the ScummC-General mailing list and report them.


Reference http://alban.dotsec.net/Projects/GettingStartedWithScummCOnWindows


Prev. Scumm 6 strings