Problem compiling kmymoney
Chris Tanner
christann404 at gmail.com
Sat Apr 1 19:14:16 UTC 2017
Hello,
I am trying to compile the latest (git / plasma 5) version of kmymoney
and it fails with the following:
[ 21%] Building CXX object
kmymoney/reports/CMakeFiles/reports.dir/querytable.cpp.o
/home/christanner/Work/Money/kmymoney/kmymoney/reports/querytable.cpp:
In member function ‘void reports::QueryTable::constructTotalRows()’:
/home/christanner/Work/Money/kmymoney/kmymoney/reports/querytable.cpp:511:87:
error: conversion from ‘QMap<QString, MyMoneyMoney>::iterator’ to
non-scalar type ‘QMap<QString, MyMoneyMoney>::const_iterator’ requested
QMap<QString, MyMoneyMoney>::const_iterator grandTotalGrp =
totalGroups[0].begin();
~~~~~~~~~~~~~~~~~~~~^~
/home/christanner/Work/Money/kmymoney/kmymoney/reports/querytable.cpp:512:49:
error: ‘bool QMap<K, V>::const_iterator::operator!=(const QMap<K,
V>::iterator&) const [with Key = QString; T = MyMoneyMoney]’ is private
within this context
while(grandTotalGrp != totalGroups[0].end()) {
^
In file included from /usr/include/qt5/QtCore/qvariant.h:47:0,
from /usr/include/qt5/QtGui/qevent.h:50,
from /usr/include/qt5/QtGui/QList:1,
from
/home/christanner/Work/Money/kmymoney/kmymoney/reports/querytable.h:32,
from
/home/christanner/Work/Money/kmymoney/kmymoney/reports/querytable.cpp:26:
/usr/include/qt5/QtCore/qmap.h:520:21: note: declared private here
inline bool operator!=(const iterator &o) const { return
operator!=(const_iterator(o)); }
^~~~~~~~
make[2]: *** [kmymoney/reports/CMakeFiles/reports.dir/build.make:207:
kmymoney/reports/CMakeFiles/reports.dir/querytable.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5426:
kmymoney/reports/CMakeFiles/reports.dir/all] Error 2
make: *** [Makefile:139: all] Error 2
This happens with both gcc and clang compilers.
I am running openmandriva vs 3.0 with plasma vs. 5.9.4.
Regards,
Chris
More information about the KMyMoney
mailing list