How to Install Sigil on Ubuntu



Here's how to install Sigil, the EPUB editor on Ubuntu 14.04 LTS (Trusty Tahr).

Install dependencies

$ sudo apt-get install qtbase5-dev libqt5svg5-dev libqt5webkit5-dev libqt5xmlpatterns5-dev qttools5-dev qttools5-dev-tools

Install CMake

$ sudo apt-get install cmake

Get the source

You have two options: either install the stable version or install the latest development snapshot. Both work fine.

Get the stable version

Download the source zip

$ wget

Unzip the source

$ unzip -d sigil

Fix the compilation issues

The project doesn't compile with the latest GCC:

Download the patch and apply it:

$ cd sigil
$ patch -p1 < sigil_compile_error_fix.patch

If you chose to use the stable version, continue with compiling.

Get the latest version from Git

Install Git

$ sudo apt-get install git

Get the source from Git

$ git clone sigil

As a note, my pull request was accepted, so unlike for the stable version, there's no need to apply any patch.


Replace ~/apps/sigil below with the directory where you want to install Sigil.

While in the sigil directory:

$ mkdir build
$ cd build
$ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/apps/sigil -DCMAKE_BUILD_TYPE=Release -DFORCE_BUNDLED_COPIES=1 ..
$ make


$ make install


$ ~/apps/sigil/bin/sigil