How to Install Sigil on Ubuntu

2014-06-28

Tags:
  • bash
Categories:
  • howto
  • outdated

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 https://sigil.googlecode.com/files/Sigil-0.7.4-Code.zip

Unzip the source

$ unzip Sigil-0.7.4-Code.zip -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 https://github.com/user-none/Sigil.git sigil

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

Compile

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

Install

$ make install

Run

$ ~/apps/sigil/bin/sigil