[kmymoney] [Bug 491494] Blank Home Page

2024-09-17 Thread bugzilla_noreply--- via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491494

farfouill...@laposte.net changed:

   What|Removed |Added

 CC||farfouill...@laposte.net

--- Comment #11 from farfouill...@laposte.net ---
Hi,
I started the topic in arch linux forum referenced in
https://bugs.kde.org/show_bug.cgi?id=491494#c6.
I can only use kmymoney 5.1.3 with wayland if it runs under Xwayland
(QT_QPA_PLATFORM="xcb" kmymoney) or using Xorg session.
Since that topic, I don't have to downgrade Nvidia driver to 535 serie anymore,
since Nvidia 555.58 driver serie, kmymoney works correctly using Xwayland.
Though, it still displays a blank home page in native wayland with an awful
bunch of fail messages (EGL_BAD_CONTEXT stuff) that clutters the journal and
slow down significantly kmymoney (look at the messages frequency in
https://bugsfiles.kde.org/attachment.cgi?id=172448)

My setup :
- kmymoney 5.1.3
- linux : 6.10.10
- nvidia driver : 560.35.03-6
- gnome : 46.5

-- 
You are receiving this mail because:
You are the assignee for the bug.

building from master branch

2024-09-17 Thread Jeremy Whiting via KMyMoney-devel
Hello,

How does one currently build kmymoney from master branch? I've been trying
to sort it out myself, but have hit some walls. Here are my questions.

1. KMymoney master branch depends on alkimia 6, but alkimia master branch
seems to still be Qt5/KF5 based. Where would I get alkimia6 from?
2. Trying to build alkimia with some patches to find Plasma since KF6
Plasma changed a bit it's unable to find KNSCore::EntryInternal. I imagine
because that got deprecated in the kf5 -> kf6 transition, but I haven't
been able to yet find a guide on porting stuff from KF5 to KF6 that
mentions classes that got deprecated and what to use instead. Does such a
guide exist?

thanks for any pointers.

BR,
Jeremy


Re: building from master branch

2024-09-17 Thread Jack Ostroff via KMyMoney-devel

On 9/17/24 12:42 PM, Jeremy Whiting via KMyMoney-devel wrote:

Hello,

How does one currently build kmymoney from master branch? I've been 
trying to sort it out myself, but have hit some walls. Here are my 
questions.


1. KMymoney master branch depends on alkimia 6, but alkimia master 
branch seems to still be Qt5/KF5 based. Where would I get alkimia6 from?
2. Trying to build alkimia with some patches to find Plasma since KF6 
Plasma changed a bit it's unable to find KNSCore::EntryInternal. I 
imagine because that got deprecated in the kf5 -> kf6 transition, but 
I haven't been able to yet find a guide on porting stuff from KF5 to 
KF6 that mentions classes that got deprecated and what to use instead. 
Does such a guide exist?


thanks for any pointers.

BR,
Jeremy


Hopefully I'm not way off, but I believe if you build alkimia from its 
master branch, that will be fine for KMM from master. Alkimia6 is 
actually already somewhat old (and doesn't depend on Qt/KDE6).  I think 
v8.1.76 is the latest alkimia release - preparing for 8.2, which will be 
required by KMM 5.2.  (Yes, the numbering can get confusing.)  In fact, 
I'd ask where you got that KMM requires alkimia 6?  I think it actually 
requires 8.1.72. (I've got my builds automated (Gentoo linux) so I don't 
know the exact versions being used for builds from master.


Have you tried simply building alkimia from master branch against Qt5/KDE5?

Jack


Re: building from master branch

2024-09-17 Thread Jeremy Whiting via KMyMoney-devel
I got it from cmake error when I tried to build with
kde-builder/kdesrc-build:

CMake Error at CMakeLists.txt:165 (find_package):
 By not providing "FindLibAlkimia6.cmake" in CMAKE_MODULE_PATH this project
 has asked CMake to find a package configuration file provided by
 "LibAlkimia6", but CMake did not find one.

 Could not find a package configuration file provided by "LibAlkimia6"
 (requested version 8.1.72) with any of the following names:

   LibAlkimia6Config.cmake
   libalkimia6-config.cmake

 Add the installation prefix of "LibAlkimia6" to CMAKE_PREFIX_PATH or set
 "LibAlkimia6_DIR" to a directory containing one of the above files.  If
 "LibAlkimia6" provides a separate development package or SDK, be sure it
 has been installed.


I didn't look close, but it looks like it's trying to build with kf5/qt5
indeed. I have libalkimia 8.1.2 from arch packages, but I guess that's a
long way behind 8.1.72...

When I tried to build alkimia from master it fails because it can't find
Plasma when looking for KF6. Ah, that's likely because when I build things
with kde-builder it's trying to builf qt6/kf6 by default. And there doesn't
seem to be a KF6Plasma.

Here's the patch I added on alkimia to try to build it. but of course it
fails because of the KNewStuff changes (No more EntryInternal anywhere,
which alkimia is subclassing).

So I guess the way to build currently is to use Qt5/KF5 until alkimia gets
fixed up/ported to KF6?


On Tue, Sep 17, 2024 at 12:10 PM Jack Ostroff via KMyMoney-devel <
kmymoney-devel@kde.org> wrote:

> On 9/17/24 12:42 PM, Jeremy Whiting via KMyMoney-devel wrote:
>
> Hello,
>
> How does one currently build kmymoney from master branch? I've been trying
> to sort it out myself, but have hit some walls. Here are my questions.
>
> 1. KMymoney master branch depends on alkimia 6, but alkimia master branch
> seems to still be Qt5/KF5 based. Where would I get alkimia6 from?
> 2. Trying to build alkimia with some patches to find Plasma since KF6
> Plasma changed a bit it's unable to find KNSCore::EntryInternal. I imagine
> because that got deprecated in the kf5 -> kf6 transition, but I haven't
> been able to yet find a guide on porting stuff from KF5 to KF6 that
> mentions classes that got deprecated and what to use instead. Does such a
> guide exist?
>
> thanks for any pointers.
>
> BR,
> Jeremy
>
> Hopefully I'm not way off, but I believe if you build alkimia from its
> master branch, that will be fine for KMM from master.  Alkimia6 is actually
> already somewhat old (and doesn't depend on Qt/KDE6).  I think v8.1.76 is
> the latest alkimia release - preparing for 8.2, which will be required by
> KMM 5.2.  (Yes, the numbering can get confusing.)  In fact, I'd ask where
> you got that KMM requires alkimia 6?  I think it actually requires 8.1.72.
> (I've got my builds automated (Gentoo linux) so I don't know the exact
> versions being used for builds from master.
>
> Have you tried simply building alkimia from master branch against Qt5/KDE5?
>
> Jack
>
From 06cfd6350f46154106d31b7bfd95c14b22ce4cb1 Mon Sep 17 00:00:00 2001
From: Jeremy Whiting 
Date: Fri, 14 Jun 2024 10:42:23 -0600
Subject: [PATCH] WIP: Fix Qt6/KF6 build with KF6 6.1

---
 CMakeLists.txt  | 2 +-
 plasma/applets/ForeignCurrencies/CMakeLists.txt | 2 +-
 src/alknewstuffentry_p.h| 4 
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d0e5f0c..5e6be49 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -173,11 +173,11 @@ else()
 ${KF_NETWORK_COMPONENT}
 ${KF_NEWSTUFF_COMPONENT}
 IconThemes
-${PLASMA_COMPONENT}
 TextWidgets
 XmlGui
 )
 find_package(KF${QT_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS ${KF_PRIVATE_COMPONENTS} ${KF_PUBLIC_COMPONENTS})
+find_package(Plasma REQUIRED COMPONENTS ${PLASMA_COMPONENT})
 
 macro(ecm_add_executable)
 add_executable(${ARGN})
diff --git a/plasma/applets/ForeignCurrencies/CMakeLists.txt b/plasma/applets/ForeignCurrencies/CMakeLists.txt
index 6589405..1cd5cfe 100644
--- a/plasma/applets/ForeignCurrencies/CMakeLists.txt
+++ b/plasma/applets/ForeignCurrencies/CMakeLists.txt
@@ -1,5 +1,5 @@
 # Locate plasma_install_package macro.
-find_package(KF${QT_MAJOR_VERSION}Plasma REQUIRED)
+find_package(Plasma REQUIRED)
 
 set(APPLET_NAME org.wincak.foreigncurrencies2)
 
diff --git a/src/alknewstuffentry_p.h b/src/alknewstuffentry_p.h
index 4c2e40b..bd5db49 100644
--- a/src/alknewstuffentry_p.h
+++ b/src/alknewstuffentry_p.h
@@ -12,11 +12,15 @@
 #include "alkdebug.h"
 #include "alknewstuffentry.h"
 
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+#include 
+#else
 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
 #include 
 #else
 #include 
 #endif
+#endif
 
 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
 ALK_EXPORT QDebug operator<<(QDebug out, const KNSCore::EntryInternal &entry);
-- 
2.46.1



Re: building from master branch

2024-09-17 Thread Jack via KMyMoney-devel

On 2024.09.17 14:21, Jeremy Whiting wrote:
[snip .]

So I guess the way to build currently is to use Qt5/KF5 until alkimia  
gets fixed up/ported to KF6?


Yes, I would continue to build both alkimia and KMM against Qt5/KF5  
until they explicitly announce they have been ported to Qt6/KF6.


[snip .]


Re: building from master branch

2024-09-17 Thread Thomas Baumgart via KMyMoney-devel
On Dienstag, 17. September 2024 23:34:39 CEST Jack via KMyMoney-devel wrote:

> On 2024.09.17 14:21, Jeremy Whiting wrote:
> [snip .]
> 
> > So I guess the way to build currently is to use Qt5/KF5 until alkimia  
> > gets fixed up/ported to KF6?
> 
> Yes, I would continue to build both alkimia and KMM against Qt5/KF5  
> until they explicitly announce they have been ported to Qt6/KF6.

Yes, Alkimia and KMyMoney are currently only buildable on Qt5/KF5.
Once we have 5.2 released (I wish I had more time to work on it)
the next step is to port both to Qt6/KF6 (some of it is already
prepared but as you noticed, some more adjustments still need
to be hashed out).

> 
> [snip .]
> 
> 

-- 

Regards

Thomas Baumgart

-
Dear inventor of German: You forgot to define a translation for
'resize' (as verb). Please fix. -- Sebas Kügler
-


signature.asc
Description: This is a digitally signed message part.