Building:Win32:SCons

From FIFE development wiki

Jump to: navigation, search
Image:Xp-flag-32x32.png

Platform-dependent information: Win32.

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

Contents

[edit] Introduction

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


[edit] Requirements

[edit] Getting started

svn co http://fife.svn.cvsdude.com/engine/trunk
  • Unpack / install the SDK to Image:Folder.png <FIFE>\build\win32\
  • Download and install ActivePython 2.6

[edit] Building FIFE

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

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

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

[edit] Caution

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

[edit] Testing FIFE

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

[edit] Rio de hola

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

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

Personal tools