11-16-2023, 06:38 PM | #61 | |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The gist is that /usr/local/bin/sigil is a bash script that needs to be edited with a text editor. You'll need root permissions to edit it. Basically you need to prevent the system Qt6 location (represented by the QTLIB_DIR variable) from being prepended to the LD_LIBRARY_PATH variable. I myself would do that by removing :QTLIB_DIR from line 10 and line 12 of that script (note the colon at the beginning of the substring to be removed). I'm not really happy with this solution as the script will be overwritten each time Sigil gets built then installed. But it might be the easiest solution for now. |
|
11-18-2023, 10:11 AM | #62 |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Sorry DiapDealer, I didn't see this reply earlier. I didn't notice that the thread had now progressed to page 5 !! My bad.
I'll gladly have a go with your Sigil Python AppImage. |
Advert | |
|
11-18-2023, 12:32 PM | #63 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Quote:
I downloaded sigil-qt6-python3.11_x86_64.AppImage, set it to 'executable' and then used Sigil's plugin manager to set the path to the python interpreter to that file. The wrapper script in /usr/local/bin/sigil remained in its original state with : Code:
QTLIB_DIR="/usr/lib/x86_64-linux-gnu" With the new path to your AppImage set in the plugin manager, I ran the testplugin to a successful completion with a freshly started Sigil basic template page - "Success - All Tests of Plugin Operations Passed" Code:
Verifying proper Python packages are available Checking GUI modules Python Package: PySide6 (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/PySide6/QtWidgets.abi3.so) Found Python Package: PySide6 QtWebEngineWidgets (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/PySide6/QtWebEngineWidgets.abi3.so) Found Python Package: tkinter (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/tkinter/__init__.py) Found Python Package: PIL (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/PIL/__init__.py) Found Python Package: cssselect (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/cssselect/__init__.py) Found Python Package: css-parser (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/css_parser/__init__.py) Found Python Package: html5lib (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/html5lib/__init__.py) Found Python Package: lxml (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/lxml/__init__.py) Found Python Package: regex (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/regex/__init__.py) Found Python Package: chardet (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/chardet/__init__.py) Found Python Package: six (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/six.py) Found Python Package: dulwich (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/dulwich/__init__.py) Found Python Package: urllib3 (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/urllib3/__init__.py) Found |
|
11-18-2023, 12:46 PM | #64 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks for trying it! Happy to see it works as expected. My plan was to avoid users needing to install a bunch of extra stuff in their system python. Thoughts? Is it easy enough to be useful?
|
11-18-2023, 01:56 PM | #65 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Quote:
I did wonder where to put it but then realised that it didn't matter as far as Sigil was concerned because the path was going to be set manually in the plugin manager. So for my convenience, I placed it in the sub-directory of /Downloads/ where I keep any Sigil plugin zip files. Setting it to executable might be a bit tricky for some Linux users. Maybe when you decide how to issue it, you'll add a few notes and a hint to run the testplugin to check if the PySide6 stuff is located. |
|
Advert | |
|
11-18-2023, 02:38 PM | #66 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This is strictly for use as the Sigil plugin interpreter and its environment. It won't replace any of the Sigil Qt6 build requirements, unfortunately. Sigil has some basic Embedded Python needs that will still use the system Python. All necessary modules are available via the normal package management system. The Python Plugin Framework needs some extra pieces that might not be available via the normal distro package management system.
|
11-18-2023, 06:10 PM | #67 |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Using Sigil with your AppImage made my problem with the display of some (but not all) gif images inside the InsertImageSVG plugin's dialog go away.
I couldn't believe it so I reversed and went back to using the /usr/bin/python3 path to the interpreter with the edit to /usr/local/bin/sigil wrapper script to remove the QTLIB_DIR statement. This made the problem with gif display come back. I found that I could go back and forth between these two configurations and make the display issue disappear or reappear in a systematic fashion. see : https://www.mobileread.com/forums/sh...21#post4373721 So there's something in your AppImage that was missing or defective in the other setup configuration. How about that? |
05-03-2024, 06:37 PM | #68 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Further problems - this time, building Sigil-2.1.0
Having succeeded in building 2.0.2 with Qt6 on Ubuntu 22.04 Jammy, thanks to the help provided in this thread, I thought I'd have a go with the latest version. I'm still on Jammy and wouldn't normally upgrade to 24-04 until it reaches the .1 level in August.
First, I thoroughly reviewed all this thread and consulted my notes from the earlier build. Next, I went through the latest version at : https://github.com/Sigil-Ebook/Sigil...ng_on_Linux.md checking that I had all the components and packages listed. By the way, I think there is a typo in the section of that document 'Getting Qt6' for Debian systems : the 7th bullet point says Quote:
I downloaded the 2.1.0 zip file and followed the instructions but the cmake command failed. The indications are : Code:
Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0") -- Found WrapVulkanHeaders: /usr/include -- Could NOT find Qt6Svg (missing: Qt6Svg_DIR) It does seem to me that the failure to find Qt6Svg is more likely to be the important one. The terminal output goes on to say: Code:
CMake Error at src/qt6sigil.cmake:31 (find_package): Found package configuration file: /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Svg". Expected Config file at "/usr/lib/x86_64-linux-gnu/cmake/Qt6Svg/Qt6SvgConfig.cmake" does NOT exist Something seems to have changed with Qt6 between the building of 2.0.2 and 2.1.0. |
|
05-03-2024, 07:32 PM | #69 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes, most distributions keep updating their Qt versions and unfortunately how they split up Qt for packaging in their specific distribution.
Once you added the libqt6svg package, did your build complete and were you able to launch it? Or is the missing xkb lib still an issue? Last edited by KevinH; 05-03-2024 at 07:48 PM. |
05-03-2024, 07:42 PM | #70 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
With 2.0.2, I believe QtSvg was merely a runtime requirement. We changed something along the road to 2.1.0 that made it a build requirement. So I'm guessing that means that a -dev package for QtSvg will also be required (on distros that split packages into separate lib and dev components).
Let me see if I can figure out what Ubuntu is calling that package today. EDIT: Try installing libqt6svg6-dev on Jammy. Last edited by DiapDealer; 05-03-2024 at 07:48 PM. |
05-03-2024, 08:11 PM | #71 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks for pointing out the typo in libqt6core5compat6-dev. I fixed it in the documentation. I also updated it to libqt6svg6-dev to reflect the new build-time requirement for the QtSvg headers and includes.
|
05-04-2024, 02:04 PM | #72 | ||
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Quote:
The libqt6svg package is still there but evidently not sufficient this time round. Last time there was no mention of problems with xkb as far as I recall - nothing in my notes nor mention in this thread. Quote:
|
||
05-04-2024, 02:49 PM | #73 | |
Groupie
Posts: 177
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
Quote:
CMAKE went through ok - still mentioned the missing XKB but it still mentions the missing windows.h which was said to be irrelevant earlier in this thread when building 2.0.2 so maybe XKB is another irrelevancy. MAKE and MAKE INSTALL also went ok. Sigil started and the testplugin ran to completion with no faults listed. So now I have what appears to be a functioning Sigil-2.1.0. Thanks for the help. |
|
05-04-2024, 03:04 PM | #74 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Good deal. Thanks for reporting back!
|
06-30-2024, 09:23 AM | #75 | |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
libxkbcommon-dev (very likely already installed, but check) libxkbfile-dev (not installed by default on my Jammy virtual machine) |
|
|
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 |