本地编译全志R系列的步骤(Ubuntu16.04.4版本)

前端之家收集整理的这篇文章主要介绍了本地编译全志R系列的步骤(Ubuntu16.04.4版本)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本地编译全志R系列的步骤(Ubuntu16.04.4版本)

2018/6/14 9:32

版本:V1.0

@H_404_13@0、获取全志R系列的Android源码包:

@H_404_13@请通过渠道/代理商/方案公司获取全志R系列的Android源码包。

@H_404_13@1、安装ubuntu

@H_404_13@已经验证过的系统:ubuntu-16.04.4-desktop-amd64.iso

@H_404_13@ubuntu的官方下载地址(喜欢中文优化版本的,可以选择麒麟版本):

@H_404_13@http://releases.ubuntu.com/releases/16.04/

@H_404_13@http://cdimage.ubuntu.com/releases/

@H_404_13@http://old-releases.ubuntu.com/releases/lucid/

@H_404_13@http://cn.ubuntu.com/

@H_404_13@http://www.ubuntukylin.com/

@H_404_13@https://www.ubuntu.com/download/ubuntu-kylin

@H_404_13@如果没有特殊理由,推荐使用ubuntu长期支持的版本(LTS版本:比如ubuntu12.04/14.04/16.04/18.04)。

@H_404_13@安装Ubuntu的教程请参考:

@H_404_13@http://digi.163.com/11/0127/18/6RE3LQL400162OUT.html

@H_404_13@图文教程:手把手教你用U盘安装Ubuntu

@H_404_13@

@H_404_13@http://www.linuxidc.com/Linux/2012-11/74695.htm

@H_404_13@U盘安装Ubuntu 12.10

@H_404_13@http://jingyan.baidu.com/article/a3761b2b66fe141577f9aa51.html

@H_404_13@怎么用u盘安装ubuntu

@H_404_13@手动分区的建议设置:

@H_404_13@/boot 推荐500MB。分配100MB是不够的!222MB也会报告/boot分区容量不足的问题,以后有空看看/boot分区都存了些啥!

@H_404_13@swap 交换分区 4G

@H_404_13@/home 剩下的容量()

@H_404_13@/ 注意这里需要设置为主分区!!!!20GB

@H_404_13@小知识:

@H_404_13@查看ubuntu的版本:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ cat /etc/issue

@H_404_13@Ubuntu 16.04.4 LTS \n \l

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ uname -a

@H_404_13@Linux rootroot-Lenovo-IdeaPad-S410 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@http://www.360doc.com/content/13/0921/23/6496277_316103639.shtml

@H_404_13@查看ubuntu是32位还是64位的方法及其版本号

@H_404_13@http://www.cnblogs.com/zero1665/archive/2010/05/24/1742962.html

@H_404_13@查看ubuntu版本号

@H_404_13@获取当前电脑配置的IP地址:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ ifconfig

@H_404_13@enp1s0 Link encap:以太网 硬件地址 f0:76:1c:14:a5:c7

@H_404_13@UP BROADCAST MULTICAST MTU:1500 跃点数:1

@H_404_13@接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0

@H_404_13@发送数据包:0 错误:0 丢弃:0 过载:0 载波:0

@H_404_13@碰撞:0 发送队列长度:1000

@H_404_13@接收字节:0 (0.0 B) 发送字节:0 (0.0 B)

@H_404_13@lo Link encap:本地环回

@H_404_13@inet 地址:127.0.0.1 掩码:255.0.0.0

@H_404_13@inet6 地址: ::1/128 Scope:Host

@H_404_13@UP LOOPBACK RUNNING MTU:65536 跃点数:1

@H_404_13@接收数据包:39772 错误:0 丢弃:0 过载:0 帧数:0

@H_404_13@发送数据包:39772 错误:0 丢弃:0 过载:0 载波:0

@H_404_13@碰撞:0 发送队列长度:1000

@H_404_13@接收字节:2945369 (2.9 MB) 发送字节:2945369 (2.9 MB)

@H_404_13@wlp2s0 Link encap:以太网 硬件地址 30:10:b3:df:af:69

@H_404_13@inet 地址:192.168.0.104 广播:192.168.0.255 掩码:255.255.255.0

