NewsAboutDownloadsChange LogWikiGitHubContact

Fedora Step by Step Compilation

This section will detail how to compile SLADE in Fedora. This method has been tested on a fresh install of Fedora 28 and should work fine.

Step 1: Download and install the required libraries and tools

First things first, we'll need to install all the libraries and tools required by SLADE and wxWidgets. Open a terminal window and type the following line:

sudo dnf install gcc-c++ cmake freeglut-devel git bzip2-devel libcurl-devel fluidsynth-devel freeimage-devel ftgl-devel glew-devel gstreamer1-devel gstreamer1-plugins-base-devel libmodplug SFML-devel lua-devel fmt-devel

In addition to those packages, to compile with GTK2:

sudo dnf install gtk2-devel compat-wxGTK3-gtk2-devel compat-wxGTK3-gtk2-gl compat-wxGTK3-gtk2-media

Alternatively, to compile with GTK3:

sudo dnf install gtk3-devel wxGTK3-devel wxGTK3-gl wxGTK3-media wxGTK3-webview

If any of the above libraries can't be found, try running dnf search <libname>, as the library name may have changed or updated since this was written.

Step 2: Download SLADE sources from the GitHub repository

The next step is to download the SLADE sources from GitHub. First up, open Terminal and cd to some directory (or you can just use home if you want). Then enter the following line:

git clone slade

This should download the SLADE sources and put them in the slade directory.

Optional Step - Switch to the stable branch

By default you will be on the master branch. As it is the 'in development' branch, it will include more cutting-edge features and improvements at the potential cost of stability.

If you would rather stick with the latest stable release of SLADE, enter the following command:

git checkout stable

This will switch over to the stable branch and sources.

Step 3: Compile SLADE

Due to how different versions of wxWidgets are packaged in Fedora, in order to compile with GTK2, you need to pass the correct wx-config binary to CMake:

export WX_CONFIG=/usr/lib64/wx/config/gtk2-unicode-3.0

Finally, enter the following commands to compile SLADE (using CMake):

cd slade/dist
cmake .. -DNO_WEBVIEW=ON

To speed up compilation if you have a multi-core processor, add -j X after make where X is the number of cores your CPU has

And that should be it, you should now be able to run SLADE by entering ./slade in the terminal window (from the SLADE directory).