How to compile ScummC on WSL2 - RalfGuder/scummc GitHub Wiki

Activate WSL Feature*

See How to install Linux on Windows with WSL

Add Debian as Distro

wsl --install -d Debian

This will install Debian as the default Distro

Follow installation Instruction

Get Packages

Open Powershell and start wsl

wsl

Update apt and install

sudo apt update
sudo apt install git build-essential libgtkmm-2.4-dev bison libreadline-dev libsdl-net1.2-dev xsltproc doxygen

Checkout ScummC

change to the parent folder where scummc is going to live. In this case it will be the home folder of the current user

cd ~/

clone the prepository, cd intho scummc and checkout the tag 0.2.1

git clone https://github.com/AlbanBedel/scummc.git
cd ./scummc
git checkout tags/v0.2.1

Compile ScummC

to configure and make run

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/share/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig

./confiure
make

if everthing is in order you should have a new folder build\ with the name of the build target es subdirectory.

Compile example game openquest

After compiling ScummC is should be possible to compile the example games. The Following commands will compile openquest.

cd examples/openquest
make tentacle

now you should be able to play it with scummvm with the following command

scummvm -p . --auto-detect