@H_404_13@inet6 地址: fe80::5c04:4f5d:80d7:b5f4/64 Scope:Link

@H_404_13@UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1

@H_404_13@接收数据包:240642 错误:0 丢弃:0 过载:0 帧数:0

@H_404_13@发送数据包:141332 错误:0 丢弃:0 过载:0 载波:0

@H_404_13@碰撞:0 发送队列长度:1000

@H_404_13@接收字节:285174750 (285.1 MB) 发送字节:14994647 (14.9 MB)

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@2、全志R系列的android的环境搭建:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo passwd root

@H_404_13@[sudo] rootroot 的密码:

@H_404_13@输入新的 UNIX 密码:

@H_404_13@重新输入新的 UNIX 密码:

@H_404_13@passwd:已成功更新密码

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@1)

@H_404_13@sudo apt-get update

@H_404_13@sudo apt-get upgrade

@H_404_13@2)

@H_404_13@首先安装openssh-server,这样就可以在Windows下通过SSH软件连接Ubuntu的电脑操作了。

@H_404_13@sudo apt-get install openssh-server

@H_404_13@3)

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install samba

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ samba --version

@H_404_13@Version 4.3.11-Ubuntu

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ ps -e | grep smb

@H_404_13@6273 ? 00:00:00 smbd

@H_404_13@6276 ? 00:00:00 smbd

@H_404_13@6279 ? 00:00:00 smbd

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ cd /etc/samba/

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ ll

@H_404_13@总用量 36

@H_404_13@drwxr-xr-x 3 root root 4096 6月 7 15:06 ./

@H_404_13@drwxr-xr-x 131 root root 12288 6月 7 15:21 ../

@H_404_13@-rw-r--r-- 1 root root 8 3月 7 18:43 gdbcommands

@H_404_13@-rw-r--r-- 1 root root 9542 6月 7 15:06 smb.conf

@H_404_13@drwxr-xr-x 2 root root 4096 3月 7 18:41 tls/

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo cp smb.conf smb.conf.bak1

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo vi smb.conf

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$

@H_404_13@最后面加入:

@H_404_13@[rootroot]

@H_404_13@comment=rootroot Shared Folder

@H_404_13@path=/

@H_404_13@#public=yes

@H_404_13@writable=yes

@H_404_13@#readonly=yes

@H_404_13@valid users=rootroot

@H_404_13@create mask=0700

@H_404_13@directory mask=0700

@H_404_13@available=yes

@H_404_13@browseable=yes

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo smbpasswd -a rootroot

@H_404_13@New SMB password:

@H_404_13@Retype new SMB password:

@H_404_13@Added user rootroot.

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$

@H_404_13@现在你就可以在WIN7下将:\\192.168.0.104\rootroot\home\rootroot映射为L盘了!

@H_404_13@4)

@H_404_13@增强工具(可选):右键打开终端(已经内置在系统中了):

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install nautilus-open-terminal

@H_404_13@正在读取软件包列表... 完成

@H_404_13@正在分析软件包的依赖关系树

@H_404_13@正在读取状态信息... 完成

@H_404_13@没有可用的软件包 nautilus-open-terminal,但是它被其它的软件包引用了。

@H_404_13@这可能意味着这个缺失的软件包可能已被废弃,

@H_404_13@或者只能在其他发布源中找到

@H_404_13@然而下列软件包会取代它:

@H_404_13@gnome-terminal:i386 gnome-terminal

@H_404_13@E: 软件包 nautilus-open-terminal 没有可安装候选

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@5)

@H_404_13@安装编译全志的android4所需要的软件:

@H_404_13@安装前:

@H_404_13@rootroot@rootroot-x99:~$ gcc -v

@H_404_13@Using built-in specs.

@H_404_13@COLLECT_GCC=gcc

@H_404_13@COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper

@H_404_13@Target: x86_64-linux-gnu

@H_404_13@Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

@H_404_13@Thread model: posix

@H_404_13@gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

@H_404_13@rootroot@rootroot-x99:~$

@H_404_13@rootroot@rootroot-x99:~$g++ -v

@H_404_13@程序“g++”尚未安装。 您可以使用以下命令安装:

