[MassifVisualizer] Having trouble installing massif-visualizer

Milian Wolff mail at milianw.de
Mon Sep 23 20:32:22 UTC 2013


On Thursday 05 September 2013 21:56:21 Amy Hutchinson wrote:
> [  0%] Built target mv-kdchart_automoc
> Scanning dependencies of target mv-kdchart
> [  1%] Building CXX object
> kdchart/src/CMakeFiles/mv-kdchart.dir/mv-kdchart_automoc.o Linking CXX
> static library ../../lib/libmv-kdchart.a
> [ 79%] Built target mv-kdchart
> [ 79%] Built target mv-massifdata_automoc
> [ 80%] Building CXX object massifdata/CMakeFiles/mv-massifdata.dir/util.o
> /home/ahutchinson/massif/massif-visualizer/massifdata/util.cpp: In function
> 'QString Massif::prettyCost(quint64)':
> /home/ahutchinson/massif/massif-visualizer/massifdata/util.cpp:42: error:
> no matching function for call to 'KLocale::formatByteSize(quint64&, int&)'
> /usr/include/kde4/KDE/../klocale.h:479: note: candidates are: QString
> KLocale::formatByteSize(double) const make[2]: ***
> [massifdata/CMakeFiles/mv-massifdata.dir/util.o] Error 1 make[1]: ***
> [massifdata/CMakeFiles/mv-massifdata.dir/all] Error 2
> 
> When I look at source for kde4 klocale.h on  kde.org it shows the version I
> have installed with KLocale::formatByteSize(double), not (quint64&, int&).
> 
> What do I need to do to get this thing installed?

Hey,

what architecture is that on? Linux? 32bit? Does this help:

diff --git a/massifdata/util.cpp b/massifdata/util.cpp
index 10ec354..8db35df 100644
--- a/massifdata/util.cpp
+++ b/massifdata/util.cpp
@@ -39,7 +39,7 @@ QString prettyCost(quint64 cost)
     Q_ASSERT(KGlobal::config());
     KConfigGroup conf = KGlobal::config()->group(QLatin1String("Settings"));
     int precision = conf.readEntry(QLatin1String("prettyCostPrecision"), 1);
-    return KGlobal::locale()->formatByteSize(cost, precision);
+    return KGlobal::locale()->formatByteSize(static_cast<double>(cost), 
precision);
 }
 
 void shortenTemplates(QByteArray& function)

?
-- 
Milian Wolff
mail at milianw.de
http://milianw.de


More information about the Massif-visualizer mailing list