At this stage I'm mostly interested in whether this is a bug in kprof or in my system setup.
In file included from /opt/kde2/include/ktmainwindow.h:25,
from kprof.h:32,
from main.cpp:36:
/opt/kde2/include/kmainwindow.h:94: base class `QMainWindow' has incomplete type
/opt/kde2/include/kmainwindow.h:122: type specifier omitted for parameter
/opt/kde2/include/kmainwindow.h:122: parse error before `='
/opt/kde2/include/kmainwindow.h:552: warning: base `KXMLGUIBuilder' with only non-default constructor
/opt/kde2/include/kmainwindow.h:552: warning: in class without a constructor
In file included from kprof.h:32,
from main.cpp:36:
/opt/kde2/include/ktmainwindow.h:60: type specifier omitted for parameter
/opt/kde2/include/ktmainwindow.h:60: parse error before `='
/opt/kde2/include/ktmainwindow.h:170: warning: base `KMainWindow' with only non-default constructor
/opt/kde2/include/ktmainwindow.h:170: warning: in class without a constructor
/opt/kde2/include/ktmainwindow.h: In method `void KTMainWindow::setView(QWidget *, bool = FALSE)':
/opt/kde2/include/ktmainwindow.h:88: `setCentralWidget' undeclared (first use this function)
/opt/kde2/include/ktmainwindow.h:88: (Each undeclared identifier is reported only once
/opt/kde2/include/ktmainwindow.h:88: for each function it appears in.)
/opt/kde2/include/ktmainwindow.h: In method `class QWidget * KTMainWindow::view() const':
/opt/kde2/include/ktmainwindow.h:95: `centralWidget' undeclared (first use this function)
/opt/kde2/include/ktmainwindow.h:95: warning: control reaches end of non-void function `KTMainWindow::view() const'
main.cpp: In function `int main(int, char **)':
main.cpp:64: no matching function for call to `KApplication::setMainWidget (KProfTopLevel *&)'
/usr/machine-local/qt/include/qapplication.h:123: candidates are: void QApplication::setMainWidget(QWidget *)
main.cpp:73: no matching function for call to `KProfTopLevel::show ()'
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/root/tmp/tmp/kprof-1.3/kprof'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/tmp/tmp/kprof-1.3/kprof'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tmp/tmp/kprof-1.3'
make: *** [all-recursive-am] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Qt 3, kde 2.2.1, gcc 2.95.3
At this stage I'm mostly interested in whether this is a bug in kprof or in my system setup.
In file included from /opt/kde2/include/ktmainwindow.h:25,
from kprof.h:32,
from main.cpp:36:
/opt/kde2/include/kmainwindow.h:94: base class `QMainWindow' has incomplete type
/opt/kde2/include/kmainwindow.h:122: type specifier omitted for parameter
/opt/kde2/include/kmainwindow.h:122: parse error before `='
/opt/kde2/include/kmainwindow.h:552: warning: base `KXMLGUIBuilder' with only non-default constructor
/opt/kde2/include/kmainwindow.h:552: warning: in class without a constructor
In file included from kprof.h:32,
from main.cpp:36:
/opt/kde2/include/ktmainwindow.h:60: type specifier omitted for parameter
/opt/kde2/include/ktmainwindow.h:60: parse error before `='
/opt/kde2/include/ktmainwindow.h:170: warning: base `KMainWindow' with only non-default constructor
/opt/kde2/include/ktmainwindow.h:170: warning: in class without a constructor
/opt/kde2/include/ktmainwindow.h: In method `void KTMainWindow::setView(QWidget *, bool = FALSE)':
/opt/kde2/include/ktmainwindow.h:88: `setCentralWidget' undeclared (first use this function)
/opt/kde2/include/ktmainwindow.h:88: (Each undeclared identifier is reported only once
/opt/kde2/include/ktmainwindow.h:88: for each function it appears in.)
/opt/kde2/include/ktmainwindow.h: In method `class QWidget * KTMainWindow::view() const':
/opt/kde2/include/ktmainwindow.h:95: `centralWidget' undeclared (first use this function)
/opt/kde2/include/ktmainwindow.h:95: warning: control reaches end of non-void function `KTMainWindow::view() const'
main.cpp: In function `int main(int, char **)':
main.cpp:64: no matching function for call to `KApplication::setMainWidget (KProfTopLevel *&)'
/usr/machine-local/qt/include/qapplication.h:123: candidates are: void QApplication::setMainWidget(QWidget *)
main.cpp:73: no matching function for call to `KProfTopLevel::show ()'
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/root/tmp/tmp/kprof-1.3/kprof'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/tmp/tmp/kprof-1.3/kprof'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tmp/tmp/kprof-1.3'
make: *** [all-recursive-am] Error 2
New machine, new linux distro - it's still uncompileable.
redwoodskogen:~/installations/kprof-1.3 # make
cd . && make -f admin/Makefile.common configure.in ;
make[1]: Entering directory `/root/installations/kprof-1.3'
make[1]: Leaving directory `/root/installations/kprof-1.3'
cd . && aclocal
cd . && automake --gnu --include-deps ./Makefile
cd . && perl admin/am_edit Makefile.in
cd . && autoconf
./aclocal.m4:652: error: m4_defn: undefined macro: _m4_divert_diversion
aclang.m4:173: AC_LANG_RESTORE is expanded from...
./aclocal.m4:652: the top level
make: *** [configure] Error 1
So I tried the make -f Makefile.cvs part:
*** Concatenating configure tests into acinclude.m4
*** Creating list of subdirectories in subdirs
*** Searching for subdirectories...
*** Retrieving configure tests needed by configure.in
*** Scanning for include statements
./aclocal.m4:652: error: m4_defn: undefined macro: _m4_divert_diversion
aclang.m4:173: AC_LANG_RESTORE is expanded from...
./aclocal.m4:652: the top level
autoconf: tracing failed
make[1]: *** [cvs] Error 1
make: *** [all] Error 2