Skip to content
Chris Hutchinson edited this page Mar 30, 2015 · 1 revision

Build

The RPG Toolkit Development System uses the CMake build system in order to simplify dependency management, encourage and facilitate cross-platform development, and assist with toolchain configuration.

Supported Platforms

  • Windows (32-bit)
  • Windows (64-bit)

Getting Started

Download the following dependencies and install / extract them to any location.

  1. CMake 3.2.x
  2. Lua 5.2.x
  3. SDL 2.0.3
  4. LuaBridge 2.0

Compile the following dependencies using your desired toolchain:

Configure the project using CMake or CMake GUI

  • Specify values for the following variables:
    • LUABRIDGE_INCLUDE_DIR
    • LUA_INCLUDE_DIR
    • LUA_LIBRARY
    • SDL2_LINCLUDE_DIR
    • SDL2_LIBRARY
    • SDL2MAIN_LIBRARY

Build Instructions for Windows (MinGW)

The following is a set of instructions for building the project on Windows using the MinGW toolchain. These instructions assume little to no experience with CMake or MinGW.

  1. Install MSYS2

Install MinGW

Open the MSYS2 shell via the Start Menu or Desktop and execute the following in the shell:

pacman -S mingw-w64-i686-gcc
pacman -S mingw-w64-i686-gdb
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gdb
pacman -S make

Clone the project repository

git clone https://github.com/mariobadr/RPGTK4.git

Open a MinGW-w64 Win32 Shell

cd build
cmake-gui .

Configure the Project (CMake GUI)

  1. Change the build directory to a location outside of the project root
    • Specify the location in Where to build the binaries
  2. Check the Grouped checkbox
  3. Check the Advanced checkbox
  4. Click Configure
  5. Choose MSYS Makefiles for the project generator
  6. Click Finish
  7. Specify a value for all variables described under Getting Started
    • NOTE: You must compile each dependency separately using instructions provided by that library. This project does not supply binaries or distributions for any of it's dependencies.
  8. Click Generate

Build the Project

cd BUILD_DIRECTORY_SPECIFIED_IN_CMAKE
make