首先下载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. Android 进程和线程

    进程和线程 如果某个应用程序组件是第一次被启动,且这时应用程序也没有其他组件在运行,则Android系统会为应用程序创建一个包含单个线程的linux进程.默认情况下,同一个应用程序的所有组件都运行在同 ...

  2. node.js第十课(HTTPserver)

     概念:Node.js提供了http模块.当中封装了一个高效的HTTPserver和一个简单的HTTPclient.     http.server是一个基于事件的HTTP服务器.内部用C++实现 ...

  3. for循环语句之棋盘放粮食、百鸡百钱、纸张的折叠问题

    1.棋盘放粮食 ; ; i < ; i++) { ; ; j <= i; j++) { x = x * ; } lszl = lszl + x; } double zl = lszl * ...

  4. BZOJ 2060: [Usaco2010 Nov]Visiting Cows 拜访奶牛( dp )

    树形dp..水 ------------------------------------------------------------------------ #include<cstdio& ...

  5. OpenSSL命令---rand

    用途: 用来产生伪随机字节.随机数字产生器需要一个seed,先已经说过了,在没有/dev/srandom系统下的解决方法是自己做一个~/.rnd文件.如果该程序能让随机数字产生器很满意的被seeded ...

  6. 树莓派做web服务器(nginx、Apache)

    一想到Linux Web服务器,我们首先想到的是: Apache + MySql + Php. Apache:是世界使用排名第一的Web服务器软件. 可以运行在几乎所有广泛使用的计算机平台上,由于其跨 ...

  7. Windows Phone 8初学者开发—第15部分:在选中ListItem时播放声音

    原文 Windows Phone 8初学者开发—第15部分:在选中ListItem时播放声音 第15部分:在选中ListItem时播放声音 原文地址:  http://channel9.msdn.co ...

  8. c++ - Create empty json array with jsoncpp - Stack Overflow

    python中multiprocessing.pool函数介绍_正在拉磨_新浪博客     multiprocessing.pool c++ - Create empty json array wit ...

  9. SGU 106 The Equation 扩展欧几里得应用

    Sol:线性不定方程+不等式求解 证明的去搜下别人的证明就好了...数学题. #include <algorithm> #include <cstdio> #include & ...

  10. Http方式获取网络数据

    通过以下代码可以根据网址获取网页的html数据,安卓中获取网络数据的时候会用到,而且会用Java中的sax方式解析获取到数据.(sax解析主要是解析xml)具体代码如下: package com.wy ...