Bug 455108 - Feature request: Make documentation panel optional to build without Qt WebEngine
Summary: Feature request: Make documentation panel optional to build without Qt WebEngine
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: general (show other bugs)
Version: 22.04.2
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-10 05:44 UTC by A. Wilcox (awilfox)
Modified: 2024-11-11 08:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 24.08
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Wilcox (awilfox) 2022-06-10 05:44:32 UTC
SUMMARY
Cantor now requires Qt WebEngine to build.  We cannot offer Qt WebEngine on Adélie Linux because it is not compatible with most of our CPU architectures (PowerPC, 32-bit x86/ARM) and because it is not compatible with our libc (musl libc).  There are other issues but these are the biggest ones.

It seems like the only use of WebEngine is for the documentation panel.  While it is obviously not ideal to remove this, it seems better to make this optional (along with WebEngine) than to drop Cantor from our distro entirely.

I'll be writing a patch to do just that in the meantime, and if this is something that you would be willing to add upstream, you can feel free to merge it.


STEPS TO REPRODUCE
1. Try to build Cantor on a system that does not support Qt WebEngine.


OBSERVED RESULT
CMake Error at /usr/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5WebEngine" with
  any of the following names:

    Qt5WebEngineConfig.cmake
    qt5webengine-config.cmake


EXPECTED RESULT
Successful build.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux gwyn.foxkit.us 5.15.28-mc1-easy #1 SMP Sat Apr 30 09:14:06 UTC 2022 ppc64 GNU/Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4 + KDE patches


ADDITIONAL INFORMATION
n/a
Comment 1 Alexander Semke 2022-06-10 20:44:29 UTC
you're right. It's used for the documentation panel only. Feel free to submit a patch for this and I'll review it. It makes sense to make this optional, yes. Something like ENABLE_EMBEDDED_DOCUMENTATION option for cmake similar to 
https://invent.kde.org/education/labplot/-/blob/master/CMakeLists.txt#L221 would be an idea here.
Comment 2 Bug Janitor Service 2024-05-18 13:20:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/cantor/-/merge_requests/77