@H_404_13@sudo apt-get install g++

@H_404_13@rootroot@rootroot-x99:~$

@H_404_13@sudo apt-get install git-core

@H_404_13@sudo apt-get install gnupg

@H_404_13@sudo apt-get install flex

@H_404_13@sudo apt-get install bison

@H_404_13@sudo apt-get install gperf

@H_404_13@sudo apt-get install build-essential

@H_404_13@sudo apt-get install zip

@H_404_13@sudo apt-get install curl

@H_404_13@sudo apt-get install libc6-dev

@H_404_13@sudo apt-get install libncurses5-dev

@H_404_13@sudo apt-get install x11proto-core-dev

@H_404_13@sudo apt-get install libx11-dev:i386

@H_404_13@sudo apt-get install libreadline6-dev:i386

@H_404_13@sudo apt-get install libgl1-mesa-glx:i386

@H_404_13@sudo apt-get install libgl1-mesa-dev

@H_404_13@sudo apt-get install g++-multilib

@H_404_13@sudo apt-get install tofrodos

@H_404_13@sudo apt-get install python-markdown

@H_404_13@sudo apt-get install libxml2-utils

@H_404_13@sudo apt-get install xsltproc

@H_404_13@sudo apt-get install zlib1g-dev:i386

@H_404_13@sudo apt-get install zlib1g-dev

@H_404_13@sudo apt-get install lib32ncurses5-dev

@H_404_13@sudo apt-get install lib32z1(代替:ia32-libs)

@H_404_13@sudo apt-get install libx11-dev

@H_404_13@sudo apt-get install lib32readline-gplv2-dev

@H_404_13@sudo apt-get install lib32z1-dev

@H_404_13@sudo apt-get install libreadline6-dev

@H_404_13@sudo apt-get install libgl1-mesa-glx

@H_404_13@sudo apt-get install u-boot-tools(代替:uboot-mkimage)

@H_404_13@sudo apt-get install gcc-4.8

@H_404_13@sudo apt-get install g++-4.8

@H_404_13@sudo apt-get install gcc-4.8-multilib

@H_404_13@sudo apt-get install g++-4.8-multilib

@H_404_13@sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install mingw32

@H_404_13@正在读取软件包列表... 完成

@H_404_13@正在分析软件包的依赖关系树

@H_404_13@正在读取状态信息... 完成

@H_404_13@E: 无法定位软件包 mingw32

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install lib32readline-gplv2-dev

@H_404_13@正在读取软件包列表... 完成

@H_404_13@正在分析软件包的依赖关系树

@H_404_13@正在读取状态信息... 完成

@H_404_13@没有可用的软件包 lib32readline-gplv2-dev,但是它被其它的软件包引用了。

@H_404_13@这可能意味着这个缺失的软件包可能已被废弃,

@H_404_13@或者只能在其他发布源中找到

@H_404_13@E: 软件包 lib32readline-gplv2-dev 没有可安装候选

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@(以下4个不要安装)

@H_404_13@sudo apt-get install gcc-4.5-arm-linux-gnueabihf

@H_404_13@sudo apt-get install gcc-arm-linux-gnueabihf

@H_404_13@sudo apt-get install g++-arm-linux-gnueabihf

@H_404_13@sudo apt-get install c++-arm-linux-gnueabihf

@H_404_13@6、安装开发工具

@H_404_13@6.1、安装代码比较工具

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install meld

@H_404_13@6.2、编译tina的系统

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install libssl-dev

@H_404_13@3、安装JDK1.6:jdk-6u45-linux-x64.bin

@H_404_13@1)

@H_404_13@安装JDK1.6,使用如下命令

@H_404_13@sudo chmod u+x jdk-6u45-linux-x64.bin

@H_404_13@sudo cp -a jdk-6u45-linux-x64.bin /opt

@H_404_13@sudo /opt/jdk-6u45-linux-x64.bin

@H_404_13@sudo rm -f /opt/jdk-6u45-linux-x64.bin

@H_404_13@2)

@H_404_13@设置JDK环境变量,在HOME根目录下按键盘Crtr+H显示HOME目录下所有文件,打开.bashrc,在最后加入以下代码

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ cp .bashrc bak_orig.bashrc

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ vi .bashrc

