View Single Post
Old 10-30-2013, 08:48 PM   #30
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 972
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-T2, Kindle Paperwhite 11th gen
Quote:
Originally Posted by Rob Ireton View Post
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.
Thanks for this!

I had been wondering how to "build from source" in ubuntu. The instructions in Sigil's site are not apropriate for linux newbies, and I was prepared for a long and probably unsuccessful attempt at doing it myself when your post saved my day.

Am I mistaken in thinking that I now have a development environment? I mean, do I have all it takes to look around the code?

Thanks again and karma for you!
Pablo is offline   Reply With Quote