Windows Notes - nosnickid/punani-strike GitHub Wiki
Windows notes
Building with mingw
Requirements:
- libsdl
- libpng
- depends on libz
- glew
- SDL_mixer
- the Makefile generated by autoconf didn't work directly for me. See SDL mixer patch for a patch - the SDL libs have to be linked last.
SD built all these from scratch in mingw. This was usually just a case of the usual
configure --prefix=/mingw && make install
cycle. I also used the latest versions of all the above - they're generally pretty old libs by now so whatever latest will be fine.
Art SDK
Art SDKs should be automatically published to http://ec2.orangestems.co.uk/ds3d/ whenever GT pushes a commit.
They're named after the commit hash. If anything goes wrong with the build, SD will have to look and fix it up manually. I don't have notifications or anything.
Requirements:
- Python 2.7. Get it from http://www.python.org/download/. At the time of writing 2.7.3 is the latest. Go for 32- or 64-bit version depending on your PC.
- PIL. (python imaging library, for the font, so not strictly needed)
- I bundle a font image file with the SDK so this is only required if you want to run mkfont.py.
- Get the binary installer from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
- Make sure you get the correct 64/32bit version.
- Windows powershell. Comes with Win7 at least, maybe Vista too?
- In powershell: Set-ExecutionPolicy RemoteSigned
- probably as administrator
- SD should look at signing these scripts really.
- Run mkdata.ps1
Detailed instructions
Here are some slightly more step by step instructions for building in mingw in Windows.
First of all, install msys. There's a binary installer for this. Make sure you install make and gcc utils - I can't remember how optional these are in the installer.
Load up the mingw shell from your start menu - it's a new item installed with msys.
run: mingw-get install libz-dev
Download the libpng source .tar.gz. Extract it and run:
./configure --prefix=/mingw
make install
Download the glew source .tar.gz. Extract it and run:
./configure SYSTEM=mingw32
make install
Clone the punnani-strike repo, run ./configure, run make. Ensure dessert-stroke.exe is built.
First time, you need to do some extra init:
mkdir -p data/fonts
cp *.png data
Copy a carbon.png from the art SDK or a binary distribution of PS to your new data/fonts directory.
./mkdata.sh
./dessert-stroke
That should sort you out.