Quote:
Originally Posted by Rob Ireton
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!