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

From UFOpaedia
Jump to navigation Jump to search
Line 14: Line 14:
 
== Commands ==
 
== Commands ==
  
# Open up a terminal.
+
  git clone https://github.com/SupSuper/OpenXcom.git
# Type '''git clone <repository url>''' (the official one or your own fork) to get the latest code.
+
  cd OpenXcom/src
# Go into the '''src/''' folder inside the repository you just pulled and rename '''Makefile.simple''' to just '''Makefile'''.
+
  make -f Makefile.simple
# Edit the '''Makefile''' in case there are any settings you need to change for your particular platform.
+
 
# Type '''make''' to compile all the code.
+
You can now run the game from <code>OpenXcom/bin/openxcom</code>
# Go to the '''bin/''' folder and run '''./openxcom'''.
 
# In the future, you can stay up to date by using '''git pull'''.
 
  
 
[[Category:OpenXcom]]
 
[[Category:OpenXcom]]

Revision as of 03:06, 30 May 2014

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 or later
  • boost (libboost-dev), required as dependency for yaml-cpp 0.5.

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

 git clone https://github.com/SupSuper/OpenXcom.git
 cd OpenXcom/src
 make -f Makefile.simple

You can now run the game from OpenXcom/bin/openxcom