[Kmymoney] KMyMoney 4.6.3 fails to compile under KDE-4.10.2

Dr.-Ing. Edgar Alwers edgaralwers at gmx.de
Wed May 1 19:19:09 UTC 2013


Hi all,

I am buildiing a new BLFS System with KDE-4.10.2, Kernel 3.8.5, cmake version 
2.8.10.2 , GNU Make 3.82.
Actually, I am trying to build the KMyMoney-4.6.3 system. All dependencies are 
accomplished, cmake delivers no errors, everything seems to be perfect.  
However, "make" exits with an error::

quote
-------------------
[ 37%] Building CXX object 
kmymoney/mymoney/CMakeFiles/kmm_mymoney.dir/mymoneymoney.cpp.o
/sources_kde/kmymoney-4.6.3/kmymoney/mymoney/mymoneymoney.cpp: In member 
function ‘QString MyMoneyMoney::formatMoney(const QString&, int, bool) const’:
/sources_kde/kmymoney-4.6.3/kmymoney/mymoney/mymoneymoney.cpp:167:52: error: 
conversion from ‘__gmp_expr<__mpq_struct [1], 
__gmp_binary_expr<__gmp_expr<__mpq_struct [1], 
__gmp_binary_expr<__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, 
__gmp_expr<__mpq_struct [1], __mpq_struct [1]>, __gmp_binary_minus> >, 
__gmp_expr<__mpz_struct [1], __mpz_struct [1]>, __gmp_binary_multiplies> >’ to 
non-scalar type ‘mpz_class {aka __gmp_expr<__mpz_struct [1], __mpz_struct 
[1]>}’ requested
   mpz_class right = (valueRef() - mpq_class(left)) * denom;
                                                    ^
make[2]: *** [kmymoney/mymoney/CMakeFiles/kmm_mymoney.dir/mymoneymoney.cpp.o] 
Error 1
make[1]: *** [kmymoney/mymoney/CMakeFiles/kmm_mymoney.dir/all] Error 2

-------------------
unquote

I built gmp-5.1.1 also without issues, if the error message is refering to 
this programm. I really cannot explain what is happening and I am runninng out 
of ideas. I have already build KMM-4.6.3 in several other machines, running 
older versions of BLFS and KDE ( 4.8 ). Am I perhaps mixing versions which are 
not compatible ?

I need of course KMM in my working partition. A fast workaround could be to 
copy KMM from my other Partition in the box, but exactly what should I 
transfer ?

Any help very appreciated, thanks in advance
Edgar
-- 
Dr.-Ing. Edgar Alwers <edgaralwers at gmx.de>
GPG Key ID:AD5C6F70


More information about the KMyMoney mailing list