首先下载qt-everywhere-opensource-src-4.8.1源码,下载地址:

ftp://ftp.qt-project.org/qt/source/

在Linux下编译一定要下载qt-everywhere-opensource-src-4.8.1.tar.gz 不能用qt-everywhere-opensource-src-4.8.1.zip,因为在configure时,会报没有权限和文本编码等错误。

编译Qt之前都需要安装tslib,具体安装方法请看:tslib安装

由于配置的命令比较多,我自己写了一个自动安装脚本:

  1. #!/bin/sh
  2. export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin:$PATH
  3. export TOOLCHAIN=/opt/FriendlyARM/toolschain/4.4.3
  4. export TB_CC_PREFIX=arm-linux-
  5. export PKG_CONFIG_PREFIX=$TOOLCHAIN/arm-none-linux-gnueabi
  6. export MAKE=/usr/bin/make
  7. echo "Delect the exist direction"
  8. rm -rf qt-everywhere-opensource-src-4.8.1
  9. rm -rf /opt/Qt4.8.1
  10. echo "Unzip qt source"
  11. tar xzvf qt-everywhere-opensource-src-4.8.1.tar.gz
  12. cd qt-everywhere-opensource-src-4.8.1
  13. echo "Configure ..."
  14. #chmod +x configure
  15. #dos2unix configure
  16. ./configure \
  17. -prefix /opt/Qt4.8.1 \
  18. -opensource \
  19. -embedded arm \
  20. -xplatform qws/linux-arm-g++ \
  21. -depths 16,18,24,32 \
  22. -no-glib \
  23. -no-cups \
  24. -no-largefile \
  25. -no-accessibility \
  26. -no-openssl \
  27. -no-gtkstyle \
  28. -no-qt3support \
  29. -no-phonon \
  30. -no-webkit \
  31. -no-libtiff \
  32. -no-libmng \
  33. -qt-zlib \
  34. -qt-libpng \
  35. -qt-libjpeg \
  36. -no-nis \
  37. -no-dbus \
  38. -little-endian \
  39. -host-little-endian \
  40. -qt-freetype \
  41. -qt-gfx-transformed \
  42. -qt-gfx-vnc \
  43. -qt-gfx-linuxfb \
  44. -qt-gfx-multiscreen \
  45. -qt-kbd-tty \
  46. -qt-mouse-tslib \
  47. -I/usr/local/arm/tslib/include \
  48. -L/usr/local/arm/tslib/lib \
  49. 2>&1 | tee conf_log
  50. echo "Make..."
  51. make 2>&1 | tee make_log
  52. echo "Inatall..."
  53. make install

http://blog.csdn.net/jecan123/article/details/8760191

Linux下编译Qt源码,一定要下载tar.gz版本,否则会报权限不足的更多相关文章

  1. Windows,linux下编译qt源码(比较简单)

    一.linux下静态编译qt源码 1.取到qt源码并解压到文件夹 2.cd到qt目录下 3.使用configure生成makefile ./configure–prefix /opt/qtstatic ...

  2. Linux下编译安装源码包软件 configure ,make, make install, make test/check, make clean

    http://www.360doc7.net/wxarticlenew/541275971.html 一.什么是源码包软件? 顾名思义,源码包就是源代码的可见的软件包,基于Linux和BSD系统的软件 ...

  3. Linux下编译安装源码包软件 configure ,make, make install, make test/check, make clean 假目标

    http://www.360doc7.net/wxarticlenew/541275971.html 一.程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 ...

  4. Windows 10 x64 下编译 Hadoop 源码

    Windows 10 x64 下编译 Hadoop 源码 环境准备 Hadoop并没有提供官方的 Windows 10 下的安装包,所以需要自己手动来编译,官方文档中 BUILDING.txt 文件中 ...

  5. Nginx (一)Windows下编译Nginx源码以及安装 nginx for windows方法步骤

    转载自: http://apps.hi.baidu.com/share/detail/11192699#content Nginx介绍: Nginx ("engine x")是一个 ...

  6. Windows下编译live555源码

    Windos下编译live555源码 环境 Win7 64位 + VS2012 步骤 1)源码下载并解压 在官网上下载最新live555源码,并对其进行解压. 2)VS下建立工程项目 新建Win32项 ...

  7. ubuntu下编译VLC源码

    http://blog.csdn.net/beitiandijun/article/details/9225591ubuntu下编译VLC源码 分类: 视频处理 2013-07-02 17:33 57 ...

  8. linux下获取软件源码包 centos/redhat, debian/ubuntu

    linux下获取软件源码包 centos/redhat, debian/ubuntu centos下: 1. yum install yum-utils 主要为了获取yumdownloader 2. ...

  9. linux下c语言源码编译

    一.源码编译过程   源码  ---> 预处理 ---> 编译 ---> 汇编 ---> 链接 --->执行    我们可以把它分为三部分来完成: ./configure ...

随机推荐

  1. poj 1256 Anagram(dfs)

    题目链接:http://poj.org/problem?id=1256 思路分析:该题为含有重复元素的全排列问题:由于题目中字符长度较小,采用暴力法解决. 代码如下: #include <ios ...

  2. 飘逸的python - 简单探索time模块

    time模块中方法众多,不过在了解本质和联系之后,就会发现其实很简单. 在python中可以用3种方式来表达时间.看似很乱,其实就只是这3种变来变去来回转换而已. 1.时间戳 2.时间tuple,由9 ...

  3. poj 1080 zoj 1027(最长公共子序列变种)

    http://poj.org/problem?id=1080 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=27 /* zoj ...

  4. 1297 - Largest Box(三分)

    1297 - Largest Box   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB In t ...

  5. 【redis】windows

    官方网站:http://www.redis.io 百度百科:http://baike.baidu.com/view/4595959.htm?fr=aladdin windows下安装redis: 下载 ...

  6. 基于CAShapeLayer和贝塞尔曲线的圆形进度条动画【装载】

    初次接触CAShapeLayer和贝塞尔曲线,看了下极客学院的视频.对初学者来说感觉还不错.今天来说一个通过CAShapeLayer和贝塞尔曲线搭配的方法,创建的简单的圆形进度条的教程先简单的介绍下C ...

  7. [Swust OJ 249]--凸包面积

        题目链接:    http://acm.swust.edu.cn/problem/0249/   麦兜是个淘气的孩子.一天,他在玩钢笔的时候把墨水洒在了白色的墙上.再过一会,麦兜妈就要回来了, ...

  8. ASP.NET MVC 以Stream 下载文件

     1.0以Stream 下载文件 nl.fileid = Int32.Parse(id); //服务器上对应的id Stream stream = Lawsuit.DownLoad(nl);//服务器 ...

  9. activebar的用法

    效果图: 网站页面上弹出消息提示狂,用来提示重大事件. <script src="http://www.ijquery.cn/js/jquery-1.7.2.min.js"& ...

  10. Best Component for Bitmap Image

    The best is to purchase ImageEn and use the latest version. Coz nothing compares to ImageEn.... But ...