标题:qtopia编译出错
作者:cyzxl
日期:2006-09-12 17:37
内容:
qtopia 编译出错
软件包的具体版本:tmake-1.11.tar.gz; qt-embedded-2.3.10.tar.gz ; qt-x11-2.3.2.tar.gz ;qtopia-free-2.1.1
安装过程如下:
将所有安装包复制到/usr/local目录下.
1解压Qtopia
tar xfz qtopia-free-1.7.x.tar.gz
cd qtopia-1.7.x
export QPEDIR=$PWD
cd ..
2安装tmake
tar xfz tmake-1.11.tar.gz
export TMAKEDIR=$PWD/tmake-1.11
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
export PATH=$TMAKEDIR/bin:$PATH
3安装Qt/Embedded
tar xfz qt-embedded-2.3.x.tar.gz
cd qt-2.3.x
export QTDIR=$PWD
export QTEDIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
./configure -qconfig qpe -qvfb -depths 4,8,16,32
make sub-src
cd ..
4安装Qt/X11
tar xfz qt-x11-2.3.2.tar.gz
cd qt-2.3.2
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure
make
make -C tools/qvfb
mv tools/qvfb/qvfb bin
cp bin/uic $QTEDIR/bin
cd ..
5安装Qtopia
cd qtopia-1.7.x
export QTDIR=$QTEDIR
export QPEDIR=$PWD
export PATH=$QPEDIR/bin:$PATH
cd src
./configure
make
qte已经编译成功了,但是在编译qtopia时,出错如下(我用的系统是fedora core3):
/usr/local/qtopia-free-2.1.1/lib/libqtopia.so: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make[5]: *** 错误 1
make[5]: Leaving directory `/usr/local/qtopia-free-2.1.1/src/games/fifteen'
make[4]: *** 错误 2
make[4]: Leaving directory `/usr/local/qtopia-free-2.1.1/src/games/fifteen'
make[3]: *** 错误 2
make[3]: Leaving directory `/usr/local/qtopia-free-2.1.1/src'
make[2]: *** 错误 2
make[2]: Leaving directory `/usr/local/qtopia-free-2.1.1/src'
make[1]: *** 错误 2
make[1]: Leaving directory `/usr/local/qtopia-free-2.1.1/src'
make: *** 错误 2
请哪位帮忙指点谜经,不胜感激!
#1 [hanmetor 09-13 10:50]
qt-embedded-2.3.10.tar.gz 换成qt-embedded-2.3.7.tar.gz
我编译成功过!
#2 [shiroki 09-13 11:29]
这个是因为你的编译libqte的时候没有把uuid链接进去。
检查你的uuid是不是动态库,安装位置对不对
然后把libqte删除掉,重新链接。再用ldd查看它是不是链接上了uuid
#3 [cyzxl 09-13 12:11]
谢谢各位的指点!
我后来试了在configure时,添加了 -luuid 选项,编译可以过了
怎么可以测试一下是否成功了呢?
还有个问题: 我的qvfb启动不起来, 启动时只显示出 using display 0 但是看不到界面, 也试了 qvfb -width 800-height 600-depth 16 还是不行, 不知道是什么原因。
请指点!
#4 [shiroki 09-13 12:34]
你说的这个问题我在fc3上看见过, 似乎和fc3的startx过程有些关系。 我试过简化这个startx脚本就可以用了。 不知道你遇到的是不是一样的问题