Difference between revisions of "Compiling with Make (OpenXcom)"

From UFOpaedia
Jump to navigation Jump to search
m
(proofread)
Line 5: Line 5:
 
* [http://www.libsdl.org/projects/SDL_image/ SDL_image] (libsdl-image1.2-dev)
 
* [http://www.libsdl.org/projects/SDL_image/ SDL_image] (libsdl-image1.2-dev)
 
* [http://www.ferzkopp.net/joomla/content/view/19/14/ SDL_gfx] (libsdl-gfx1.2-dev), version 2.0.22 or later
 
* [http://www.ferzkopp.net/joomla/content/view/19/14/ SDL_gfx] (libsdl-gfx1.2-dev), version 2.0.22 or later
* [http://code.google.com/p/yaml-cpp/ yaml-cpp] (libyaml-cpp-dev), version '''0.3.0 or older'''
+
* [http://code.google.com/p/yaml-cpp/ yaml-cpp] (libyaml-cpp-dev), version '''0.5.1 or later'''
  
Check the library websites if you can't find them on your distribution's package manager.
+
Check the library websites if you can't find them with your distribution's package manager.
 +
 
 +
'''Don't forget to copy the X-Com resources to your ''bin'' folder as shown in [[Installing (OpenXcom)|Installing]].'''
  
 
== Commands ==
 
== Commands ==
Line 14: Line 16:
 
# Type '''git clone <repository url>''' (the official one or your own fork) to get the latest code.
 
# 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'''.
 
# 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.
+
# Edit the '''Makefile''' in case there are any settings you need to change for your particular platform.
 
# Type '''make''' to compile all the code.
 
# Type '''make''' to compile all the code.
 
# Go to the '''bin/''' folder and run '''./openxcom'''.
 
# Go to the '''bin/''' folder and run '''./openxcom'''.

Revision as of 11:17, 31 August 2013

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.5.1 or later

Check the library websites if you can't find them with your distribution's package manager.

Don't forget to copy the X-Com resources to your bin folder as shown in Installing.

Commands

  1. Open up a terminal.
  2. Type git clone <repository url> (the official one or your own fork) to get the latest code.
  3. Go into the src/ folder inside the repository you just pulled and rename Makefile.simple to just Makefile.
  4. Edit the Makefile in case there are any settings you need to change for your particular platform.
  5. Type make to compile all the code.
  6. Go to the bin/ folder and run ./openxcom.
  7. In the future, you can stay up to date by using git pull.