|
小弟学习 linux没几天,现在装 qtopia 时编译qtopia时出错了。
请帮小弟看看。
代码如下:
[root@localhost zhouzhou]# cd qtopia-free-1.7.0
[root@localhost qtopia-free-1.7.0]# export QTDIR=$QTEDIR
[root@localhost qtopia-free-1.7.0]# export QPEDIR=$PWD
[root@localhost qtopia-free-1.7.0]# export PATH=$QPEDIR/bin:$PATH
[root@localhost qtopia-free-1.7.0]# cd src
[root@localhost src]# ./configure
grep: /include/qglobal.h: No such file or directory
QPE is now configured for building. Just run "make".
To reconfigure, run make clean and configure.
[root@localhost src]# make
make -C libraries/qtopia
make[1]: Entering directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make[1]: *** Warning: File `qtopia.pro' has modification time in the future (2003-06-03 20:56:41 > 2001-01-01 01:11:36.539789)
cd /home/zhouzhou/qtopia-free-1.7.0/src; ./configure -make libraries/qtopia
grep: /include/qglobal.h: No such file or directory
QPE is now configured for building. Just run "make".
To reconfigure, run make clean and configure.
make[1]: Leaving directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make[1]: Entering directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make[1]: *** Warning: File `qtopia.pro' has modification time in the future (2003-06-03 20:56:41 > 2001-01-01 01:11:37.18862)
cd /home/zhouzhou/qtopia-free-1.7.0/src; ./configure -make libraries/qtopia
grep: /include/qglobal.h: No such file or directory
QPE is now configured for building. Just run "make".
To reconfigure, run make clean and configure.
/bin/uic passwordbase_p.ui -o ./passwordbase_p.h
/bin/uic categoryeditbase_p.ui -o ./categoryeditbase_p.h
g++ -c -I/home/zhouzhou/qtopia-free-1.7.0/include -I/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -fPIC -DQTOPIA_APP_INTERFACE -DQTOPIA_WIN32PROCESS_SUPPORT -I.moc/linux-generic-g++/ -I/home/zhouzhou/qtopia-free-1.7.0/include -o .obj/linux-generic-g++//calendar.o calendar.cpp
In file included from calendar.h:23,
from calendar.cpp:20:
/home/zhouzhou/qtopia-free-1.7.0/include/qtopia/qpeglobal.h:25:21: qglobal.h: No such file or directory
In file included from calendar.cpp:20:
calendar.h:24:21: qstring.h: No such file or directory
calendar.h:25:24: qvaluelist.h: No such file or directory
calendar.h:26:23: qdatetime.h: No such file or directory
In file included from calendar.cpp:20:
calendar.h:44: ISO C++ forbids declaration of `QValueList' with no type
calendar.h:44: template-id `QValueList<Calendar::Day>' used as a declarator
calendar.h:44: parse error before `(' token
calendar.h:46: ISO C++ forbids declaration of `QString' with no type
calendar.h:46: parse error before `(' token
calendar.h:47: ISO C++ forbids declaration of `QString' with no type
calendar.h:47: parse error before `(' token
calendar.h:50: `QDate' was not declared in this scope
calendar.h:50: ISO C++ forbids declaration of `QValueList' with no type
calendar.h:50: template-id `QValueList<<expression error> >' used as a
declarator
calendar.h:50: parse error before `(' token
calendar.h:52: ISO C++ forbids declaration of `QDate' with no type
calendar.h:52: parse error before `(' token
calendar.h:55: ISO C++ forbids declaration of `QDate' with no type
calendar.h:55: parse error before `(' token
calendar.h:58: parse error before `&' token
calendar.h:62: parse error before `&' token
calendar.h:65: parse error before `&' token
calendar.h:67: ISO C++ forbids declaration of `QDate' with no type
calendar.h:67: parse error before `(' token
calendar.h:68: ISO C++ forbids declaration of `QDate' with no type
calendar.h:68: parse error before `(' token
calendar.h:50: duplicate member `Calendar::QValueList'
calendar.h:47: duplicate member `Calendar::QString'
calendar.h:55: duplicate member `Calendar::QDate'
calendar.h:67: duplicate member `Calendar::QDate'
calendar.h:68: duplicate member `Calendar::QDate'
calendar.h: In constructor `Calendar::Day::Day()':
calendar.h:36: `FALSE' undeclared (first use this function)
calendar.h:36: (Each undeclared identifier is reported only once for each
function it appears in.)
calendar.cpp:22:23: qdatetime.h: No such file or directory
calendar.cpp: At global scope:
calendar.cpp:36: syntax error before `::' token
calendar.cpp:46: syntax error before `::' token
calendar.cpp:53: syntax error before `::' token
calendar.cpp:57: syntax error before `.' token
calendar.cpp:58: `temp' was not declared in this scope
calendar.cpp:60: 'QDate' is used as a type, but is not defined as a type.
calendar.cpp:61: `Day' was not declared in this scope
calendar.cpp:61: 'QValueList' is used as a type, but is not defined as a type.
calendar.cpp:63: parse error before `if'
calendar.cpp:72: parse error before `;' token
calendar.cpp:72: syntax error before `++' token
calendar.cpp:76: syntax error before `<=' token
calendar.cpp:76: syntax error before `++' token
calendar.cpp:78: ISO C++ forbids declaration of `i' with no type
calendar.cpp:78: redefinition of `int i'
calendar.cpp:59: `int i' previously declared here
calendar.cpp:79: parse error before `while'
{standard input}: Assembler messages:
{standard input}:20: Error: symbol `i' is already defined
make[1]: *** [.obj/linux-generic-g++//calendar.o] Error 1
make[1]: Leaving directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make: *** [libraries/qtopia] Error 2 |
|