@H_404_13@在最后面加入:

@H_404_13@#set java environment

@H_404_13@export JAVA_HOME=/opt/jdk1.6.0_45

@H_404_13@export JRE_HOME=$JAVA_HOME/jre

@H_404_13@export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib

@H_404_13@export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

@H_404_13@3)

@H_404_13@测试JDK是否安装成功,使用命令java -version 如果显示(需要注销,或者重启ubuntu系统)

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ java --version

@H_404_13@Unrecognized option: --version

@H_404_13@Could not create the Java virtual machine.

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ java -version

@H_404_13@java version "1.6.0_45"

@H_404_13@Java(TM) SE Runtime Environment (build 1.6.0_45-b06)

@H_404_13@Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01,mixed mode)

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@JDK安装成功。

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo cp jdk-6u45-linux-x64.bin /opt/

@H_404_13@[sudo] rootroot 的密码:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ cd /opt/

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$ ll

@H_404_13@总用量 70408

@H_404_13@drwxr-xr-x 2 root root 4096 6月 7 15:38 ./

@H_404_13@drwxr-xr-x 26 root root 4096 6月 7 15:13 ../

@H_404_13@-rwx------ 1 root root 72087592 6月 7 15:38 jdk-6u45-linux-x64.bin*

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$ sudo chmod 777 jdk-6u45-linux-x64.bin

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:/opt$ sudo ./jdk-6u45-linux-x64.bin

@H_404_13@4、安装JDK7:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install openjdk-7-jdk

@H_404_13@没有可用的软件包 openjdk-7-jdk,但是它被其它的软件包引用了。

@H_404_13@E: 软件包 openjdk-7-jdk 没有可安装候选

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo add-apt-repository ppa:openjdk-r/ppa

@H_404_13@更多信息: https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa

@H_404_13@按回车继续或者 Ctrl+c 取消添加

@H_404_13@gpg: 钥匙环‘/tmp/tmpi9j8_l2o/secring.gpg’已建立

@H_404_13@gpg: 钥匙环‘/tmp/tmpi9j8_l2o/pubring.gpg’已建立

@H_404_13@gpg: 下载密钥‘86F44E2A’,从 hkp 服务器 keyserver.ubuntu.com

@H_404_13@gpg: /tmp/tmpi9j8_l2o/trustdb.gpg:建立了信任度数据库

@H_404_13@gpg: 密钥 86F44E2A:公钥“Launchpad OpenJDK builds (all archs)”已导入

@H_404_13@gpg: 合计被处理的数量:1

@H_404_13@gpg: 已导入:1 (RSA: 1)

@H_404_13@OK

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get update

@H_404_13@命中:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease

@H_404_13@获取:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]

@H_404_13@获取:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]

@H_404_13@获取:4 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease [17.5 kB]

@H_404_13@获取:5 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]

@H_404_13@获取:6 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 Packages [4,564 B]

@H_404_13@获取:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [785 kB]

@H_404_13@获取:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main i386 Packages [4,572 B]

@H_404_13@获取:9 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [720 kB]

@H_404_13@获取:10 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [632 kB]

@H_404_13@获取:11 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [578 kB]

@H_404_13@获取:12 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main Translation-en [1,452 B]

@H_404_13@已下载 3,066 kB,耗时 5秒 (522 kB/s)

@H_404_13@正在读取软件包列表... 完成

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install openjdk-7-jdk

@H_404_13@断开SSH终端连接重新连接:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ Error: Could not create the Java Virtual Machine.

@H_404_13@Error: A fatal exception has occurred. Program will exit.

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ java version "1.7.0_95"

@H_404_13@OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3)

@H_404_13@OpenJDK 64-Bit Server VM (build 24.95-b01,mixed mode)

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@5、Ubuntu14.04下还需要安装:sudo apt-get install libswitch-perl

@H_404_13@http://www.cnblogs.com/kobe8/p/3998379.html

@H_404_13@Ubuntu14.04上编译Android4.0.1出现的几个问题 sudo apt-get install libswitch-perl

@H_404_13@1)、 出错以下出错信息:

@H_404_13@Import includes file: out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/import_includes

