View Single Post
Old 10-29-2013, 01:36 PM   #24
Rob Ireton
organism
Rob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watchRob Ireton is clearly one to watch
 
Rob Ireton's Avatar
 
Posts: 5
Karma: 10978
Join Date: Mar 2013
Location: Cincinnati
Device: Kobo Aura HD
installing in /usr/local on Ubuntu 13.10 64-bit

Here's how I installed to /usr/local/ on Ubuntu 13.10 64-bit:

Code:
~$ sudo -i
~# apt-get install build-essential cmake libdrm-dev libgl1-mesa-dev
~# mkdir -p /tmp/sigil
~# cd /tmp/sigil
/tmp/sigil# wget https://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-linux-opensource-5.1.1-x86_64-offline.run
/tmp/sigil# chmod +x qt-linux-opensource-5.1.1-x86_64-offline.run
/tmp/sigil# ./qt-linux-opensource-5.1.1-x86_64-offline.run
/tmp/sigil# mkdir -p /usr/local/src/sigil-0.7.4
/tmp/sigil# wget https://sigil.googlecode.com/files/Sigil-0.7.4-Code.zip
/tmp/sigil# unzip -d /usr/local/src/sigil-0.7.4 Sigil-0.7.4-Code.zip
/tmp/sigil# cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/opt/Qt5.1.1/5.1.1/gcc_64/lib/cmake -DCMAKE_BUILD_TYPE=Release -DFORCE_BUNDLED_COPIES=1 -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1 /usr/local/src/sigil-0.7.4
/tmp/sigil# make install
/tmp/sigil# if [ ! -e /usr/local/share/applications/defaults.list ]; then echo "[Default Applications]" >/usr/local/share/applications/defaults.list; fi
/tmp/sigil# echo "application/epub+zip=sigil.desktop" >>/usr/local/share/applications/defaults.list
/tmp/sigil# cd ~
~# rm -rf /tmp/sigil
~# exit
The -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1 switch to cmake is to keep the path to the Qt libraries from being stripped out of the installed binary.

The bit with defaults.list is to make Sigil the default application for epub files.

Last edited by Rob Ireton; 10-29-2013 at 01:42 PM.
Rob Ireton is offline   Reply With Quote