[MassifVisualizer] [Bug 305272] New: won't compile on debian squeeze

Jan Spurny jspurny at seznam.cz
Thu Aug 16 16:02:09 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=305272

            Bug ID: 305272
          Severity: critical
           Version: master
          Priority: NOR
          Assignee: massif-visualizer at kde.org
           Summary: won't compile on debian squeeze
    Classification: Unclassified
                OS: Linux
          Reporter: jspurny at seznam.cz
          Hardware: Other
            Status: UNCONFIRMED
         Component: general
           Product: massif-visualizer

after make:

1)
/home/jspurny/src-other/massif-visualizer/app/mainwindow.cpp:170: error:
‘Monospace’ is not a member of ‘QFont’

The offending line is:
 "font.setStyleHint(QFont::Monospace);"
so I changed it to:
 "font.setStyleHint(QFont::TypeWriter);"

this file now compiles, but there's another bug:

2) 
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:27:25: error:
QElapsedTimer: No such file or directory
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp: In function
‘int main(int, char**)’:
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:49: error:
‘QElapsedTimer’ was not declared in this scope
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:49: error:
expected ‘;’ before ‘t’
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:50: error: ‘t’
was not declared in this scope

Now I'm lost.

Seems to me that I have a different kde/qt/whatever libraries/headers. CMake
should probably check for that and do not allow me to discover this when
compiling..


Reproducible: Always

Steps to Reproduce:
1. get git source:
 git clone git://anongit.kde.org/massif-visualizer
2. follow INSTALL instructions:
 mkdir build
 cd build
 cmake ..
 make

Actual Results:  
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:27:25: error:
QElapsedTimer: No such file or directory
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp: In function
‘int main(int, char**)’:
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:49: error:
‘QElapsedTimer’ was not declared in this scope
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:49: error:
expected ‘;’ before ‘t’
/home/jspurny/src-other/massif-visualizer/test/massifparser.cpp:50: error: ‘t’
was not declared in this scope
make[2]: *** [test/CMakeFiles/massifparser.dir/massifparser.o] Error 1
make[1]: *** [test/CMakeFiles/massifparser.dir/all] Error 2
make: *** [all] Error 2


Expected Results:  
no errors, working massif-visualizer

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Massif-visualizer mailing list