Skip to content
marcelo edited this page Apr 24, 2017 · 10 revisions

Reis

  1. What is Reis?
  2. Install Guide

What is Reis?

Reis is a cross-platform 2D game engine writen in C++11 and SDL2.

Reis is in development since 2015. Currently refactoring since February, 2016.

Install Guide

Download the latest version here

Or clone repository and add to your project.

Visual Studio 2015

Follow these steps:

  1. Extract Reis to your local directories. Place it anywhere you'd like. We will be using C:\vs_libs.

    You should preferably put it in a folder that you dedicate to holding all your development libraries for Visual Studio.

  2. Open Visual Studio and create a new Empty Project.

    Create Project

  3. Go to Project Properties.

    Project Properties

  4. Tell Visual Studio to search for header files in the include folder.
    Path: Configuration Properties > VC++ Directories > Include Directories

    Include Headers

  5. Click the folder icon, and then click the button that pops up.

    Add folder

  6. Now find the folders you extracted and select the include folder and click OK.

    Add folder

    Now Visual Studio knows where to find the header files.

Possible Error: Compiler can't find Reis.h.

  1. Tell Visual Studio to search for library files in the library folder we just extracted.
    Path: Configuration Properties > VC++ Directories > Library Directories

    Include Lib

  2. Click the folder icon, and then click the button that pops up.

    Add folder

  3. Now go find the lib folder you extracted.

    Add folder

    This is important: most compilers still compile 32bit binaries by default to maximize compatibility. We will be using the 32bit binaries for this tutorial set. It doesn't matter if you have a 64bit operating system, since we are compiling 32bit binaries we will be using the 32bit library.

Possible Error: error LNK2019: unresolved external symbol.

  1. In order to compile code, we have to tell Visual Studio to link against the libraries.
    Path: Configuration Properties > Linker > Input > Additional Dependencies

    Linker

  2. Now paste Reis.lib; into the Additional dependencies field and click OK.

    Linker

    Now Visual Studio knows to link against the extension library.

Possible Error: Undefined reference error after compiling.

  1. Under Linker in the System menu, set the subsystem.
    Path: Configuration Properties > Linker > System > SubSystem

    SubSystem

    Set to Windows if you don't want console output. Set to Console if you do want console output. For the tutorial, errors will be printed on the console, so I recommend leaving it as a console application as you are still learning and prototyping.

Possible Error: entry point not being defined or unresolved external symbol _main.

  1. Now operating system needs to be able to find the .dll files for the extension library while running.

    Copy all .dll files from the /dlls folder and put them on your project working directory (where the vcxproj file is at).

Possible Error: Couldn't find [SDL2].dll files.

  1. Have fun.

Learn more about How To Use.

Clone this wiki locally