![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 215
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Difficulty with building sigil 0.9.0 on linux
My original comment was on the thread about Unofficial Sigil Ubuntu-ish binary packages where I expressed my pleasure in recovering from a disappointing build experience by finding the pre-compiled deb package for 0.8.6.
I had been following the quite detailed instructions on the sigil site in BuildingOnLinux.md to install sigil on a 32 bit laptop running Debian Jessie 8.2. I had checked and installed all missing dependencies listed and the first failure was on the "sudo pip3 install lxml" where the pip.log states : "/usr/bin/ld: cannot find -lz" Not having a great deal of experience on linux, I didn't know where to go from there and while searching found the pre-compiled package for sigil0.8.6 which I had running inside 10 minutes and with which I have already modified the ncx in my first epub on my work machine. DiapDealer suggested that a good place to continue with 0.9.0 would be to install the zlib1g-dev package. I installed zlib1g-dev and the pip3 install lxml then completed. I moved on to the next stage running : cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/opt/Qt5.4.2/5.4/gcc/lib/cmake -DCMAKE_BUILD_TYPE=Release ../sigil-src This failed with a message "Failed to find"GL/gl.h" in "usr/include/libdrm" which raises the spectre of another missing dependency. It is true that I do not have a "usr/include/libdrm/GL/". So, please, what is GL and which package would that come from ? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,365
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
OpenGL development header missing, most likely. Probably needed by Qt5's OpenGL library. Newer proprietary video drivers often don't include header files.
Try "sudo apt-get install mesa-common-dev" and see if that clears it up. Last edited by DiapDealer; 11-23-2015 at 11:29 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Debian traditionally splits the development headers needed for compiling from the runtime libraries.
The official build control file lists the following build dependencies: Code:
Build-Depends: cmake (>= 3.0.0), debhelper (>= 9), libhunspell-dev, libjs-jquery, libjs-jquery-scrollto, libminizip-dev, libpcre3-dev (>= 2:8.35-4), libqt5svg5-dev (>= 5.4.0), libqt5webkit5-dev (>= 5.4.0), libqt5xmlpatterns5-dev (>= 5.4.0), pkg-config, python3.4-dev, qtbase5-dev (>= 5.4.0), qttools5-dev (>= 5.4.0), qttools5-dev-tools (>= 5.4.0), zlib1g-dev What works for them will probably work for you. ![]() Last edited by eschwartz; 11-23-2015 at 11:47 AM. |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2580688
Join Date: Jun 2010
Device: K3W, PW4
|
If you would not mind a suggestion, at least one other package I have built from source on my linux system included a "cvslvlck" script in its util directory that when run reports any required libraries that are either missing or too old to build the package with. Perhaps a similar script could be added here to allow the user to confirm they are ready to attempt a build without the need of making sense of the error messages issued during a failed build attempt.
Dave |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,365
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() But I'd have no idea how to go about making it happen.I don't know how to look for what I don't know is needed; let alone if it might be might be missing. And as the OP is finding out, the library that might be missing rarely tells someone what package it might be a part of in their distro's repositories. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Someone who is building from source might want to get acquainted with the minutiae of their package manager.
Code:
[eschwartz@arch ~]$ pacman -Qo /usr/include/GL/gl.h /usr/include/GL/gl.h is owned by mesa 11.0.6-1 And a script that checks for needed libraries could wrap the search feature of various package managers. ... Of course, as you say, knowing what to check for is a feat all of its own. Last edited by eschwartz; 11-23-2015 at 02:19 PM. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,365
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It's possible that the libdrm-dev package could be the one that's needed, too. I'd probably take the "clobber" route and install the freeglut3-dev package (and everything it pulls in) and be done.
![]() |
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 215
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Thanks to all who responded. Installing the mesa-common-dev package solved everything.
I know the old lap top I use for these experiments is slow (32 bit Dell recovered from a friend who had Windows XP on it), but the 'make' alone took longer to complete than it took me yesterday to find, download, install and get running the pre-compiled deb package. Anyway, sigil 0.9.0 is now running on that laptop and I'll spend a little time to see how it goes before deciding whether I want to go thro all this again with my desktop mc. I've already remade and improved my first epub book (originally fashioned using Calibre and its html editor) on sigil0.8.6 and I can see what a useful production tool sigil can be. I've been using linux just over a year and I've built a few bits of software. It's certain that I know a lot more now than I did a year ago but there's a long way to go, I'm sure. Although there is a certain satisfaction when an applications gets built successfully, this is tempered by the realization of the time it takes because however detailed the instructions are, there has always been something missing. Thanks again for all the contributions. |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,365
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Glad you had the patience to get it going! And thanks for sharing your experience. Now when next I update the BuildingOnLinux document, I'll be able to include some notes like; "if you should get an error like XXX you may need to install package YYY."
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 215
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
I've tried to use the next section in the BuildingOnLinux.md document "Testing Sigil's Python plugin framework" but can't get the 6 steps in that paragraph to work as described.
The Plugins/Manage Plugins menu 'Add plugin' button refuses to load testplugin_v010.zip with a Sigil error "Plugin not a valid Sigil plugin". (The Xarchiver won't touch this file either but I can read it in a text editor.) I did download and install the FlightCrew plugin and this works ok. Step 5 in the testing para refers to Plugins->Manage Plugins ->Edit but I don't see any edit option in the ManagePlugins dialogue. In Sigil 0.9.0, the F7 key and the big green arrow on the tool bar activate a "SanityCheck' function rather than FlightCrew. I can get FlightCrew to work via Plugins/Validation/FlightCrew. Can F7 and the big green arrow be reassigned to FlightCrew or is that facility lost in 0.9.0 ? |
![]() |
![]() |
![]() |
#11 | ||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() This 11-year-old 32-bit Dell one-time XP laptop is running ArchLinux these days. I find that software in the repos tends to be more up-to-date on ArchLinux, sometimes by a significant amount. Quote:
![]() But working out how isn't nearly as fun. Fortunately, ArchLinux has a User Repository with instructions for building most things that aren't in the repos, and it is simple to manage -- although compiling still takes time. You also don't have to mess around with split development packages. I maintain the PKGBUILD for sigil-from-git. ![]() ... I will admit, ArchLinux isn't for everyone -- but it's a good way to gain a lot of familiarity with how linux works -- assuming one is interested enough to mess around that deep. |
||
![]() |
![]() |
![]() |
#12 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I do like "messing" with computers...build my own, can program a fair bit, etc. I've even looked at linux to run a fileserver. I don't understand the benefit of "building" your own software. It seems like a bit of a hassle but I'm sure there must be a plus side to it. Could someone please enlighten me??
|
![]() |
![]() |
![]() |
#13 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
And the few that keep up to date basically boil down to Gentoo and Arch. Arch doesn't always carry pre-compiled software -- it depends how popular it is and whether a Trusted User sponsors it. Gentoo is fundamentally built around the idea of building everything yourself. You can tune it to work exactly the way you want, but it takes a lot of time. Evolution of a linux user: http://www.explainxkcd.com/wiki/inde...56:_Cautionary |
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi philja,
The testplugin.zip requires Python 3.4 or later. The flghtcrew plugin runs on either Python 2.7 or python 3. My guess is you have only set the path to the python 2.7 interpreter. Try going to Plugins->Manage Plugins and try using auto on the Python 3.4 interpreter path and if needed browse to find it. Once you have set the Python 3.4 interpreter path you should be able to load and run the testplugin. KevinH Last edited by KevinH; 11-23-2015 at 07:45 PM. |
![]() |
![]() |
![]() |
#15 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
philja,
Sigil-0.9.0 is the first step in working towards adding epub3 support. Since FlightCrew is epub2 only and therefore of no use for epub3 users, we decided to move it to a plugin. The user can then choose to use flightcrew or epubcheck as a validator. Sanitycheck simply checks for parseability which can work no matter if epub3 or epub2. At some future point, we hope to add 5 user-assignable buttons to launch their most frequently used plugins. But that is down the road a ways. Next step is to try and create a metadata editor for epub3 metadata without losing metadata efiting for epub2. Then hopefully continue down that path adding, something to create the nav, and ... KevinH Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sigil 0.8.1 building on linux | blackest | Sigil | 9 | 10-15-2014 06:22 PM |
having difficulty downloading Sigil onto Linux | Gregg Bell | Sigil | 58 | 03-04-2014 06:39 AM |
Building Sigil from source on Linux | xingenter | Sigil | 10 | 04-29-2013 01:18 PM |
Building a running Linux on M92 from scratch | ManDay | Onyx Boox | 1 | 01-21-2013 11:11 AM |
Building Sigil under Linux | st_albert | Sigil | 1 | 08-07-2011 03:19 PM |