回复: Qtopia2.1.1安装问题(QT版本太低?)
#11 [wicoo401 11-13 16:58]
没办法,又装了 qt-x11-3.3.4总算能成功配置了,接下来编译又出现了问题:
/root/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined reference to `QMotifStyle::drawIndicator(QPainter*, int, int, int, int, QColorGroup const&, int, bool, bool)'
collect2: ld returned 1 exit status
make[5]: *** Error 1
make[5]: Leaving directory `/root/Trolltech/qtopia-free-2.1.1-debug/src/games/fifteen'
make[4]: *** Error 2
make[4]: Leaving directory `/root/Trolltech/qtopia-free-2.1.1-debug/src/games/fifteen'
make[3]: *** Error 2
make[3]: Leaving directory `/root/Trolltech/qtopia-free-2.1.1-debug/src'
make[2]: *** Error 2
make[2]: Leaving directory `/root/Trolltech/qtopia-free-2.1.1-debug/src'
make[1]: *** Error 2
make[1]: Leaving directory `/root/Trolltech/qtopia-free-2.1.1-debug/src'
make: *** Error 2
引用下shiroki的话
这个是因为你的编译libqte的时候没有把uuid链接进去。
检查你的uuid是不是动态库,安装位置对不对
然后把libqte删除掉,重新链接。再用ldd查看它是不是链接上了uuid
不知道能不能说的明白点
还有我 configure时加了 -luuid 选项也不成(不知道有的怎么就OK了?)
我还装了e2fsprogs-1.35
#12 [shiroki 11-15 22:30]
我写的这段话不适用你这个情况哦。 我的那个指的是跟uuid相关的错误, 但是你这个明显和uuid没有关系阿。
照我看你的libqte编译的还是有问题。 有的时候库有问题在编译库的阶段是看不出来的, 因为库的编译阶段有些符号不需要解析, 编译程序的时候就报错了。
但是错误的原因还是我在置顶文章里写的, 编译库的时候用的头文件和你编译应用程序的时候不一致。 所以要检查编译环境里QTDIR设得是不是始终正确, 等等。
用下面的命令行把libqte重新编译一下:
cd $QTEDIR;export QTDIR=$PWD;./configure -embedded -depths 16,32 -qconfig qpe -system-jpeg -qvfb;make
根据你的需要调整调整上边的参数。
把生成的libqte.so.*拷贝到QPEDIR/lib下
进到fifteen目录单独编译fifteen
make clean;make
直到不出错误了, 再继续qtopia的编译。 后面应该不会有什么问题了。