Skip to content

Ubuntu Step by Step Compilation

Simon Judd edited this page Dec 14, 2015 · 13 revisions

This section will detail how to compile SLADE in Ubuntu (and probably anything else using apt-get, like Debian). This method has been tested on a fresh install of Ubuntu 15.04 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 apt-get install build-essential libgtk2.0-dev libglew1.6-dev libfreeimage-dev libftgl-dev libfluidsynth-dev libsfml-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libgconf2-dev freeglut3-dev cmake libmodplug-dev git libwebkit-dev libwxgtk3.0-dev libwxgtk-media3.0-dev

If any of the above libraries can't be found, try running apt-cache 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 https://github.com/sirjuddington/SLADE.git slade

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

Optional Step - Switch to the development branch

If you are so inclined, you can choose to switch to and compile the latest development branch, which will include more cutting-edge features and improvements at the potential cost of stability. To do this, type the following line:

git checkout 3.1.1

This will switch over to the development branch and sources.

Step 3: Compile SLADE

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

cd slade/dist
cmake .. -DUSE_WEBKIT_STARTPAGE=ON
make

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).

Latest Release: 3.2.4

Clone this wiki locally