第11节:编译QtE
1)配置环境变量
export PATH=$PATH:/usr/local/arm/4.3.2/libexec/gcc
2)上传QtE的源码压缩包“qt-everywhere-opensource-src-4.7.1.tar.gz”到“/root/yizhi”目录下
3)将上传的QtE源码包进行解压
tar zxvf qt-everywhere-opensource-src-4.7.1_20141224.tar.gz
4)进入qt-everywhere-opensource-src-4.7.1目录
root@ubuntu:~/yizhi# cd qt-everywhere-opensource-src-4.7.1
5)执行编译脚本命令 “./build-all”
6)编译完成后,会在“/opt”文件夹中出现qt-4.7.1文件夹
7)拷贝qt-4.7.1文件夹到/home/topeet/Linux+QT/root/opt目录下:
root@ubuntu:/opt# cp -rp qt-4.7.1/ /home/topeet/Linux+QT/root/opt/
8)到相应的目录进行文件系统的打包:
root@ubuntu:/opt# cd /home/topeet/Linux+QT/
root@ubuntu:/home/topeet/Linux+QT# make_ext4fs -s -l 314572800 -a root -L linux system.img root
Creating filesystem with parameters:
Size: 314572800
Block size: 4096
Blocks per group: 32768
Inodes per group: 6400
Inode size: 256
Journal blocks: 1200
Label: linux
Blocks: 76800
Block groups: 3
Reserved block group size: 23
Created filesystem with 10618/19200 inodes and 51602/76800 blocks
9)在Linux+QT目录下会生成system.img文件
1)配置环境变量
export PATH=$PATH:/usr/local/arm/4.3.2/libexec/gcc
2)上传QtE的源码压缩包“qt-everywhere-opensource-src-4.7.1.tar.gz”到“/root/yizhi”目录下
3)将上传的QtE源码包进行解压
tar zxvf qt-everywhere-opensource-src-4.7.1_20141224.tar.gz
4)进入qt-everywhere-opensource-src-4.7.1目录
root@ubuntu:~/yizhi# cd qt-everywhere-opensource-src-4.7.1
5)执行编译脚本命令 “./build-all”
6)编译完成后,会在“/opt”文件夹中出现qt-4.7.1文件夹
7)拷贝qt-4.7.1文件夹到/home/topeet/Linux+QT/root/opt目录下:
root@ubuntu:/opt# cp -rp qt-4.7.1/ /home/topeet/Linux+QT/root/opt/
8)到相应的目录进行文件系统的打包:
root@ubuntu:/opt# cd /home/topeet/Linux+QT/
root@ubuntu:/home/topeet/Linux+QT# make_ext4fs -s -l 314572800 -a root -L linux system.img root
Creating filesystem with parameters:
Size: 314572800
Block size: 4096
Blocks per group: 32768
Inodes per group: 6400
Inode size: 256
Journal blocks: 1200
Label: linux
Blocks: 76800
Block groups: 3
Reserved block group size: 23
Created filesystem with 10618/19200 inodes and 51602/76800 blocks
9)在Linux+QT目录下会生成system.img文件