首先下载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. FileUtil

    package com.wiseweb.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInp ...

  2. ThinkPHP - 每个操作都检测用户是否登录

    TP提供了一个自动执行的函数_initialize(), 你创建一个公共控制器CommonAction.class.php文件. 定义了此方法,不能存在构造方法__construct() <?p ...

  3. IP数据包结构

    Linux 网络编程——IP 数据报格式详解 http://www.linuxidc.com/Linux/2015-04/116149.htm

  4. java.lang.NoClassDefFoundError: org.ksoap2.transport.HttpTransportSE异常处理

    原因就是没有打包进去  因为引用进去 编译时没出出现问题 解决如下

  5. Ubantu指令收藏

    Ubuntu常用命令大全,学习ubuntn系统的朋友可以收藏下,用ctrl+F查找即可   一.文件/文件夹管理 ls 列出当前目录文件(不包括隐含文件) ls -a 列出当前目录文件(包括隐含文件) ...

  6. Executor框架

     Executor框架是指java5中引入的一系列并发库中与executor相关的功能类,包括Executor.Executors.ExecutorService.CompletionService. ...

  7. HDU 4679 String

    String Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Sub ...

  8. linux BC命令行计算器

    1. 基本使用: $ bc <<< 5*4 20 $ bc <<< 5+4 9 $ bc <<< 5-4 1 或者 $ echo "5* ...

  9. asp.net上传控件使用

    protected void Button1_Click(object sender, EventArgs e) { string str = ""; if (FileUpload ...

  10. NGINX服务器打开目录浏览功能

    我们做文件服务器的时候,希望打开目录浏览的功能.但是Nginx默认是不允许列出目录功能的.若需要此功能,需要在配置文件中手动开启. 首先需要打开开关.autoindex on;autoindex_ex ...