![]() |
#1 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2016
Device: iRiver Story HD
|
Compiling 0.9.5 with Qt 5.6.0
Hello, all! I just discovered the site this week joined today.
I am running Linux Mint 17.3. I grabbed the source to the latest Sigil version and am trying to figure out how to build it. The trouble seems to be that with the latest Qt5 (5.6.0) things aren't where they are expected. Working from the instructions in /docs/BuildingOnLinux.html I made my directories and modified their cmake options to point to QTs default directory, so now it looks like: cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/home/name/Qt5.6.0/5.6/gcc_64/lib/cmake -DCMAKE_BUILD_TYPE=Release ../sigil-src and now it finds the Qt5Config.cmake file fine. But shortly after it fails to find config files for the Qt5 components "WebKit" and "WebKitWidgets". Well, I did the whole giant bloated install of 2.2GB of everything, source and all, and there are no such modules present. The QT website says: http://wiki.qt.io/New_Features_in_Qt_5.6 Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You probably missed the line in the BuildingOnLinux document that specifies you need Qt 5.4. As Kevin explained in another thread Qt stopped with the WebKit. As Sigil is very depending on that part, especially due to BookView, version 5.4 is currently a hard requirement as I understood it.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,691
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,521
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes, Webkit is required for Sigil. Qt 5.6 dropped that component, but most Linux distributions plan on adding it back in their binary distributions as many projects depend on it. And Doitsu and Toxaris are correct. Qt 5.4.2 is the official version we build with, and you can build Sigil with Qt 5.5.1 too.
If you want to use Qt 5.6 or later you must hope your distribution has included Webkit with their official distribution packages or you must download the sources, add back in Qt Webkit source from the Qt 5.5.1 release and build all of Qt yourself from source. KevinH Last edited by KevinH; 03-27-2016 at 09:31 AM. |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Hmm, I'm using 5.5.1 and get the following:
Code:
CMake Warning at src/CMakeLists.txt:66 (find_package): Could not find a configuration file for package "Qt5" that is compatible with requested version "5.4". The following configuration files were considered but not accepted: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.2.1 CMake Error at src/CMakeLists.txt:576 (qt5_wrap_ui): Unknown CMake command "qt5_wrap_ui". Error log: Spoiler:
Thanks ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Quote:
The one I'm looking at says: Code:
To build Sigil on Linux, you need to get/do the following things: ... 3. [Qt5.4.0](#qt5) (or higher) Code:
##<a name="qt5"/>Getting Qt5 ... Sigil requires Qt5.4.0 or higher, but the "official" Sigil releases are built with Qt5.4.2. |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,412
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() As far as your error in your previous message goes: you may have installed Qt5.5.1, but it's clear from your error message that cmake is only finding Qt5.2.1 on your system (which is insufficient). Be sure that you've specified the correct -DCMAKE_PREFIX_PATH to point to Qt5.5.1 on your system (as correctly described in the BuildingOnLinux document). CMake is trying to use your older, distro-installed 5.2.1 instead. Last edited by DiapDealer; 03-27-2016 at 09:04 AM. |
|
![]() |
![]() |
![]() |
#8 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Quote:
![]() ![]() ![]() Fixed that, all compiles nicely. Thanks! ![]() |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,412
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,412
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I just pushed an update to the BuildingOnLinux documentation that clarifies (hopefully) the Qt version requirements, as well as addressing some common errors and pitfalls (with likely solutions) that users have brought up here since the document's creation.
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Maybe I'm the only one, but one thing I have done all (three...) times I have compiled Sigil is to read "same level as source" as the same level as the "src" directory, not the unpacked Sigil-x.y.z-directory. No biggie, but maybe it could be clarified a bit in the doc?
In other words.... - I download Sigil-0.9.5.zip - unzip Sigil-0.9.5.zip - cd Sigil-0.9.5 - ls -lh - Open docs/BuildingOnLinux.md - Read and get to the create "build" same level src. - As I see a directory "src" in front of me, I create a directory called "build" at the same level - I "cd build" and do the first cmake, get the error message, get confused for 3 seconds and get it, "cd .." "mkdir build", and continue... Now when I have written this, I'm sure I will remember to next time. ![]() |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,412
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() I'll take it under advisement, but I do tend to put quotations around literal directory names when I use them. I would think the main point that the build directory should be completely outside of the downoaded source code hierarchy would be apparent, but maybe not. |
|
![]() |
![]() |
![]() |
#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)
|
My PKGBUILD for sigil uses sigil-git/build/ for the build directory, configured with `cmake [options] ..` and it all works fine -- I don't see why that should be a problem assuming you point cmake at the correct source root.
A "build" subdirectory seems to be a rather common cmake convention. cmake considers that an "out of source build". Last edited by eschwartz; 03-27-2016 at 01:46 PM. |
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,412
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() I do it the way I do simply because I prefer to leave the source pristine. I use a similar strategy when building Qt (without cmake). *shrug* Last edited by DiapDealer; 03-27-2016 at 02:44 PM. |
|
![]() |
![]() |
![]() |
#15 | |
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)
|
Yes, the operative part of my post was "assuming you point cmake at the correct source root".
![]() Just trying to underline where the problem was. If you aren't going to copy-paste ALL the commands, then you are responsible for modifying them to match the things you change. ... The instructions were already pretty clear that the copy-pasteable commands assumed: Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
eBook compiling | warriorkalia | Workshop | 1 | 09-12-2013 01:25 AM |
error compiling | iomari | Devices | 1 | 04-15-2013 10:14 PM |
Compiling 7.x on Kubuntu 12.10 | dicknskip | Sigil | 9 | 04-09-2013 04:39 PM |
Compiling for Lubuntu (regarding compiling instructions) | jgratero | Sigil | 5 | 07-15-2012 07:54 PM |
Problems compiling | unkilbeeg | Sigil | 1 | 09-13-2009 01:49 PM |