各位大侠好,我按以下步骤在fedora上编译qt和qt-embedded,
软件包:tmake-1.13.tar.gz qt-embedded-free-3.2.1.tar.bz2
qt-x11-free-3.3.6.tar.bz2
以下的步骤我是在/qt目录下操作的。
1 安装tmake
[root@110 qt]# tar xzvf tmake-1.13.tar.gz
[root@110 qt]# export TMAKEDIR=/qt/tmake-1.13
[root@110 qt]# export TMAKEPATH=/qt/tmake-1.13/lib/qws/linux-x86-g++/
[root@110 qt]# export PATH=/qt/tmake-1.13/bin/:$PATH
2 安装Qt/Embedded 3.2.1
[root@110 qt]# tar xvf qt-embedded-free-3.2.1.tar.bz2
[root@110 qt-embedded-free-3.2.1]# export QTDIR=$PWD
[root@110 qt-embedded-free-3.2.1]# export QTEDIR=$QTDIR
[root@110 qt-embedded-free-3.2.1]# export PATH=$QTDIR/bin/:$PATH
[root@110 qt-embedded-free-3.2.1]#
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
[root@110 qt-embedded-free-3.2.1]#
./configure -qconfig local -qvfb -depths 16,32
[root@110 qt-embedded-free-3.2.1]# ./configure -system-jpeg
[root@110 qt-embedded-free-3.2.1]# make
The Qt library is now built in ./lib
The Qt examples are built in the directories in ./examples
The Qt tutorials are built in the directories in ./tutorial
Enjoy! - the Trolltech team
完成安装
3 安装Qt/X11
[root@110 qt]# tar xvf qt-embedded-free-3.2.1.tar.bz2
[root@110 qt]# cd qt-x11-free-3.3.6
[root@110 qt-x11-free-3.3.6]# export QTDIR=$PWD
[root@110 qt-x11-free-3.3.6]# export PATH=$QTDIR/bin:$PATH
[root@110 qt-x11-free-3.3.6]#
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
[root@110 qt-x11-free-3.3.6]# ./configure -no-xft
[root@110 qt-x11-free-3.3.6]# make
The Qt library is now built in ./lib
The Qt examples are built in the directories in ./examples
The Qt tutorials are built in the directories in ./tutorial
Enjoy! - the Trolltech team
即完成安装
[root@110 qt-x11-free-3.3.6]# make -C tools/qvfb/
[root@110 qt-x11-free-3.3.6]# mv tools/qvfb/qvfb bin
[root@110 qt-x11-free-3.3.6]# cp bin/uic $QTEDIR/bin
cp:是否覆盖“/qt/qt-embedded-free-3.2.1/bin/uic”? y
每个步骤都顺利通过编译,但是遇到以下问题:
1 我重新进入目录:qt-embedded-free-3.2.1/tools/qvfb中却找不到可执行程序qvfb,我用make重新编译,但是总报错:can't find qlock_p.h .请问为什么之前已经通过编译了,现在为什么又不行了;
2 还有就是我想在qvfb上运行程序,例如 ./hello -qws ,却无法实现,报错:can't open framebuffer device /dev/fb0 :driver can't connect
在qvfb打开的状况下报错:semop lock failure .我在 /dev/目录下确实找不到fb0 设备,我想请问fb0是什么类型的设备,如果没有如何添加?
希望各位高手予以点拨,谢谢~~~