On Mittwoch, 23. August 2023 01:53:44 CEST Jack via KMyMoney-devel wrote: > On 8/22/23 19:42, Jack via KMyMoney-devel wrote: > > On 8/20/23 16:49, Jack via KMyMoney-devel wrote: > >> On 8/20/23 16:42, Thomas Baumgart via KMyMoney-devel wrote: > >>> On Sonntag, 20. August 2023 20:13:27 CEST Jack via KMyMoney-devel > >>> wrote: > >>> > >>>> It seems the problem with cmake not finding webenginewidgets has been > >>>> popping up in a number of different threads in different support > >>>> venues. In my current case, trying to compile from git head master > >>>> branch gives me > >>>> > >>>> CMake Error at > >>>> /usr/lib64/cmake/LibAlkimia5-8.1/LibAlkimia5Targets.cmake:65 > >>>> (set_target_properties): > >>>> The link interface of target "Alkimia::alkimia" contains: > >>>> > >>>> Qt5::WebEngineWidgets > >>>> > >>>> but the target was not found. Possible reasons include: > >>>> > >>>> This is on artixlinux, where webenginewidgets is provided by the > >>>> qt5-webengine package. The relevant cmake files in that package are > >>>> > >>>> qt5-webengine usr/lib/cmake/Qt5WebEngineWidgets/ > >>>> qt5-webengine > >>>> usr/lib/cmake/Qt5WebEngineWidgets/Qt5WebEngineWidgetsConfig.cmake > >>>> qt5-webengine > >>>> usr/lib/cmake/Qt5WebEngineWidgets/Qt5WebEngineWidgetsConfigVersion.cmake > >>>> > >>>> > >>>> Note on my system /usr/lib and /usr/lib64 are symlinked. However, I > >>>> wonder if the call should be for Qt5::Qt5WebEngineWidgets. > >>> I am not sure at all. I have the following files here > >>> > >>> /usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake > >>> /usr/lib64/cmake/Qt5WebEngine/Qt5WebEngineConfig.cmake > >>> /usr/lib64/cmake/Qt5WebEngine/Qt5WebEngineConfigVersion.cmake > >>> /usr/lib64/cmake/Qt5WebEngineCore/Qt5WebEngineCoreConfig.cmake > >>> /usr/lib64/cmake/Qt5WebEngineCore/Qt5WebEngineCoreConfigVersion.cmake > >>> /usr/lib64/cmake/Qt5WebEngineWidgets/Qt5WebEngineWidgetsConfig.cmake > >>> /usr/lib64/cmake/Qt5WebEngineWidgets/Qt5WebEngineWidgetsConfigVersion.cmake > >>> > >>> > >>> > >>> which looks very similar to yours and have no problems. I do use > >>> alkimia master though, not the 8.1 branch. > >>> > >>>> Is there a terminology difference (qt5webenginewidgets vs > >>>> webenginewidets) between different packages providing and using this > >>>> component? If so, which is right and which needs to be corrected? Or > >>>> am I totally off the mark and this difference is not relevant? > >>> So am I. I don't know if that is caused by naming conventions of > >>> the various distros or something else? Also, why is it failing now > >>> and did work in the past? > >> > >> I also just compiled 8.1.1 from tarball, and it produced the same > >> files. However, if running cmake on the tarball of libalkimia found > >> the necessary files, then why can't they be found when the search is > >> transitive, initiated by compiling KMM from git master? Doesn't 5.1 > >> call for the same files when using webengine instead of webkit? > >> > >> What I now wonder is whether something changed in the cmake files in > >> KMyMoney master branch which alters something about the search path, > >> especially with a nested cmake file. My next effort will be > >> capturing the logs of cmake for both 5.1 and master to see if I can > >> find any relevant differences. > >> > >> Curiouser and curiouser, said Alice. > > > > git bisect is your friend (once you learn to read and correctly > > distinguish good and bad...) > > > > commit b6c2c157f403c9ab74067cc2611ffebd3f87d8d7 > > Author: Andreas Sturmlechner <ast...@gentoo.org> > > Date: Fri Aug 5 10:37:09 2022 +0200 > > > > Drop bogus dependencies > > > > This reverts 90d78bd238c8db701e4bb19d9c5c2ddd9bd4f59c, > > 93374114e87a9b05546fb27bc936f223b5b84f7d and > > 92ef8b8ef8d0c5229fc601ac36806c926c85c36a. > > > > The proper fix went into alkimia via > > https://invent.kde.org/office/alkimia/-/commit/09a11cee26af4ca55e5839dd44e32400147dc119 > > > > > > > > See also: https://invent.kde.org/office/kmymoney/-/issues/63 > > > > Signed-off-by: Andreas Sturmlechner <ast...@gentoo.org> > > > > That commit was added as part of > > https://invent.kde.org/office/kmymoney/-/issues/63, which is still > > open. I'm not particularly good with cmake syntax, but it looks to me > > like that commit removed both WebEngingeWidgets AND WebKitWidgets from > > KMM's CMakeLists.txt, and perhaps it should only have removed one of > > them? > > Actually, I just reread that Issue more carefully, and it explicitly > mentions this specific error, stating that it should be fixed in > Alkimia, not in KMyMoney. I have no idea how that should be fixed, but > I'm not sure why that note in the Issue never got any follow-up.
This is what might fix it in alkimia 8.1: thb devel/alkimia (master)$ git diff 8.1..master src/LibAlkimiaConfig.cmake.in diff --git src/LibAlkimiaConfig.cmake.in src/LibAlkimiaConfig.cmake.in index 5c2dfc3..1ad866e 100644 --- src/LibAlkimiaConfig.cmake.in +++ src/LibAlkimiaConfig.cmake.in @@ -9,7 +9,9 @@ if("@BUILD_QT4@" STREQUAL "ON" OR "@BUILD_QT4@" STREQUAL "1") else() find_dependency(Qt5Core) find_dependency(Qt5DBus) - if (@QT_BROWSER_LIB@) + if (@BUILD_WITH_WEBENGINE@) + find_dependency(Qt@QT_MAJOR_VERSION@WebEngineWidgets 5.15.0) + elseif (@QT_BROWSER_LIB@) find_dependency(@QT_BROWSER_LIB@) endif() if (@QT_NETWORK_LIB@) -- Regards Thomas Baumgart ------------------------------------------------------------- As soon as we wish to be happier, we are no longer happy. -- Walter Landor -------------------------------------------------------------
signature.asc
Description: This is a digitally signed message part.