Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.23 KB

COMPILE.md

File metadata and controls

44 lines (32 loc) · 1.23 KB

Linux

Mandatory build-time requirements

  • C++17 compiler (e.g. g++ 8.x)
  • bzip2 library
  • FreeImage
  • ftgl, an OpenGL font managing library
  • GTK 2.x/3.x
  • mpg123 library
  • OpenGL
  • SFML
  • wxWidgets 3.x
  • zlib

Optional build-time requirements

  • Fluidsynth (deactivate with -DNO_FLUIDSYNTH=ON)
  • Lua (deactivate with -DNO_LUA=ON)

Additional configure switches for cmake

  • -DNO_COTIRE=ON: disable the use of precompiled headers
  • -DNO_WEBVIEW=ON: use if your wxWidgets build has no wxWebview or if not desired
  • -DWX_GTK3=OFF: use if your wxWidgets build is using the wxGTK2 backend (there is no autodetection at this point)

Windows

SLADE can be built on Windows using Visual Studio 2019+ (a free 'community' edition is available which works fine) and vcpkg for handling the required external libraries.

Required vcpkg libraries

  • freeimage
  • lua
  • mpg123
  • opengl
  • sfml
  • wxwidgets

The above libraries are required for building SLADE on windows. Note that you'll most likely want to use the x64-windows-static triplet when installing them, eg.

.\vcpkg install <libraries> --triplet x64-windows-static