-
Notifications
You must be signed in to change notification settings - Fork 4
Build
Chris Hutchinson edited this page Mar 30, 2015
·
1 revision
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.
- Windows (32-bit)
- Windows (64-bit)
Download the following dependencies and install / extract them to any location.
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
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.
- Install MSYS2
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
git clone https://github.com/mariobadr/RPGTK4.git
cd build
cmake-gui .
- Change the build directory to a location outside of the project root
- Specify the location in Where to build the binaries
- Check the Grouped checkbox
- Check the Advanced checkbox
- Click Configure
- Choose MSYS Makefiles for the project generator
- Click Finish
- 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.
- Click Generate
cd BUILD_DIRECTORY_SPECIFIED_IN_CMAKE
make