KDevelop 3.4.1 build error Linux/MIPS

Sunil Amitkumar Janki devel.sjanki at gmail.com
Sun Jul 22 16:35:38 UTC 2007


Please excuse me for cross-posting to kdevelop-devel, but
nobody seems to read kdevelop-bugs so I have reposted to
this mailing list:


I have ported Slackware 12.0 to the Loongson processor and
have tried to build KDevelop many times without success. I
even reinstalled my system from scratch yesterday to no avail.

The system includes gcc 4.1.2, glibc 2.5 and KDE 3.5.7 which
have been compiled and run fine. I have not managed to compile
kdebindings yet because of the small amount of RAM in the system.

The error I am getting is the the following:

> Making all in editor
> make[4]: Entering directory `/tmp/kdevelop-3.4.1/src/profileengine/editor'
> rm -rf profileeditorbase.h;
> rm -rf addprofilewidget.h;
> /usr/lib/qt/bin/moc ./profileeditor.h -o profileeditor.moc
> /usr/lib/qt/bin/uic -L /usr/lib/kde3/plugins/designer -nounload 
> ./profileeditorbase.ui | /usr/bin/perl -pi -e "s,public QWizard,public 
> KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> 
> profileeditorbase.h ;
> /usr/lib/qt/bin/uic -L /usr/lib/kde3/plugins/designer -nounload 
> ./addprofilewidget.ui | /usr/bin/perl -pi -e "s,public QWizard,public 
> KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> 
> addprofilewidget.h ;
> if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib 
> -I../../../lib/external_interfaces -I../../../lib/interfaces 
> -I../../../lib/util -I../../../lib/widgets 
> -I../../../src/profileengine/lib -I../../../lib/structure 
> -I/usr/lib/qt/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG 
> -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute 
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common 
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
> -DQT_NO_TRANSLATION  -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o 
> main.o main.cpp; \
>         then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f 
> ".deps/main.Tpo"; exit 1; fi
> /usr/lib/qt/bin/moc addprofilewidget.h -o addprofilewidget.moc
> if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ 
> -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib 
> -I../../../lib/external_interfaces -I../../../lib/interfaces 
> -I../../../lib/util -I../../../lib/widgets 
> -I../../../src/profileengine/lib -I../../../lib/structure 
> -I/usr/lib/qt/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG 
> -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute 
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common 
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
> -DQT_NO_TRANSLATION  -MT profileeditor.lo -MD -MP -MF 
> ".deps/profileeditor.Tpo" -c -o profileeditor.lo profileeditor.cpp; \
>         then mv -f ".deps/profileeditor.Tpo" 
> ".deps/profileeditor.Plo"; else rm -f ".deps/profileeditor.Tpo"; exit 
> 1; fi
> /usr/lib/qt/bin/moc profileeditorbase.h -o profileeditorbase.moc
> rm -f profileeditorbase.cpp
> echo '#include <kdialog.h>' > profileeditorbase.cpp
> rm -f addprofilewidget.cpp
> echo '#include <klocale.h>' >> profileeditorbase.cpp
> echo '#include <kdialog.h>' > addprofilewidget.cpp
> /usr/lib/qt/bin/uic -L /usr/lib/kde3/plugins/designer -nounload -tr 
> tr2i18n -i profileeditorbase.h ./profileeditorbase.ui > 
> profileeditorbase.cpp.temp ; ret=$?; \
>         /usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" 
> profileeditorbase.cpp.temp | /usr/bin/perl -pe "s,tr2i18n( \"\"\, \"\" 
> ),QString::null,g" | /usr/bin/perl -pe 
> "s,image([0-9][0-9]*)_data,img\$1_profileeditorbase,g" | /usr/bin/perl 
> -pe "s,: QWizard\(,: KWizard(,g" >> profileeditorbase.cpp ;\
>         rm -f profileeditorbase.cpp.temp ;\
>         if test "$ret" = 0; then echo '#include 
> "profileeditorbase.moc"' >> profileeditorbase.cpp; else rm -f 
> profileeditorbase.cpp ; exit $ret ; fi
> echo '#include <klocale.h>' >> addprofilewidget.cpp
> /usr/lib/qt/bin/uic -L /usr/lib/kde3/plugins/designer -nounload -tr 
> tr2i18n -i addprofilewidget.h ./addprofilewidget.ui > 
> addprofilewidget.cpp.temp ; ret=$?; \
>         /usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" 
> addprofilewidget.cpp.temp | /usr/bin/perl -pe "s,tr2i18n( \"\"\, \"\" 
> ),QString::null,g" | /usr/bin/perl -pe 
> "s,image([0-9][0-9]*)_data,img\$1_addprofilewidget,g" | /usr/bin/perl 
> -pe "s,: QWizard\(,: KWizard(,g" >> addprofilewidget.cpp ;\
>         rm -f addprofilewidget.cpp.temp ;\
>         if test "$ret" = 0; then echo '#include 
> "addprofilewidget.moc"' >> addprofilewidget.cpp; else rm -f 
> addprofilewidget.cpp ; exit $ret ; fi
> profileeditor.h:30: error: expected class-name before '{' token
> main.cpp: In function 'int main(int, char**)':
> main.cpp:41: error: 'class ProfileEditor' has no member named 'show'
> main.cpp:42: error: no matching function for call to 
> 'KApplication::setMainWidget(ProfileEditor*)'
> /usr/lib/qt/include/qapplication.h:119: note: candidates are: virtual 
> void QApplication::setMainWidget(QWidget*)
> make[4]: *** [main.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[4]: Leaving directory `/tmp/kdevelop-3.4.1/src/profileengine/editor'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/tmp/kdevelop-3.4.1/src/profileengine'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/kdevelop-3.4.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/kdevelop-3.4.1'
> make: *** [all] Error 2

I have looked into the source code and class ProfileEditor has no
member show indeed nor does any of the superclasses define it
and QWidget defines it as virtual void.

I don't know where to look for the solution but maybe someone
knows how to solve this bug and get KDevelop running on Slackware
MIPS.

Kind regards,
Sunil Janki







More information about the KDevelop-devel mailing list