我是新手,我在make时出现这些错误,请大侠帮帮忙
[root@localhost root]# cd mywork
[root@localhost mywork]# ls
lily.cpp lily.h lily.pro lily.ui main.cpp Makefile
[root@localhost mywork]# make
Makefile:120: warning: overriding commands for target `moc_lily.cpp'
Makefile:117: warning: ignoring old commands for target `moc_lily.cpp'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/root/qt/include -o lily.o lily.cpp
In file included from lily.cpp:10:
lily.h:13:22: qvariant.h: 没有那个文件或目录
lily.h:14:21: qwidget.h: 没有那个文件或目录
In file included from lily.cpp:10:
lily.h:22: parse error before `{' token
lily.h:27: destructors must be member functions
lily.h:31: parse error before `protected'
lily.cpp:12:22: qvariant.h: 没有那个文件或目录
lily.cpp:13:25: qpushbutton.h: 没有那个文件或目录
lily.cpp:14:21: qlayout.h: 没有那个文件或目录
lily.cpp:15:22: qtooltip.h: 没有那个文件或目录
lily.cpp:16:24: qwhatsthis.h: 没有那个文件或目录
lily.cpp:22: `QWidget' was not declared in this scope
lily.cpp:22: `parent' was not declared in this scope
lily.cpp:22: parse error before `char'
lily.cpp:23: invalid use of undefined type `class test'
lily.h:21: forward declaration of `class test'
lily.cpp: In constructor `test::test(...)':
lily.cpp:23: `parent' undeclared (first use this function)
lily.cpp:23: (Each undeclared identifier is reported only once for each
function it appears in.)
lily.cpp:23: `name' undeclared (first use this function)
lily.cpp:23: `fl' undeclared (first use this function)
lily.cpp:23: class `test' does not have any field named `QWidget'
lily.cpp:26: `setName' undeclared (first use this function)
lily.cpp:28: invalid use of undefined type `struct QPushButton'
lily.h:19: forward declaration of `struct QPushButton'
lily.cpp:29: `QRect' undeclared (first use this function)
lily.cpp:30: `languageChange' undeclared (first use this function)
lily.cpp:31: `QSize' undeclared (first use this function)
lily.cpp:31: `minimumSizeHint' undeclared (first use this function)
lily.cpp:31: `resize' undeclared (first use this function)
lily.cpp: At global scope:
lily.cpp:38: invalid use of undefined type `class test'
lily.h:21: forward declaration of `class test'
lily.cpp:47: invalid use of undefined type `class test'
lily.h:21: forward declaration of `class test'
lily.cpp: In member function `void test::languageChange()':
lily.cpp:48: `tr' undeclared (first use this function)
lily.cpp:48: `setCaption' undeclared (first use this function)
make: *** [lily.o] Error 1
[root@localhost mywork]# echo $TMAKEPATH
/root/tmakepath
[root@localhost mywork]# echo $QTDIR
/root/qt
[root@localhost mywork]# echo $LD_LIBRARY_PATH
/root/qt/lib
[root@localhost mywork]#