Skip to content

Building Legacy

fallahn edited this page Sep 29, 2017 · 2 revisions

Dependencies

SFML 2.4.0 - xygine uses the updated SFML API, other releases will not work. Building the latest source is recommended.

Box2D 2.3.2 - Again, building the latest revision is recommended. API breaking changes have been released which make older versions, particularly those found in linux repositories, incompatible.

Optional - Cmake3 or higher. Cmake is optimal for non-windows platforms.

Compiler with at least partial C++14 support, notibly for std::make_unique. Visual Studio 2013 and higher has been tested to work, as has gcc4.9+

Building

Windows

The easiest route on Windows is to use the included Visual Studio 2015 solution, which also includes all the necessary libraries. Alternatively you can use cmake to generate make files for gcc. To switch between static and shared builds in Visual Studio use the 'Configuration Manager' to chose the build type.

Linux

The included cmake file is designed primarily for use on linux systems. Once you have the dependencies installed run the included cmake file in the xygine directory

cd xygine && mkdir build && cd build
cmake ..
make
sudo make install

which will build xygine as a static library in Release mode by default. xygine can also be built in debug mode to generate debug symbols, and as both a static or shared library. When building xygine as a shared library Box2D and SFML must also be installed as shared libraries.

OS X

The CMake file is occasionally tested on OS X and has been proven to work but as testing is intermittent due to lack of access to hardware breaking changes may unfortunately sometimes occur. When building xygine as a shared library Box2D and SFML must also be installed as shared libraries.

Clone this wiki locally