Bug 509512

Summary: Problems building qt6 version of Kmymoney
Product: [Applications] kmymoney Reporter: Christopher Tanner <christann404>
Component: buildsystemAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: OpenMandriva   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Files describiing the system

Description Christopher Tanner 2025-09-15 10:58:47 UTC
Created attachment 184960 [details]
Files describiing the system

I am trying to build the qt6 version of kmymoney from the Git repository on a system running Plasma6 and am getting the error:

Building CXX object kmymoney/plugins/woob/dialogs/CMakeFiles/woob_dialogs.dir/accountsettings.cpp.o
/home/christanner/Work/Money/kmymoney/kmymoney/plugins/sqlcipher/qsql_sqlite.cpp:37:10: fatal error: 'QtSql/private/qsqlcachedresult_p.h' file not found
   37 | #include <QtSql/private/qsqlcachedresult_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Thomas Baumgart 2025-09-15 13:57:01 UTC
Looks like you are missing a -devel package which contains this file. On my openSUSE 16 it is called qt6-sql-private-devel-6.9.1-160000.2.2.x86_64.
Comment 2 Christopher Tanner 2025-09-16 22:37:02 UTC
Thanks for this. I found the missing file. 
Chris
Comment 3 Thomas Baumgart 2025-09-23 06:37:41 UTC
Git commit 6c4607856dcd15fc12f7366e4c3356aed70ff24f by Thomas Baumgart, on behalf of Nicolas Fella.
Committed on 23/09/2025 at 05:43.
Pushed by tbaumgart into branch 'master'.

Add missing find_package for QtSqlPrivate

Since Qt 6.10 the private parts are split into a separate CMake package

M  +2    -0    .gitlab-ci.yml
M  +1    -1    .kde-ci.yml
M  +4    -0    CMakeLists.txt

https://invent.kde.org/office/kmymoney/-/commit/6c4607856dcd15fc12f7366e4c3356aed70ff24f