Errors Compiling KMM on Fedora 40
Thomas Baumgart
thb at net-bembel.de
Mon Oct 21 19:44:55 BST 2024
Brendan,
On Montag, 21. Oktober 2024 19:04:23 CEST Brendan Coupe via KMyMoney-devel wrote:
> I need to move on from Fedora 39 in the next month or two since it will
> no longer get updates. I have setup a test system that is running Fedora
> 40 and i have attempted to compile both the master branch and the 5.1
> branch on it. They both compile, install and run properly on Fedora 39.
> My data file is XML based and encrypted.
>
> Master Branch:
>
> ==============
>
> Compiling KMM fails about half way through:
>
> [ 50%] Automatic MOC for target kmmreport-export
> [ 50%] Built target kmmreport-export_autogen
> [ 51%] Building CXX object
> tools/CMakeFiles/kmmreport-export.dir/kmmreport-export.cpp.o
> [ 51%] Building CXX object
> tools/CMakeFiles/kmmreport-export.dir/kmmreport-export_autogen/mocs_compilation.cpp.o
> [ 51%] Built target xmlstorage
> [ 51%] Built target mymoneystoragenames-test
> [ 51%] Linking CXX shared library ../../lib/libkmm_models.so
> /usr/local/src/kmm/kmymoney-2024.10.21-10.11.34-GIT-MASTER/tools/kmmreport-export.cpp:26:10:
> fatal error: objectinfotable.h: No such file or directory
> 26 | #include "objectinfotable.h"
> | ^~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[2]: *** [tools/CMakeFiles/kmmreport-export.dir/build.make:96:
> tools/CMakeFiles/kmmreport-export.dir/kmmreport-export.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:2287:
> tools/CMakeFiles/kmmreport-export.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 51%] Built target kmm_models
> make: *** [Makefile:146: all] Error 2
Make sure you have
./kmymoney/plugins/views/reports/core/objectinfotable.h
in your directory and probably re-run cmake in a complete empty build
directory. tools/CMakeLists.txt reference reports as a dependency and
therefore, the .../core directory should be part of the include paths
the compiler searches. To make sure that is the case, you can run
make VERBOSE=1
which prints the executed commands to the console. Adding -j1 to the
make arguments helps to see all of them one at a time.
>
> 5.1 Branch:
>
> ==========
>
> Compiling and installation complete. When I run KMM I get the following
> error in a popup window:
>
> Cannot open file as requested
In contrast to master it does not dump the gpg2 location information. So
we better get the master version to compile and see what it spits out.
[...]
--
Regards
Thomas Baumgart
-------------------------------------------------------------
Computer science terms (#095): PGP-Keysigning-Party
The cult of sitting together and collectively mumbling magic numbers.
-- Gert Doering
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20241021/27404d8a/attachment.sig>
More information about the KMyMoney-devel
mailing list