Difference between revisions of "Building:Win32:SCons"

From FIFE development wiki
Jump to: navigation, search
(Building FIFE)
(Getting started)
 
Line 12: Line 12:
  
 
== Getting started ==
 
== Getting started ==
* Checkout the latest sources from the [[Subversion repository]]
+
* Checkout the latest sources from the [https://github.com/fifengine/fifengine Git repository]
<pre>svn co http://fife.svn.cvsdude.com/engine/trunk</pre>
+
<pre>git clone git@github.com:fifengine/fifengine.git</pre>
 
* Unpack / install the Development Kit to {{folder|<FIFE>\build\win32\}}
 
* Unpack / install the Development Kit to {{folder|<FIFE>\build\win32\}}
 
* Download and install [http://downloads.activestate.com/ActivePython/releases/2.7.1.3/ActivePython-2.7.1.3-win32-x86.msi ActivePython 2.7]
 
* Download and install [http://downloads.activestate.com/ActivePython/releases/2.7.1.3/ActivePython-2.7.1.3-win32-x86.msi ActivePython 2.7]

Latest revision as of 08:17, 13 March 2013

Xp-flag-32x32.png Platform-dependent information: Win32.

The following passage contains information that is specific to Windows operating systems.

Introduction

This guide describes how to build FIFE on Win32-systems with the SCons build tool and the mingw compiler.


Requirements

Getting started

git clone git@github.com:fifengine/fifengine.git
  • Unpack / install the Development Kit to Folder.png <FIFE>\build\win32\
  • Download and install ActivePython 2.7

Building FIFE

You can find different batch files for building FIFE in Folder.png <FIFE>\build\win32\build_environments\scons\

  • File.png build_engine.bat builds the engine from the trunk sources
  • File.png cleanup_engine.bat deletes the files that were created by the engine build process
  • File.png logbuild_engine.bat creates a log file (File.png engine_build_log.txt) of the trunk core build process
  • File.png install_engine.bat installs FIFE to Folder.png <python>\Lib\site-packages\fife

You should find the built dynamic library entitled File.png _fife.pyd in Folder.png <FIFE>\engine\python\fife

Caution

Building FIFE will only work if you click on the batch files or execute them from the Folder.png <FIFE>\build\win32\build_environments\scons\ directory. Launching the bat files with the commandline interface outside of this folder will NOT work!

Testing FIFE

NOTE: To run FIFE clients you will have to install FIFE by running the File.png install_engine.bat batch script from the Folder.png <FIFE>\build\win32\build_environments\scons directory.

Rio de hola

  • Move into the Folder.png <FIFE>\demos\rio_de_hola folder.
  • Start File.png run.py.

Note: OpenAL needs to be installed for sound (can be found in FIFE SDK)