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 ...
随机推荐
- FileUtil
package com.wiseweb.util; import java.io.BufferedReader; import java.io.File; import java.io.FileInp ...
- ThinkPHP - 每个操作都检测用户是否登录
TP提供了一个自动执行的函数_initialize(), 你创建一个公共控制器CommonAction.class.php文件. 定义了此方法,不能存在构造方法__construct() <?p ...
- IP数据包结构
Linux 网络编程——IP 数据报格式详解 http://www.linuxidc.com/Linux/2015-04/116149.htm
- java.lang.NoClassDefFoundError: org.ksoap2.transport.HttpTransportSE异常处理
原因就是没有打包进去 因为引用进去 编译时没出出现问题 解决如下
- Ubantu指令收藏
Ubuntu常用命令大全,学习ubuntn系统的朋友可以收藏下,用ctrl+F查找即可 一.文件/文件夹管理 ls 列出当前目录文件(不包括隐含文件) ls -a 列出当前目录文件(包括隐含文件) ...
- Executor框架
Executor框架是指java5中引入的一系列并发库中与executor相关的功能类,包括Executor.Executors.ExecutorService.CompletionService. ...
- HDU 4679 String
String Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Sub ...
- linux BC命令行计算器
1. 基本使用: $ bc <<< 5*4 20 $ bc <<< 5+4 9 $ bc <<< 5-4 1 或者 $ echo "5* ...
- asp.net上传控件使用
protected void Button1_Click(object sender, EventArgs e) { string str = ""; if (FileUpload ...
- NGINX服务器打开目录浏览功能
我们做文件服务器的时候,希望打开目录浏览的功能.但是Nginx默认是不允许列出目录功能的.若需要此功能,需要在配置文件中手动开启. 首先需要打开开关.autoindex on;autoindex_ex ...