Skip to content

Building

Matt Styles edited this page Feb 7, 2016 · 13 revisions

####Dependencies SFML 2.x - Version 2.2 or 2.3 Recommended. The very latest version has some breaking changes in the shader API. Eventually xygine will catch up with this.

Box2D 2.3.2 - Box2D 2.3.0 and possibly 2.3.1 include a bug which breaks generation of small polygon shapes. If you plan to use xygine's physics (which is optional) then the correct version is a must. xygine will build with older versions but you may experience crashes at run time. Some linux repositories include older versions of Box2D so it may be required to build it from the latest sources.

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

######OS X . . .

Clone this wiki locally