Building:Win32:Code::Blocks

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 Code::Blocks IDE and the mingw compiler.


[edit] Requirements

[edit] Getting started

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

[edit] Building FIFE

  • Run Image:File.png <FIFE>\build\win32\update_project_files.bat to update the file list and generate the necessary SWIG wrappers for python. This step needs to be run every time you update your local files to ensure that SWIG will always create working wrappers that are based on the latest code!
  • Open and build Image:File.png <FIFE>\build\win32\build_environments\code_blocks\fife_engine.cbp

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


[edit] Testing FIFE

The required libraries are bundled with the FIFE SDKs. Simply run Image:File.png <FIFE>\build\win32\update_dlls_mingw.bat to automatically copy the DLLs to the right folders.

[edit] Rio de hola

  • Move into the Image:Folder.png <FIFE>\clients\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