QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1587|回复: 3

redhat AS3-3 编译qqhacker的时候出的错

[复制链接]
发表于 2005-7-20 16:19:09 | 显示全部楼层 |阅读模式
make  all-recursive
make[1]: Entering directory `/root/eva/qqhacker'
Making all in doc
make[2]: Entering directory `/root/eva/qqhacker/doc'
Making all in .
make[3]: Entering directory `/root/eva/qqhacker/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/eva/qqhacker/doc'
Making all in en
make[3]: Entering directory `/root/eva/qqhacker/doc/en'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/eva/qqhacker/doc/en'
make[2]: Leaving directory `/root/eva/qqhacker/doc'
Making all in po
make[2]: Entering directory `/root/eva/qqhacker/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/eva/qqhacker/po'
Making all in src
make[2]: Entering directory `/root/eva/qqhacker/src'
Making all in libeva
make[3]: Entering directory `/root/eva/qqhacker/src/libeva'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/eva/qqhacker/src/libeva'
Making all in help
make[3]: Entering directory `/root/eva/qqhacker/src/help'
Making all in in
make[4]: Entering directory `/root/eva/qqhacker/src/help/in'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/eva/qqhacker/src/help/in'
Making all in out
make[4]: Entering directory `/root/eva/qqhacker/src/help/out'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/eva/qqhacker/src/help/out'
make[4]: Entering directory `/root/eva/qqhacker/src/help'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/eva/qqhacker/src/help'
make[3]: Leaving directory `/root/eva/qqhacker/src/help'
make[3]: Entering directory `/root/eva/qqhacker/src'
source='qqhacker.cpp' object='qqhacker.o' libtool=no \
depfile='.deps/qqhacker.Po' tmpdepfile='.deps/qqhacker.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o qqhacker.o `test -f 'qqhacker.cpp' || echo './'`qqhacker.cpp
In file included from qqhacker.cpp:30:
mainwindow.h:27: syntax error before `{' token
mainwindow.h:28: virtual outside class declaration
mainwindow.h:28: non-member function `const char* className()' cannot have `
   const' method qualifier
mainwindow.h:28: virtual outside class declaration
mainwindow.h:28: virtual outside class declaration
mainwindow.h:28: virtual outside class declaration
mainwindow.h:28: virtual outside class declaration
mainwindow.h: In function `QObject* qObject()':
mainwindow.h:28: invalid use of `this' in non-member function
mainwindow.h: At global scope:
mainwindow.h:28: syntax error before `private'
mainwindow.h:32: destructors must be member functions
mainwindow.h:35: syntax error before `protected'
mainwindow.h:47: syntax error before `private'
mainwindow.h:74: syntax error before `private'
mainwindow.h:85: syntax error before `}' token
qqhacker.cpp: In constructor `QQHacker::QQHacker()':
qqhacker.cpp:64: syntax error before `(' token
qqhacker.cpp:65: no matching function for call to `QQHacker::setCentralWidget(
   MainWindow*&)'
/usr/lib/qt-3.1/include/qmainwindow.h:78: candidates are: virtual void
   QMainWindow::setCentralWidget(QWidget*)
qqhacker.cpp:66: no matching function for call to `QObject::connect(
   MainWindow*&, const char[25], const char[30])'
/usr/lib/qt-3.1/include/qobject.h:116: candidates are: static bool
   QObject::connect(const QObject*, const char*, const QObject*, const char*)
/usr/lib/qt-3.1/include/qobject.h:227:                 bool
   QObject::connect(const QObject*, const char*, const char*) const
/usr/lib/qt-3.1/include/qstringlist.h: At top level:
mainwindow.h:28: warning: `bool qt_static_property(QObject*, int, int,
   QVariant*)' declared `static' but never defined
mainwindow.h:28: warning: `QMetaObject* staticMetaObject()' declared `static'
   but never defined
mainwindow.h:28: warning: `QString tr(const char*, const char*)' declared
   `static' but never defined
mainwindow.h:28: warning: `QString trUtf8(const char*, const char*)' declared
   `static' but never defined
make[3]: *** [qqhacker.o] Error 1
make[3]: Leaving directory `/root/eva/qqhacker/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/eva/qqhacker/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/eva/qqhacker'
make: *** [all] Error 2
发表于 2005-7-20 16:25:09 | 显示全部楼层
我等下帮你详细看一下代码。 你先试试Qt 3.3.3 应该没有问题。
不好意思,正忙一点事情。
回复

使用道具 举报

发表于 2005-7-20 18:20:25 | 显示全部楼层
看情况,你编译时,没有把ui文件转成h和cpp啊

你编译的错误应该不止上面说的吧?

出现这个的原因应该是qt库太低。 可能那个ui文件都没发转。
回复

使用道具 举报

发表于 2005-7-20 23:31:09 | 显示全部楼层
应该是库的版本问题,等我升级了3.3.3再试一次
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 02:25 , Processed in 0.038433 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表