ily961 发表于 2005-8-14 21:31:21

求助:安装qt/e编译qtopia时出错了

小弟学习linux没几天,现在装 qtopia 时编译qtopia时出错了。
请帮小弟看看。


代码如下:
# cd qtopia-free-1.7.0
# export QTDIR=$QTEDIR
# export QPEDIR=$PWD
# export PATH=$QPEDIR/bin:$PATH
# cd 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.

# make
make -C libraries/qtopia
make: Entering directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make: *** 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: Leaving directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make: Entering directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make: *** 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: *** [.obj/linux-generic-g++//calendar.o] Error 1
make: Leaving directory `/home/zhouzhou/qtopia-free-1.7.0/src/libraries/qtopia'
make: *** Error 2

ily961 发表于 2005-8-15 23:16:19

各位大侠,知道的麻烦说一下哈。。

ironner 发表于 2006-9-18 21:46:25

我也遇到这个问题了是传说中的JPEG库没装吗

kylezk 发表于 2006-9-20 12:20:50

你在什么系统上编译的啊

wolfdodo 发表于 2006-9-20 15:24:06

按照这个流程,1.7还不是太难编过去。http://www.qiliang.net/20050908.html
qtopia2.2在pc上更容易编过去。

cavendish 发表于 2006-10-17 22:37:43

建议2.2.0
http://www.qtopia.org.cn/phpBB2/viewtopic.php?t=134
页: [1]
查看完整版本: 求助:安装qt/e编译qtopia时出错了