03-08-2013, 09:58 AM | #16 |
organism
Posts: 5
Karma: 10978
Join Date: Mar 2013
Location: Cincinnati
Device: Kobo Aura HD
|
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! |
03-08-2013, 10:41 AM | #17 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
I am running Debian Sid with KDE desktop. I installed Qt5.0.1 from the .run packages here. After making sure it was executable (chmod +x Qt*.run) I ran it as root using the graphical script. By running as root, I was able to install it to /opt/Qt5.0.1 and so keep it out of the way of the Qt4 installed on the system. If you don't run it as root, you can install it somewhere in your home directory, which will probably serve as well.
To tell cmake where it is, you use the following on the command line: Code:
cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/opt/Qt5.0.1/5.0.1/gcc/lib/cmake/ -DCMAKE_BUILD_TYPE=Release -DFORCE_BUNDLED_COPIES=1 sigil HTH Albert |
03-11-2013, 02:11 PM | #18 |
Member
Posts: 14
Karma: 10
Join Date: Dec 2011
Device: none
|
Thank you, St_Albert. I have been bashing my head against the wall trying various permutations of things to no avail, until I saw your post.
The INSTALL.txt file, and the Sigil_User_Guide_0_7_0.epub need to be edited to reflect this. Thank you again. |
03-11-2013, 02:21 PM | #19 | |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Quote:
I don't think there is anything in the guide that refers to building for linux except for the link above. The install.txt file may need to be updated though. |
|
04-14-2013, 04:22 PM | #20 | |
Member
Posts: 17
Karma: 10
Join Date: Apr 2013
Location: UK
Device: Nexus 7 FBReader
|
Quote:
Installed Qt5.0.2 to /opt/Qt5.0.2 but installed Sigil to opt/sigil rather than /usr/local $ find /opt -name libQt5Widgets.so.5 gives /opt/Qt5.0.2/5.0.2/gcc/lib/libQt5Widgets.so.5 find: ‘/opt/Qt5.0.2/5.0.2/gcc/examples’: Permission denied /opt/Qt5.0.2/Tools/QtCreator/lib/qtcreator/libQt5Widgets.so.5 So what command do I use to edit the line Exex=sigil in /opt/sigil/share/applications/sigil.desktop I'm on Ubuntu 12.04 32 bit system. Installed cmake-2.8.10.2 (built from source) to /opt/cmake. Last edited by whenster; 04-14-2013 at 04:25 PM. |
|
04-19-2013, 03:44 PM | #21 | |
organism
Posts: 5
Karma: 10978
Join Date: Mar 2013
Location: Cincinnati
Device: Kobo Aura HD
|
Quote:
Exec=env LD_LIBRARY_PATH=/opt/Qt5.0.2/5.0.2/gcc/lib sigil (make sure it's Exec=, not Exex=) but you can use find /opt/sigil -name sigil -type f to get the full path to your executable |
|
04-20-2013, 04:29 AM | #22 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2013
Location: UK
Device: Nexus 7 FBReader
|
Thanks for clarifying the code.
It appears my problem lauching Sigil is some other issue as per this thread: https://www.mobileread.com/forums/sho...d.php?t=210876 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Prs T1 and Ubuntu, Linux - does it work ? | JoelH | Sony Reader | 8 | 05-14-2012 11:47 AM |
Scanner für Linux (Ubuntu) | Jacques_N | Erste Hilfe | 6 | 10-13-2010 05:58 PM |
PRS-300 Any problems with Linux (Ubuntu) ? | Aristée | Sony Reader | 8 | 11-07-2009 10:20 AM |
Linux Ubuntu | rockingrector | Calibre | 4 | 01-23-2009 04:00 AM |
Can not log in to Moblieread from Ubuntu Linux | kacir | Feedback | 7 | 08-18-2007 08:35 AM |