• 6387阅读
  • 7回复

请教安装qpe1.4.0遇到的问题。qte版本3.0.4 [复制链接]

上一主题 下一主题
离线wuweisun
 

只看楼主 倒序阅读 楼主  发表于: 2006-05-05
我把qt-embedded-free-3.0.4.tar.gz和qpe-1.4.0.tar.gz两个文件夹都解压到/qte的目录下后,export QTDIR=/qte/qt-embedded-free-3.0.4并export QPEDIR=/qte/qpe1.4.0,以及export LD_LIBRARY_PATH=/qte/qt-embedded-free-3.0.4/lib:$LD_LIBRARY_PATH,之后把$QPEDIR/qt/*.h拷贝到$QTDIR/src/tools目录下。之后在$QTDIR目录下make clean,
./configure -qconfig qpe,最后make。在./configure的过程中遇到了一个WARNING,说找不到./src/moc/release-emb-x86/allmoc.cpp。这个文件和目录我找了半天没找到。不过只是个WARNING,没注意,后面的make之后,倒也成功完成了。不过在后面进入qpe的编译的时候遇到error,不知道和这个有没有关系。
  编译qpe的过程如下。先进入qpe的目录,然后make clean,然后./configure,提示直接make,于是就make了,报的错误如下:

[root@localhost qpe-1.4.0]# make
make -C library -f Makefile
make[1]: Entering directory `/qte/qpe-1.4.0/library'
g++ -c -I/qte/qt-embedded-free-3.0.4/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o calendar.o calendar.cpp
/qte/qt-embedded-free-3.0.4/bin/moc global.cpp -o global.moc
g++ -c -I/qte/qt-embedded-free-3.0.4/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o global.o global.cpp
g++ -c -I/qte/qt-embedded-free-3.0.4/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o organizer.o organizer.cpp
g++ -c -I/qte/qt-embedded-free-3.0.4/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o xmlreader.o xmlreader.cpp
g++ -c -I/qte/qt-embedded-free-3.0.4/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o mimetype.o mimetype.cpp
g++ -c -I/qte/qt-embedded-free-3.0.4/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o menubutton.o menubutton.cpp
menubutton.cpp:105: default argument given for parameter 2 of `void
  MenuButton::insertItem(const QIconSet&, const QString& = QString::null)'
menubutton.h:38: after previous specification in `void
  MenuButton::insertItem(const QIconSet&, const QString& = QString::null)'
make[1]: *** [menubutton.o] Error 1
make[1]: Leaving directory `/qte/qpe-1.4.0/library'
make: *** [library] Error 2

不知如何解决,新手,请各位大虾帮忙,谢谢。急
[ 此贴被XChinux在2006-05-07 22:37重新编辑 ]
离线wuweisun

只看该作者 1楼 发表于: 2006-05-08
没有大虾指点一下吗?是不是编译器的原因?
离线shiroki

只看该作者 2楼 发表于: 2006-05-10
把menubutton.cpp:105: default argument given for parameter 2 of `void
MenuButton::insertItem(const QIconSet&, const QString& = QString::null)'

改成
MenuButton::insertItem(const QIconSet&, const QString& )

另外, 你的qte版本明显和qtopia版本不对应阿, 能用吗
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线wuweisun

只看该作者 3楼 发表于: 2006-05-11
这个自己已经尝试改过了,但还是不断有其他的错误。请问一下,qte3.0.4和qpe1.4.0分别对应哪个版本?
离线shiroki

只看该作者 4楼 发表于: 2006-05-11
你的qtopia版本也太老了, 没地儿找阿
谁知道qtopia1.4用什么qte版本?
知道的回一个
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线liuxianyu
只看该作者 5楼 发表于: 2007-10-19
这两个版本是可以一起编译的,我编过
离线liuxianyu
只看该作者 6楼 发表于: 2007-10-19
但还是建议你用qte2和qtopia2,这是最容易编的
离线gaoyu7780109
只看该作者 7楼 发表于: 2009-05-08
Qtopia1.7.0 / Qte 2.3.7
Qtopia2.1.1 / Qte 2.3.10
Qtopia2.1.2 / Qte 2.3.11
Qtopia2.2.0 / Qte 2.3.12 (包含在qtopia2.2源码包中)
快速回复
限100 字节
 
上一个 下一个