Linux Fedora10 系统中Qt4.4.3安装笔记
15:49 | Author: Hui Li 李辉

请先确认电脑中没有别的版本的qt和已经安装了gcc,版本最好在gcc.3.2.2以上的版本。确认完以后就可以进行以下的安装步骤了。

1、从Trolltech公司主页上去下载qt-x11-opensource-src-4.4.3.tar.gz文件包

http://www.qtsoftware.com/downloads

2、解压:gunzip qt-x11-opensource-src-4.4.3.tar.gz;

tar xvf qt-x11-opensource-src-4.4.3.tar.gz;

3、运行configure脚本:

进入qt-x11-opensource-src-4.4.3文件夹,

输入./configure,运行shell脚本程序;

4、编译:gmake;

5、安装:gmake install;

(第3、4、5步运行时间比较长,根据机器的配置不同而不同。)

6、设置环境变量:

打开/etc/profile文件,在该文件的末尾加上以下语句:

PATH=/usr/local/Trolltech/Qt-4.4.3/bin:$PATH

QTDIR=/usr/local/Trolltech/Qt-4.4.3

MANPATH=$QTDIR/man:$MANPATH

LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

export PATH QTDIR MANPATH LD_LIBRARY_PATH

保存后重启。

我遇到中文显示乱码的功能,解决办法如下:

运行:/usr/local/Trolltech/Qt-4.4.3/bin/qtconfig,在Font项将字体设置为Bitstream charter

退出保存。

再重启就可以了。

This entry was posted on 15:49 and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 评论: