Linux下编译Qt源码,一定要下载tar.gz版本,否则会报权限不足
首先下载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安装。
由于配置的命令比较多,我自己写了一个自动安装脚本:
- #!/bin/sh
- export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin:$PATH
- export TOOLCHAIN=/opt/FriendlyARM/toolschain/4.4.3
- export TB_CC_PREFIX=arm-linux-
- export PKG_CONFIG_PREFIX=$TOOLCHAIN/arm-none-linux-gnueabi
- export MAKE=/usr/bin/make
- echo "Delect the exist direction"
- rm -rf qt-everywhere-opensource-src-4.8.1
- rm -rf /opt/Qt4.8.1
- echo "Unzip qt source"
- tar xzvf qt-everywhere-opensource-src-4.8.1.tar.gz
- cd qt-everywhere-opensource-src-4.8.1
- echo "Configure ..."
- #chmod +x configure
- #dos2unix configure
- ./configure \
- -prefix /opt/Qt4.8.1 \
- -opensource \
- -embedded arm \
- -xplatform qws/linux-arm-g++ \
- -depths 16,18,24,32 \
- -no-glib \
- -no-cups \
- -no-largefile \
- -no-accessibility \
- -no-openssl \
- -no-gtkstyle \
- -no-qt3support \
- -no-phonon \
- -no-webkit \
- -no-libtiff \
- -no-libmng \
- -qt-zlib \
- -qt-libpng \
- -qt-libjpeg \
- -no-nis \
- -no-dbus \
- -little-endian \
- -host-little-endian \
- -qt-freetype \
- -qt-gfx-transformed \
- -qt-gfx-vnc \
- -qt-gfx-linuxfb \
- -qt-gfx-multiscreen \
- -qt-kbd-tty \
- -qt-mouse-tslib \
- -I/usr/local/arm/tslib/include \
- -L/usr/local/arm/tslib/lib \
- 2>&1 | tee conf_log
- echo "Make..."
- make 2>&1 | tee make_log
- echo "Inatall..."
- make install
http://blog.csdn.net/jecan123/article/details/8760191
Linux下编译Qt源码,一定要下载tar.gz版本,否则会报权限不足的更多相关文章
- Windows,linux下编译qt源码(比较简单)
一.linux下静态编译qt源码 1.取到qt源码并解压到文件夹 2.cd到qt目录下 3.使用configure生成makefile ./configure–prefix /opt/qtstatic ...
- Linux下编译安装源码包软件 configure ,make, make install, make test/check, make clean
http://www.360doc7.net/wxarticlenew/541275971.html 一.什么是源码包软件? 顾名思义,源码包就是源代码的可见的软件包,基于Linux和BSD系统的软件 ...
- Linux下编译安装源码包软件 configure ,make, make install, make test/check, make clean 假目标
http://www.360doc7.net/wxarticlenew/541275971.html 一.程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 ...
- Windows 10 x64 下编译 Hadoop 源码
Windows 10 x64 下编译 Hadoop 源码 环境准备 Hadoop并没有提供官方的 Windows 10 下的安装包,所以需要自己手动来编译,官方文档中 BUILDING.txt 文件中 ...
- Nginx (一)Windows下编译Nginx源码以及安装 nginx for windows方法步骤
转载自: http://apps.hi.baidu.com/share/detail/11192699#content Nginx介绍: Nginx ("engine x")是一个 ...
- Windows下编译live555源码
Windos下编译live555源码 环境 Win7 64位 + VS2012 步骤 1)源码下载并解压 在官网上下载最新live555源码,并对其进行解压. 2)VS下建立工程项目 新建Win32项 ...
- ubuntu下编译VLC源码
http://blog.csdn.net/beitiandijun/article/details/9225591ubuntu下编译VLC源码 分类: 视频处理 2013-07-02 17:33 57 ...
- linux下获取软件源码包 centos/redhat, debian/ubuntu
linux下获取软件源码包 centos/redhat, debian/ubuntu centos下: 1. yum install yum-utils 主要为了获取yumdownloader 2. ...
- linux下c语言源码编译
一.源码编译过程 源码 ---> 预处理 ---> 编译 ---> 汇编 ---> 链接 --->执行 我们可以把它分为三部分来完成: ./configure ...
随机推荐
- Android 进程和线程
进程和线程 如果某个应用程序组件是第一次被启动,且这时应用程序也没有其他组件在运行,则Android系统会为应用程序创建一个包含单个线程的linux进程.默认情况下,同一个应用程序的所有组件都运行在同 ...
- node.js第十课(HTTPserver)
概念:Node.js提供了http模块.当中封装了一个高效的HTTPserver和一个简单的HTTPclient. http.server是一个基于事件的HTTP服务器.内部用C++实现 ...
- for循环语句之棋盘放粮食、百鸡百钱、纸张的折叠问题
1.棋盘放粮食 ; ; i < ; i++) { ; ; j <= i; j++) { x = x * ; } lszl = lszl + x; } double zl = lszl * ...
- BZOJ 2060: [Usaco2010 Nov]Visiting Cows 拜访奶牛( dp )
树形dp..水 ------------------------------------------------------------------------ #include<cstdio& ...
- OpenSSL命令---rand
用途: 用来产生伪随机字节.随机数字产生器需要一个seed,先已经说过了,在没有/dev/srandom系统下的解决方法是自己做一个~/.rnd文件.如果该程序能让随机数字产生器很满意的被seeded ...
- 树莓派做web服务器(nginx、Apache)
一想到Linux Web服务器,我们首先想到的是: Apache + MySql + Php. Apache:是世界使用排名第一的Web服务器软件. 可以运行在几乎所有广泛使用的计算机平台上,由于其跨 ...
- Windows Phone 8初学者开发—第15部分:在选中ListItem时播放声音
原文 Windows Phone 8初学者开发—第15部分:在选中ListItem时播放声音 第15部分:在选中ListItem时播放声音 原文地址: http://channel9.msdn.co ...
- c++ - Create empty json array with jsoncpp - Stack Overflow
python中multiprocessing.pool函数介绍_正在拉磨_新浪博客 multiprocessing.pool c++ - Create empty json array wit ...
- SGU 106 The Equation 扩展欧几里得应用
Sol:线性不定方程+不等式求解 证明的去搜下别人的证明就好了...数学题. #include <algorithm> #include <cstdio> #include & ...
- Http方式获取网络数据
通过以下代码可以根据网址获取网页的html数据,安卓中获取网络数据的时候会用到,而且会用Java中的sax方式解析获取到数据.(sax解析主要是解析xml)具体代码如下: package com.wy ...