Building:Win32:Code::Blocks

From FIFE development wiki
Jump to: navigation, search

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

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

This article is outdated and needs to be reviewed! Outdated.png

The content of this article is outdated and should be treated as such. We cannot guarantee the accuracy of the information presented here.

Introduction

This guide describes how to build FIFE on Win32-systems with the Code::Blocks IDE and the mingw compiler.


Requirements

Getting started

  • Get the latest sources from the Git repository
    git clone git@github.com:fifengine/fifengine.git
  • Unpack / install the Win32 DevKit to Folder.png <FIFE>\build\win32\
  • Download and install ActivePython 2.7

Building FIFE

  • Run 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 File.png <FIFE>\build\win32\build_environments\code_blocks\fife_engine.cbp

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


Testing FIFE

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

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