
{"id":2519,"date":"2013-12-12T12:54:10","date_gmt":"2013-12-12T12:54:10","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=2519"},"modified":"2013-12-12T12:54:10","modified_gmt":"2013-12-12T12:54:10","slug":"install-sigil-ubuntu-from-source","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2013\/12\/install-sigil-ubuntu-from-source\/","title":{"rendered":"How to install latest Sigil 0.7.4 in Ubuntu from Source Code"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/Sigil_LOGO.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2521\" alt=\"Install Sigil from Source in Ubuntu\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/Sigil_LOGO.jpg\" width=\"270\" height=\"249\" \/><\/a>Sigil is a multi-platform EPUB ebook. It supports both WYSIWYG and code-based editing of EPUB files, as well as the import of HTML and plain text files.<\/p>\n<p>Since version 0.7.4, Sigil requires higher version of Qt5 libraries which is not available in Ubuntu&#8217;s universe repository. This tutorial will show you how to install the latest Qt5 and build sigil from source code. Works on Ubuntu 13.10, Ubuntu 14.04, Ubuntu 13.04, Ubuntu 12.04.<\/p>\n<h3>1. Download &#038; Install Qt5<\/h3>\n<p>The qt-project website provides the latest installer for Linux. So it&#8217;s easy to install it by following the steps below:<\/p>\n<p>1. Go to <a href=\"http:\/\/qt-project.org\/downloads\" title=\"Qt official download page\" target=\"_blank\">qt-project.org\/downloads<\/a>, download <b>Qt (so far it&#8217;s 5.2.0) for Linux<\/b>.<\/p>\n<p>To check out OS type 32 bit or 64 bit, go to <i>System Settings -> Details -> Overview<\/i><\/p>\n<p>2. Right-click on the downloaded installer (.run file), select <b>Properties<\/b> and navigate to <b>Permissions<\/b> tab. Check the box between &#8220;Execute&#8221; and &#8220;Allow executing file as problem&#8221;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/make-qt-installer-executable.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/make-qt-installer-executable.jpg\" alt=\"make qt installer executable\" width=\"400\" height=\"370\" class=\"aligncenter size-full wp-image-2522\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/make-qt-installer-executable.jpg 400w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/make-qt-installer-executable-300x277.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>3. Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to start the installer (assume that you save the downloaded file in the default USER Downloads folder):<\/p>\n<pre style=\"border:none;\">cd ~\/Downloads\/ && sudo .\/qt-linux-opensource-*-offline.run<\/pre>\n<p>It brings up the install wizard. Just follow it to install Qt5 into the default \/opt\/ directory.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/qt-setup-wizard.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/qt-setup-wizard.jpg\" alt=\"Qt 5 install wizard\" width=\"450\" height=\"361\" class=\"aligncenter size-full wp-image-2523\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/qt-setup-wizard.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/qt-setup-wizard-300x240.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<h3>2. Build Sigil against Qt5<\/h3>\n<p>To get started, press <u>Ctrl+Alt+T<\/u> on keyboard to open terminal and follow the below steps:<\/p>\n<p>1. Run command below and type in your user password when prompt to get the super user privilege:<\/p>\n<pre style=\"border:none;\">sudo -i<\/pre>\n<p>Now your terminal should starts like this:<\/p>\n<blockquote><p>root@YOUR_HOST_NAME:~#<\/p><\/blockquote>\n<p>2. Navigate to <b>\/opt\/<\/b> directory:<\/p>\n<pre style=\"border:none;\">cd \/opt\/<\/pre>\n<p>3. Create folders for Sigil source and build:<\/p>\n<pre style=\"border:none;\">mkdir -p \/opt\/sigil\/src \/opt\/sigil\/build<\/pre>\n<p>4. Navigate to Sigil source folder and download 0.7.4 source code via wget:<\/p>\n<pre style=\"border:none;\">cd \/opt\/sigil\/src && wget https:\/\/sigil.googlecode.com\/files\/Sigil-0.7.4-Code.zip<\/pre>\n<p>5. Unzip the package:<\/p>\n<pre style=\"border:none;\">unzip Sigil-0.7.4-Code.zip<\/pre>\n<p>6. Build the editor:<\/p>\n<p>For 32 bit system:<\/p>\n<pre style=\"border:none;\">cd \/opt\/sigil\/build && cmake -G \"Unix Makefiles\" -DCMAKE_PREFIX_PATH=\/opt\/Qt<b>5.2.0<\/b>\/<b>5.2.0<\/b>\/gcc\/lib\/cmake -DCMAKE_BUILD_TYPE=Release -DFORCE_BUNDLED_COPIES=1 \/opt\/sigil\/src && sudo make install<\/pre>\n<p>For 64 bit system:<\/p>\n<pre style=\"border:none;\">cd \/opt\/sigil\/build && cmake -G \"Unix Makefiles\" -DCMAKE_PREFIX_PATH=\/opt\/Qt<b>5.2.0<\/b>\/<b>5.2.0<\/b>\/gcc_64\/lib\/cmake -DCMAKE_BUILD_TYPE=Release -DFORCE_BUNDLED_COPIES=1 \/opt\/sigil\/src && sudo make install<\/pre>\n<p>NOTE: you need to change <b>5.2.0<\/b> to the Qt version you installed. This command will take a few minutes building packages.<\/p>\n<p>7. Now create a script to run Sigil:<\/p>\n<pre style=\"border:none;\">echo \"LD_LIBRARY_PATH=\/opt\/Qt<b>5.2.0<\/b>\/5.2.0\/gcc<b>_64<\/b>\/lib \/usr\/local\/bin\/sigil\" > \/opt\/sigil\/sigil.sh<\/pre>\n<p>NOTE: you need to change <b>5.2.0<\/b> to the Qt version you installed. And remove <b>_64<\/b> for 32 bit system.<\/p>\n<p>8. Finally, you can start Sigil via this command:<\/p>\n<pre style=\"border:none;\">\/opt\/sigil\/sigil.sh<\/pre>\n<h3>3. Create a Launcher for Sigil<\/h3>\n<p>Run <code>exit<\/code> in previous terminal or open another one, then install required package:<\/p>\n<pre style=\"border:none;\">sudo apt-get install gnome-panel --no-install-recommends<\/pre>\n<p>Start the &#8220;Create Launcher&#8221; window:<\/p>\n<pre style=\"border:none;\">sudo gnome-desktop-item-edit \/usr\/share\/applications\/ --create-new<\/pre>\n<p>Type in name <code>Sigil<\/code> and command <code>\/opt\/sigil\/sigil.sh<\/code> and click OK.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/create-launcher-for-sigil.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/create-launcher-for-sigil.jpg\" alt=\"Create Launcher for Sigil\" width=\"445\" height=\"239\" class=\"aligncenter size-full wp-image-2524\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/create-launcher-for-sigil.jpg 445w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/create-launcher-for-sigil-300x161.jpg 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/a><\/p>\n<p>Now you&#8217;re able to start Sigil from Menu or Unity Dash.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/Sigil-0-7-4-ubuntu1310.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/Sigil-0-7-4-ubuntu1310.jpg\" alt=\"Sigil 0.7.4 in Ubuntu 13.10\" width=\"560\" height=\"346\" class=\"aligncenter size-full wp-image-2525\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/Sigil-0-7-4-ubuntu1310.jpg 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/12\/Sigil-0-7-4-ubuntu1310-300x185.jpg 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Sigil is a multi-platform EPUB ebook. It supports both WYSIWYG and code-based editing of EPUB files, as well as the import of HTML and plain text files. Since version 0.7.4, Sigil requires higher version of Qt5 libraries which is not available in Ubuntu&#8217;s universe repository. This tutorial will show you how to install the latest [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[885,379],"class_list":["post-2519","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-qt5","tag-sigil-epub-editor"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/2519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=2519"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/2519\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=2519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=2519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=2519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}