This guide contains steps required to allow compilation of Cataclysm-DDA on Windows under CYGWIN.
Steps from current guide were tested on Windows 10 (64 bit) and CYGWIN (64 bit), but should work for other versions of Windows and also CYGWIN (32 bit) if you download 32 bit version of all files.
- Computer with 64 bit version of modern Windows operating system installed (Windows 10, Windows 8.1 or Windows 7);
- NTFS partition with ~10 Gb free space (~2 Gb for CYGWIN installation, ~3 Gb for repository and ~5 Gb for ccache);
- 64 bit version of CYGWIN (installer can be downloaded from CYGWIN homepage);
-
Go to CYGWIN homepage and download 64 bit installer (e.g. setup-x86_64.exe.
-
Run downloaded file and install CYGWIN (click
Next
button, select instalation source (e.g.Install from Internet
), clickNext
button, specify directory where CYGWIN 64 bit will be installed (e.g.C:\cygwin64
), select whether to install for all users or just you, clickNext
button again, select local package directory (e.g.C:\Distr\Cygwin
), clickNext
button, select Internet connection settings, clickNext
button again, choose a download site from the list of available download sites, clickNext
button again). -
After CYGWIN installation is complete select following packages and press
Next
button to download and install them:
wget
.
- System will tell you it will install following packages (you will install everything else later):
...
- Check boxes to add shortcuts to Start Menu and/or Desktop, then press
Finish
button.
- Install
apt-cyg
for easier package installation with:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg -O /bin/apt-cyg
chmod 755 /bin/apt-cyg
- Install packages required for compilation with:
apt-cyg install git make astyle gcc-g++ libintl-devel libiconv-devel libSDL2_image-devel libSDL2_ttf-devel libSDL2_mixer-devel libncurses-devel xinit
- Clone Cataclysm-DDA repository with following command line:
Note: This will download whole CDDA repository. If you're just testing you should probably add --depth=1
.
git clone https://github.com/CleverRaven/Cataclysm-DDA.git
cd Cataclysm-DDA
- Compile with following command line:
make CCACHE=1 RELEASE=1 CYGWIN=1 DYNAMIC_LINKING=1 SDL=1 TILES=1 SOUND=1 LOCALIZE=1 LANGUAGES=all LINTJSON=0 ASTYLE=0 RUNTESTS=0
Note: This will compile release version with Sound and Tiles support and all localization languages, skipping checks and tests and using ccache for faster build. You can use other switches, but CYGWIN=1
, DYNAMIC_LINKING=1
and probably RELEASE=1
are required to compile without issues.
- Run from within CYGWIN XWin Server (found in Start Menu) with following command line:
./cataclysm-tiles