Ubuntu8.04 下安装 QT for X11 4.4.0
2008-09-01 12:38
225 查看
从Trolltech网站下载相应的软件开源包,解压在oren用户的目录下。
首先要安装xorg-dev开发包,否则configure之后会出现下面警告信息:
【NOTICE: Qt will not be built with XShape support.
As a result, drag-and-drop in the Qt Designer will NOT
work. We recommend that you enable XShape support by passing
the -xshape switch to ./configure.】
执行./configure
其次要安装 libx11-dev 、libxext-dev开发包,否则就会出现“X11/Xlib.h / libxext.h : 没有该文件或目录”的错误信息:
执行make (在虚拟己上约需3-4个小时)
执行sudo make install(或su –c “make install”)
通过gedit .profile 编辑 ~/.profile,把下面一行代码添加到 ~/.profile文件中,
export PATH=/usr/local/Trolltech/Qt-4.4.0/bin:$PATH
source ~/.profile
最后我们来测试一下:
# qtdemo
或者
# assistant
如果要想编译出qvfb,必须在make后,进入tools/qvfb子目录下再次make,最后会在bin目录下生成qvfb程序。
【注】我在编译的时候,由于缺少ui_config.h文件而不能生成qvfb;经分析qvfb/makefile文件,手工执行下面命令后才可以(但没有明白到底因为什么):
../../bin/uic config.ui –o ui_config.h
首先要安装xorg-dev开发包,否则configure之后会出现下面警告信息:
【NOTICE: Qt will not be built with XShape support.
As a result, drag-and-drop in the Qt Designer will NOT
work. We recommend that you enable XShape support by passing
the -xshape switch to ./configure.】
执行./configure
其次要安装 libx11-dev 、libxext-dev开发包,否则就会出现“X11/Xlib.h / libxext.h : 没有该文件或目录”的错误信息:
执行make (在虚拟己上约需3-4个小时)
执行sudo make install(或su –c “make install”)
通过gedit .profile 编辑 ~/.profile,把下面一行代码添加到 ~/.profile文件中,
export PATH=/usr/local/Trolltech/Qt-4.4.0/bin:$PATH
source ~/.profile
最后我们来测试一下:
# qtdemo
或者
# assistant
如果要想编译出qvfb,必须在make后,进入tools/qvfb子目录下再次make,最后会在bin目录下生成qvfb程序。
【注】我在编译的时候,由于缺少ui_config.h文件而不能生成qvfb;经分析qvfb/makefile文件,手工执行下面命令后才可以(但没有明白到底因为什么):
../../bin/uic config.ui –o ui_config.h
相关文章推荐
- 安装qt-x11-opensource-src-4.4.0
- 安装Qt-x11开发工具
- 纪念一次Ubuntu8.04下的GTK源码安装经历
- ubuntu8.04下安装PHP5
- Hadoop2.0 YARN cloudra4.4.0安装配置
- 安装Ubuntu8.04之后,如何更新中文语言包
- 在Ubuntu8.04 server 平台下安装oracle10g
- eclipseLuna (4.4.0) 安装velocity 插件
- nodejs4.4.0安装Linux
- Ubuntu8.04安装Realplayer11
- macbook 通过x11(XQuartz)连接aix 图形界面安装was
- ubuntu8.04下 安装IE +讯雷
- 自定义最小化安装ubuntu8.04完整命令集
- 纪念一次Ubuntu8.04下的GTK源码安装经历
- ubuntu8.04下为thinkpad 安装 APS[硬盘防震]及电池阀门的全部过程[详细]
- Qt Creator 安装 Qt X11
- Qt 有多少人折腾-qt for s60终于安装成功
- ubuntu8.04安装oracle11g
- Ubuntu8.04 下编译安装 Desmond2.29