10-27-2024, 06:44 AM | #1 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
Make errors on Mint 22
Are these fatal to compilation/installation, or can I ignore the errors?
Code:
$ cmake -DUSE_SYSTEM_LIBS=1 -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../sigil-src -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Trying to use System Libraries... -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3") -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") -- Found MiniZip: /usr/lib/x86_64-linux-gnu/libminizip.so -- Checking for module 'hunspell' -- Found hunspell, version 1.7.2 -- Checking for module 'libpcre2-16' -- Found libpcre2-16, version 10.42 -- CMake version in use: 3.28.3 -- Using older findpython cmake module -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3.4") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.12.so (found suitable version "3.12.3", minimum required is "3.4") -- Using System ZLIB -- Using System MiniZip -- Using System Hunspell -- Using System PCRE2 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Found WrapAtomic: TRUE -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so -- Found WrapOpenGL: TRUE -- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0") -- Found WrapVulkanHeaders: /usr/include -- Using older PYTHON_LIBRARIES CMAKE variable to link to Python -- Configuring done (0.6s) -- Generating done (0.0s) -- Build files have been written to: (Redacted) Code:
Installing with make install... ========================= Installation results =========================== [ 5%] Built target sigilgumbo [ 5%] Built target main [ 5%] Built target fluent [ 5%] Built target material [ 5%] Built target sigil_autogen_timestamp_deps [ 6%] Built target sigil_autogen [100%] Built target sigil Install the project... -- Install configuration: "Release" CMake Error at src/cmake_install.cmake:52 (file): file INSTALL destination: /usr/local/lib/sigil is not a directory. Call Stack (most recent call first): cmake_install.cmake:49 (include) make: *** [Makefile:100: install] Error 1 **** Installation failed. Aborting package creation. Cleaning up...OK Bye. Last edited by darkbreath; 10-27-2024 at 06:52 AM. |
10-27-2024, 01:26 PM | #2 |
Grand Sorcerer
Posts: 5,643
Karma: 23456789
Join Date: Dec 2010
Device: Kindle PW2
|
Did you maybe forget to add sudo?
Code:
sudo make install
|
Advert | |
|
10-27-2024, 03:46 PM | #3 |
Grand Sorcerer
Posts: 28,059
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Definitely need sudo to install to the default prefix of /usr/local.
I don't see any errors in your configure output. If you're talking about the missing XKB message, that's not an error. There's a package that can be installed that makes it go away, but I forget what it is at the moment. It's not terribly important, but I'll track it down if I can. |
10-27-2024, 04:18 PM | #4 |
Grand Sorcerer
Posts: 28,059
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I also don't use checkinstall, so I don't know how that may affect things regarding sudo.
If you want to make the XKB message go away in the cmake configure, make sure the following two packages are installed: libxkbcommon-dev (might already be installed, but check) libxkbfile-dev Last edited by DiapDealer; 10-27-2024 at 05:05 PM. |
10-27-2024, 09:21 PM | #5 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
It's possible I forgot sudo on the checkinstall. I will test again.
The main reason I use checkinstall is because there's a consistent way to uninstall the app later. If the problem turns out not to be checkinstall rather than forgetting sudo, I might have to use "sudo make". can you please go over how to uninstall a copy of Sigil that was installed with "sudo make install"? I did a search but the post I found was from 2013: https://www.mobileread.com/forums/sh...d.php?t=225173 Is it still the case that deleting those 4 files/folders alone will uninstall Sigil completely? I know about the apt-get packages, but I'm not too worried about those because apt-get provides an easy way remove packages. Last edited by darkbreath; 10-27-2024 at 09:28 PM. |
Advert | |
|
10-27-2024, 10:33 PM | #6 | |
Grand Sorcerer
Posts: 28,059
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Delete 'sigil' from /usr/local/bin Delete the entire sigil directory in /usr/local/share Delete the entire sigil directory in /usr/local/lib Delete 'sigil.png' from /usr/local/share/pixmaps Delete 'sigil.desktop' from /usr/local/share/applications Also note that whenever you use (sudo) make install, an install_manifest.txt file gets created (in the folder where make install was run) that contains all the files and where they were copied to. I know of the benefits of checkinstall. It's just that working on Sigil as long as I have, it's quicker for me to manually delete a Sigil installation than it would be for me look up how to use checkinstall all over again. |
|
10-31-2024, 12:36 AM | #7 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
Thanks! I finally found the time to retry the checkinstall. I definitely didn't forget sudo this time, but I got the same error. It looks like there's some kind of incompatibility between 2.3.1 and the current version of checkinstall I have (1.6.2). I installed with sudo make install, which I normally try to avoid, but thankfully your installer has a sane uninstallation process. There are other app installers that require you to go through extreme terminal jiujitsu to undo. I also didn't know about the install_manifest.txt. Thanks!
Any chance you could add libxkbcommon-dev and libxkbfile-dev to the installation instructions, even if marked as optional? My concern is twofold: If the installation fails, one would wonder as I did whether that warning message was the cause. Even if the installation succeeds, it might have some subtle flaw that doesn't become obvious until much later. Also, as a final check, are these 2 failures of the test plugin meaningful?: Code:
Status: success Verify sys.path settings manually /usr/local/share/sigil/plugin_launchers/python /usr/lib/python312.zip /usr/lib/python3.12 /usr/lib/python3.12/lib-dynload /usr/local/lib/python3.12/dist-packages /usr/lib/python3/dist-packages /usr/lib/python3.12/dist-packages /home/(redacted))/.local/share/sigil-ebook/sigil/plugins/testplugin Verifying proper Python packages are available Checking GUI modules Python Package: PyQt5 Missing Python Package: PyQt5 QtWebEngineWidgets Missing Python Package: tkinter (/usr/lib/python3.12/tkinter/__init__.py) Found Python Package: PIL (/usr/lib/python3/dist-packages/PIL/__init__.py) Found Python Package: cssselect (/usr/lib/python3/dist-packages/cssselect/__init__.py) Found Python Package: css-parser (/usr/lib/python3/dist-packages/css_parser/__init__.py) Found Python Package: html5lib (/usr/lib/python3/dist-packages/html5lib/__init__.py) Found Python Package: lxml (/usr/lib/python3/dist-packages/lxml/__init__.py) Found Python Package: regex (/usr/lib/python3/dist-packages/regex/__init__.py) Found Python Package: chardet (/usr/lib/python3/dist-packages/chardet/__init__.py) Found Python Package: six (/usr/lib/python3/dist-packages/six.py) Found Python Package: dulwich (/usr/lib/python3/dist-packages/dulwich/__init__.py) Found Python Package: urllib3 (/usr/lib/python3/dist-packages/urllib3/__init__.py) Found Verifying Sigil Python Libraries can be found/loaded Sigil Python library: epub_utils Found Sigil Python library: quickparser Found Sigil Python library: hrefutils Found Sigil Python library: compatibility_utils Found Sigil Python library: sigil_bs4 Found Verifying Hunspell Spell Checking Hunspell en_US affix file and dictionary Found Hunspell shared library Found Hunspell spellchecking works True Verifying Sigil Gumbo Library operation Sigil Gumbo BS4 Adapter library Found Sigil BS4/Gumbo Parser works True Verifying selected basic plugin interface elements bk.text_iter() works True Listing manifested files... Text/Section0001.xhtml Text/nav.xhtml Styles/sgc-nav.css bk.manifest_iter() works True bk.spine_iter() works True bk.other_iter() works True reading a non-manifest book file works True reading a specific OPF manifest id works True writing to a specific OPF manifest id works True Launcher Version 20240803 ePub Version 3.0 adding your own file to the manifest works True basename to id mapping works True deleting our added file works True Failure - 2 Tests of Plugin Operations Failed 1. Python Package: PyQt5 Missing 2. Python Package: PyQt5 QtWebEngineWidgets Missing Last edited by darkbreath; 10-31-2024 at 06:36 AM. |
10-31-2024, 07:25 AM | #8 |
Grand Sorcerer
Posts: 28,059
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'll take the XKB stuff under advisement, but there are always going to be warnings like this that pop up over time. It's hard to keep up with them. And as already mentioned, there is no actual error being reported when the initial cmake can't find that particular library.
As to your reported missing PyQt5 modules, you must not be running the latest test plugin. Sigil 2.3.1 does not use Qt5 and v20 of the test plugin should be testing for PySide6 modules instead. If you ARE running v20 of the test plugin, then something in Sigil 2.3.0+'s plugin framework must have broken it. But v20 of the test plugin is properly looking for PySide6 modules in my usage. Last edited by DiapDealer; 10-31-2024 at 07:38 AM. |
10-31-2024, 10:13 AM | #9 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
Ok, fair point about the XKB stuff. I didn't realize this type of problem was so common. No pressure to add in all those trivial packages if so.
A better solution might be to just show me what real errors look like during the make process. Just to be clear, the only reason I was even looking for errors is because of the message "If there are no errors, you're ready to build." Instead of listing every trivial package, maybe you could just explain that message by showing the exact wording of what an error looks like. Any trivial package like the XKB ones wouldn't matter then, because the message associated with missing packages would presumably not match the wording of a true error. Also, you were right. I was mistakenly running version 19 of the test plugin because the build page for Linux (https://github.com/Sigil-Ebook/Sigil...ng_on_Linux.md) still linked directly to it. Maybe instead of a direct link you could just tell people to look for it under the docs folder in the repo. That would spare you the trouble of remembering to update the link every time there's a new version of the test plugin. |
10-31-2024, 10:32 AM | #10 | |
Grand Sorcerer
Posts: 28,059
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
10-31-2024, 07:33 PM | #11 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
Awesome! Speaking of errors, if I did run into a true error during the cmake step, would I know about it? All I took away is that "Could not find XKB" (despite the part of the line about a required package) was NOT an error.
If I see "Build files have been written", is it safe to conclude there were no true errors? |
10-31-2024, 07:44 PM | #12 |
Sigil Developer
Posts: 8,197
Karma: 5450818
Join Date: Nov 2009
Device: many
|
You typically see a message that says "error" and the build process stops prematurely.
|
11-01-2024, 02:19 AM | #13 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
I ran version 20 of the plugin, but I get similar errors for a different version of QT:
Code:
Status: success Verify sys.path settings manually /usr/local/share/sigil/plugin_launchers/python /usr/lib/python312.zip /usr/lib/python3.12 /usr/lib/python3.12/lib-dynload /usr/local/lib/python3.12/dist-packages /usr/lib/python3/dist-packages /usr/lib/python3.12/dist-packages /home/(redacted)/.local/share/sigil-ebook/sigil/plugins/testplugin Verifying proper Python packages are available Checking GUI modules Python Package: PySide6 Missing Python Package: PySide6 QtWebEngineWidgets Missing Python Package: tkinter (/usr/lib/python3.12/tkinter/__init__.py) Found Python Package: PIL (/usr/lib/python3/dist-packages/PIL/__init__.py) Found Python Package: cssselect (/usr/lib/python3/dist-packages/cssselect/__init__.py) Found Python Package: css-parser (/usr/lib/python3/dist-packages/css_parser/__init__.py) Found Python Package: html5lib (/usr/lib/python3/dist-packages/html5lib/__init__.py) Found Python Package: lxml (/usr/lib/python3/dist-packages/lxml/__init__.py) Found Python Package: regex (/usr/lib/python3/dist-packages/regex/__init__.py) Found Python Package: chardet (/usr/lib/python3/dist-packages/chardet/__init__.py) Found Python Package: six (/usr/lib/python3/dist-packages/six.py) Found Python Package: dulwich (/usr/lib/python3/dist-packages/dulwich/__init__.py) Found Python Package: urllib3 (/usr/lib/python3/dist-packages/urllib3/__init__.py) Found Verifying Sigil Python Libraries can be found/loaded Sigil Python library: epub_utils Found Sigil Python library: quickparser Found Sigil Python library: hrefutils Found Sigil Python library: compatibility_utils Found Sigil Python library: sigil_bs4 Found Verifying Hunspell Spell Checking Hunspell en_US affix file and dictionary Found Hunspell shared library Found Hunspell spellchecking works True Verifying Sigil Gumbo Library operation Sigil Gumbo BS4 Adapter library Found Sigil BS4/Gumbo Parser works True Verifying selected basic plugin interface elements bk.text_iter() works True Listing manifested files... Text/Section0001.xhtml Text/nav.xhtml Styles/sgc-nav.css bk.manifest_iter() works True bk.spine_iter() works True bk.other_iter() works True reading a non-manifest book file works True reading a specific OPF manifest id works True writing to a specific OPF manifest id works True Launcher Version 20240803 ePub Version 3.0 adding your own file to the manifest works True basename to id mapping works True deleting our added file works True Failure - 2 Tests of Plugin Operations Failed |
11-01-2024, 09:45 AM | #14 |
Grand Sorcerer
Posts: 28,059
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes. That's because the PySide6 python module is missing. Many (but not all) third-party plugins with GUI interfaces will need that module to work.
It's mentioned in the Getting Python 3.9+ section of the build documentation. Last edited by DiapDealer; 11-01-2024 at 09:52 AM. |
11-01-2024, 11:45 AM | #15 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Apr 2016
Device: none
|
Ah I see it. I didn't fully understand that part of the instructions at first, but I did some reading about pip afterward, and I see what it meant now.
When I tried to install the package, I ran into that PEP 668 error and realized that I could potentially break os Python packages if I proceeded. Is there another option such as maybe installing a version of Python in Conda or some other virtual environment, then pointing Sigil there? |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No errors found in calibre, but epub check found errors | LarkinJM | ePub | 3 | 03-03-2020 05:51 PM |
Errors Starting Calibre 3.0 in Linux Mint 18 | MontyJ | Calibre | 26 | 11-04-2017 07:43 PM |
Flightcrew says Errors, but Sigil says no Errors… | Barcelona | Sigil | 4 | 02-09-2012 08:13 AM |
How do I report minor errors or make corrections? | Wetdogeared | Upload Help | 7 | 05-06-2009 01:10 PM |
Make: HOW TO - Make PDFs for the Sony Reader (Ebook e-ink device) | kalivoodoo | Sony Reader | 6 | 02-01-2007 12:56 PM |