Here's how I installed Sigil 0.7.1 on Ubuntu 12.10 (64-bit) These will be slightly different for 32-bit systems.
install build tools:
$ sudo apt-get install build-essential cmake
download & install Qt 5.0.1 for Linux from
http://qt-project.org/downloads
$ wget http://releases.qt-project.org/qt5/5.0.1/qt-linux-opensource-5.0.1-x86_64-offline.run
$ chmod +x qt-linux-opensource-5.0.1-x86_64-offline.run
$ sudo ./qt-linux-opensource-5.0.1-x86_64-offline.run
create source directories & get the Sigil source
$ mkdir -p ~/src/Sigil-0.7.1 ~/src/sigil-build
$ cd ~/src/Sigil-0.7.1
$ wget https://sigil.googlecode.com/files/Sigil-0.7.1-Code.zip
$ unzip Sigil-0.7.1-Code.zip
figure out where the Qt cmake files are:
$ find /opt -name Qt5CoreConfig.cmake
tell cmake where to find the Qt installation (based on previous)
$ export CMAKE_PREFIX_PATH=/opt/Qt5.0.1/5.0.1/gcc_64/lib/cmake
follow general instructions in ~/src/Sigil-0.7.1/INSTALL.txt
$ cd ../sigil-build
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../Sigil-0.7.1
$ make
(go make some tea, it will take a while to build all the parts)
$ sudo make install
if you try to run sigil now, it will complain that it can't find some Qt shared libraries. I think the best way to solve this is to adjust the sigil.desktop file in /usr/local/share/applications
figure out where the shared libraries are:
$ find /opt -name libQt5Widgets.so.5
edit sigil.desktop
$ gksudo gedit /usr/local/share/applications/sigil.desktop &
change the line
Exec=sigil
to
Exec=env LD_LIBRARY_PATH=/opt/Qt5.0.1/5.0.1/gcc_64/lib /usr/local/bin/sigil %F
(or wherever the last find command gave you) and save
now you should be able to use Nautilus (the file browser) to navigate to /usr/local/share/applications and start sigil from the icon there. You can then pin this to your Unity launcher!