Skip to content

Building

Michael Sartain edited this page Sep 5, 2017 · 6 revisions

Requirements

  • C++11
  • SDL2 w/ OpenGL
  • Linux requires Freetype
  • Linux requires GTK3 (if you want open trace dialog)

Building on Linux

  • Using make
    • Build release version using Makefile
      make
    • Build debug with address sanitizer and open dialog disabled
      USE_GTK3=0 ASAN=0 CFG=debug make
    • Verbose release build with clang
      VERBOSE=1 CC=clang CXX=clang++ make
    • Binaries placed in _release / _debug directories
  • Using cmake
    • Build release
      mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make
    • Build debug
      mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make

Building on Windows

  • Building with SDL 2.0.5 and no freetype using jom and cmake
set SDL2DIR=c:\dev\SDL2-2.0.5
mkdir build
cd build
cmake -G "NMake Makefiles JOM" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_FREETYPE=False ..
jom
Clone this wiki locally