@H_404_13@target Generated: libwebcore <= external/webkit/Source/WebCore/css/tokenizer.flex

@H_404_13@<span style="rgb(255,255,51);">Can't locate Switch.pm in @INC (you may need to install the Switch module)</span> (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.

@H_404_13@BEGIN Failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.

@H_404_13@Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.

@H_404_13@BEGIN Failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.

@H_404_13@make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] Error 2

@H_404_13@make: *** Waiting for unfinished jobs....

@H_404_13@make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/platform/ColorData.cpp] Error 2

@H_404_13@target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in

@H_404_13@解决方法是安装perl的switch库:

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install libswitch-perl

@H_404_13@6、shell从DASH切换到BASH:

@H_404_13@http://blog.csdn.net/smilettxp/article/details/19118057?reload

@H_404_13@ubuntu 12.04编译MTK6582——FAQ

@H_404_13@现象:

@H_404_13@加载MT6582_Android_scatter.txt文件后,Flash_tool无法显示下载内容时,查看XXXX_preloader.log中有如下提示

@H_404_13@/bin/sh: 1: [: -a: unexpected operator

@H_404_13@awk: line 4: function strtonum never defined

@H_404_13@awk: line 4: function strtonum never defined

@H_404_13@解决办法:/bin/sh: 1: [: -a: unexpected operator 分析原因为/bin/sh的链接到/bin/dash,而不是/bin/bash(可以用命令ls /bin/sh -lh查看链接的时bash还是dash)

@H_404_13@修改sh默认指向到/bin/bash,如下:

@H_404_13@sudo dpkg-reconfigure dash选择no,即可。

@H_404_13@awk:line的解决办法是安装gnu awk,如下:

@H_404_13@sudo apt-get install gawk即可。

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ ls /bin/sh -lh

@H_404_13@lrwxrwxrwx 1 root root 4 6月 7 11:34 /bin/sh -> dash

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo dpkg-reconfigure dash

@H_404_13@正在删除 dash 导致 /bin/sh 转移到 /bin/sh.distrib

@H_404_13@正在添加 bash 导致 /bin/sh 转移到 /bin/sh.distrib

@H_404_13@正在删除 dash 导致 /usr/share/man/man1/sh.1.gz 转移到 /usr/share/man/man1/sh.distrib.1.gz

@H_404_13@正在添加 bash 导致 /usr/share/man/man1/sh.1.gz 转移到 /usr/share/man/man1/sh.distrib.1.gz

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ lrwxrwxrwx 1 root root 4 6月 7 15:23 /bin/sh -> bash

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$

@H_404_13@rootroot@rootroot-Lenovo-IdeaPad-S410:~$ sudo apt-get install gawk

@H_404_13@7、编译及其步骤(请参考R系列具体的编译手册):

@H_404_13@参考资料:

@H_404_13@http://www.linuxidc.com/Linux/2014-04/100645.htm

@H_404_13@Ubuntu 14.04 LTS下安装Google Chrome浏览器

@H_404_13@http://blog.csdn.net/man_embedded/article/details/40111023

@H_404_13@linux下编译MTK android的环境搭建

@H_404_13@http://jingyan.baidu.com/article/624e7459abb8eb34e8ba5aa2.html

@H_404_13@Ubuntu10.04搭建MTK android编译环境

@H_404_13@http://blog.csdn.net/doon/article/details/8053174

@H_404_13@ubuntu 12.04 64位设置兼容32位的实现

@H_404_13@http://blog.csdn.net/yimiyangguang1314/article/details/39996851

@H_404_13@Ubuntu 12.04 64bit 无法识别交叉编译器解决办法

@H_404_13@http://pkgs.org/download/ia32-libs

@H_404_13@ia32-libs Download (DEB)

@H_404_13@http://source.android.com/source/initializing.html

@H_404_13@Initializing a Build Environment

@H_404_13@http://processors.wiki.ti.com/index.PHP/TI-Android-JB-4.2.2-DevKit-4.1.1_DeveloperGuide

@H_404_13@TI-Android-JB-4.2.2-DevKit-4.1.1 DeveloperGuide

@H_404_13@https://www.virtualBox.org/

@H_404_13@virtualBox

猜你在找的Ubuntu相关文章