11-09-2023, 01:31 PM | #1 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Seeking help in building Sigil on linux
My machine is running UbuntuStudio 22.04.3 LTS with 5.15.0-88-lowlatency - x86_64
I've been running Sigil Flatpak version in order to have Sigil more up-to-date than the distro version, 1.9.2. Generally, the Flatpak version worked ok but with some difficulties with plugins and occasional freezing of the Preview panel apparently failing to load. The only way out of that freeze was to close and restart Sigil. So I decided to take a chance and try to build Sigil 2.0.2 myself following the detailed procedure on https://github.com/Sigil-Ebook/Sigil...Linux.md#sigil This is outside my comfort zone. I completed the first 6 steps and got as far in step 7 as running Code:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../sigil-src Code:
CMake Error at src/qt6sigil.cmake:27 (find_package): By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt6", but CMake did not find one. Quote:
Could someone kindly help by providing a simple statement like the one in the article? Code:
sudo apt-get install qtbase5-dev qttools5-dev qttools5-dev-tools qtwebengine5-dev qt6-kde-platformtheme and qt6-qpa-plugins and I have no idea if they are at all relevant. |
|
11-09-2023, 01:39 PM | #2 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sorry. I posted what you needed to watch out for in the plugin thread where you announced your intention to build Sigil yourself.
Start over and add -DUSE_QT5=1 to step 7. cmake -G "Unix Makefiles" -DUSE_QT5=1 -DCMAKE_BUILD_TYPE=Release ../sigil-src EDIT: I updated the Qt5 build instructions on Github to note the change. Last edited by DiapDealer; 11-09-2023 at 02:01 PM. |
Advert | |
|
11-09-2023, 02:26 PM | #3 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Thanks, DiapDealer. That worked and I have started up Sigil 2.0.2, apparently successfully, using Qt5.15.3.
The only thing I noticed in the vast amount of detail scrolling by in the terminal was at 42% of the 'make install' command and concerned an unused variable: Quote:
Do I need to keep the two sub-directories in my Home directory : sigil-build and sigil-src ? |
|
11-09-2023, 02:57 PM | #4 | ||
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
No. Feel free to delete them if you like. |
||
11-09-2023, 03:29 PM | #5 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
That warning about profile_mgr being completely unused can safely be ignored as it is spurious. There is only one instance of the profile manager (a singleton class) that just needed to be created at that point in main.cpp.
Last edited by KevinH; 11-09-2023 at 03:32 PM. |
Advert | |
|
11-09-2023, 03:33 PM | #6 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Quote:
In any case, besides the 2 Qt6 packages I named in the first post, there are another 50 packages listed in the Muon package manager but not installed. It may be that the distro already has what Sigil needs but the names of these packages don't mean much to me. Looking at https://github.com/Sigil-Ebook/Sigil...ith_Qt6.md#qt6 the qt6 modules required for Arch- type linux are qt6-svg, qt6-webengine, qt6-tools, qt6-5compat for the pacman manager. None of these is in my ubuntustudio distro but there are some similarly named packages: qt6-webengine-dev, qt6-webengine-dev-tools, qt6-base-dev-tools, qt6-tools-dev. There doesn't appear to anything similar to qt6-svg or qt6-5compat. They all are 6.2.4 versions. Could it be possible that some of the qt6 packages already available but not yet installed could allow me to build Sigil 2.0.2 with qt6? I've made a brief sortie into Sigil and improved the visibility of the code view font. All seems to be working in the way I'm accustomed to. I relocated the Table of Contents from being a tab with the Book Browser to being a tab on the right-hand side with the Preview panel, which is what I prefer. So all looks good. Last edited by philja; 11-09-2023 at 05:10 PM. |
|
11-13-2023, 09:17 AM | #7 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi,
i came quite a bit farther, thus: * sudo apt-get install qt6-webengine-dev-tools qt6-base-dev-tools qt6-tools-dev qt6-tools-dev-tools qt6-5compat-dev (the package name scheme changed quit a bit from 5 to 6, apparently) * unpacked the source directory to $HOME, creating ~/Sigil-2.0.2 * mkdir ~/Sigil-build * cd ~/Sigil-build * make -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../Sigil-2.0.2/ * make * sudo make install This worked, placing a plethora of files somewhere, but importantly, also a /usr/local/bin/sigil. This runs on my Debian 12, but has no icon images in the window whatsoever. I could endure this, but not that it doesnt start the configured (and present!) /usr/local/bin/pageedit. YMMV, -- recook |
11-13-2023, 09:29 AM | #8 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Have you set the External Xhtml Editor path in Sigil Prefs?
I do not understand? Which specifically icons are missing? Sigil Tool Bar icons? Sigil Menu icons? Sigil plugin icons? |
11-13-2023, 09:43 AM | #9 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
hi,
to save my sanity, i reverted to uninstalling the selfcompiled Sigil and getting Debian 12s own package Sigil 1.9.20. I didn't find an uninstall target in the Makefile, but a install_manifest.txt, listing the "plethora" of files, so i could craft a shell script to remove all those. -- regards, -- recook |
11-13-2023, 09:48 AM | #10 | |
Enthusiast
Posts: 35
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi,
indeed i have, to /usr/local/bin/pageedit . Also, i checked the Keyboard shortcut, which was still F2. Quote:
A switch of appearance theme doesn't make them appear, either. Maybe the reason is compiling with Qt6... -- regards, -- recook |
|
11-13-2023, 09:58 AM | #11 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Probably just means you needed additional Qt6 packages installed.
The few packages you did install is just a shortcut for each of those packages to pull in more dependencies. The dev packages were probably just the headers. You will need the actual Qt6 libraries as well. Why linux distribution package managers can not at least agree on a common naming scheme is beyond me. But changing the naming scheme from release to release for the same distribution is just completely insane. Last edited by KevinH; 11-13-2023 at 10:05 AM. |
11-13-2023, 10:02 AM | #12 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's probably why Debian Unstable hasn't updated from 2.0.1 to 2.0.2. One could always try to build Sigil 2.0.2 against Qt5 (using -DUSE_QT5=1 in the original cmake configuration) to rule out Qt6 as the culprit.
Or.... you could just add the qt6-svg package, which is a runtime dependency of Sigil, to make the icons appear. A Qt SVG package is the first one mentioned in the latest Sigil Linux Qt6 build instructions. As for PageEdit not launching, that's probably due to the Sigil launch script (/usr/local/bin/sigil) trying launch a repo installed version of PageEdit (a Qt5 version) that has diddled the launch script slightly. I would recommend using repo-supplied versions of both, or custom built versions of both (using the same Qt version) rather than some mixture of both. Last edited by DiapDealer; 11-13-2023 at 10:11 AM. |
11-13-2023, 10:17 AM | #13 | |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I think I'm going to gut my Sigil's Linux build documentation and make it more distro-agnostic. I can't keep track of all the changes the various distros make to their package naming practices (and wouldn't want to try). Last edited by DiapDealer; 11-13-2023 at 10:22 AM. |
|
11-13-2023, 10:33 AM | #14 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Makes sense.
|
11-13-2023, 10:33 AM | #15 |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
[QUOTE=DiapDealer;4372123]
Or.... you could just add the qt6-svg package, which is a runtime dependency of Sigil, to make the icons appear. A Qt SVG package is the first one mentioned in the latest Sigil Linux Qt6 build instructions. /QUOTE] I tried for a while to find the apt equivalent packages for Qt6 starting from the ones identified for Qt5. I decided about the same as recook but I didn't know where to locate the equivalent of Qt6-svg. It is a bit of a sod that every linux distro needs to reinvent the wheel when it comes to packages and naming conventions. But then that's why so few provide installers for anything in linux. So I decided to stay with the working Qt5 version of Sigil2.0.2 for the moment. But I'm open to change if and when I get to know the names of the equivalent Qt6 packages in apt. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building the Linux standalone Sigil installer | eschwartz | Sigil | 10 | 12-20-2015 05:13 PM |
Difficulty with building sigil 0.9.0 on linux | philja | Sigil | 36 | 11-25-2015 05:38 PM |
sigil 0.8.1 building on linux | blackest | Sigil | 9 | 10-15-2014 07:22 PM |
Building Sigil from source on Linux | xingenter | Sigil | 10 | 04-29-2013 02:18 PM |
Building Sigil under Linux | st_albert | Sigil | 1 | 08-07-2011 04:19 PM |