Errors Compiling KMM on Fedora 40

Brendan Coupe 3 at Coupe7.com
Tue Oct 22 00:41:05 BST 2024


I noticed that there was at least one change that may have affected my 
compiling error this morning that might explain why it would compile 
this afternoon.

On 10/21/24 12:44, Thomas Baumgart via KMyMoney-devel wrote:
> 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.
>
> [...]
>
-- 
**
*Brendan Coupe*
*3 at Coupe7.com*




More information about the KMyMoney-devel mailing list