Compiling with Make (OpenXcom)
Revision as of 15:28, 5 May 2013 by Winterheart (talk | contribs)
Required packages
- git (git)
- SDL (libsdl1.2-dev)
- SDL_mixer (libsdl-mixer1.2-dev)
- SDL_image (libsdl-image1.2-dev)
- SDL_gfx (libsdl-gfx1.2-dev), version 2.0.22 or later
- yaml-cpp (libyaml-cpp-dev), version 0.2.6 or later
Check the library websites if you can't find them on your distribution's package manager.
Commands
- Open up a terminal.
- Type git clone <repository url> (the official one or your own fork) to get the latest code.
- Go into the src/ folder inside the repository you just pulled and rename Makefile.simple to just Makefile.
- Edit the Makefile in case there's any settings you need to change for your particular platform.
- Type make to compile all the code.
- Go to the bin/ folder and run ./openxcom.
- In the future, you can stay up to date by using git pull.