ubuntu 编译android 源码笔记
已经验证,可以编译成功。过程中会碰到一些编译错误,安装好依赖环境,可以解决。
1、splite压缩包的合并,解压缩,md5验证
http://pan.baidu.com/s/1bnG1NtX
kitkat 安装包的下载 参考 http://bbs.eoe.cn/thread-543546-1-1.html
2、下载安装sdk kitkat 需要 1.6的java环境,最好食orcale的
3、下载安装其他依赖包
ubuntu 14.04 64bit系统
$ sudo apt-get install bison g++-multilib git gperf libxml2-utils make python-networkx zlib1g-dev:i386 zip http://source.android.com/source/initializing.html
下载gcc、g++
sudo apt-get install --reinstall binutils
sudo apt-get install --reinstall build-essential
sudo apt-get install --reinstall libc6-dev
sudo apt-get install --reinstall gcc-4.7-multilib
sudo apt-get install --reinstall g++-4.7-multilib
4、参考其他人的编译经过:
http://tianshuzhb.blog.163.com/blog/static/35137793201211872125183/ http://m.blog.csdn.net/blog/rong_wz/37100607
5、
build/core/main.mk:: *** Module 'bluetooth-health' in PRODUCT_PACKAGES has nothing to install!. 中止. 对应的mk文件路径:
build/target/product/
- generic_no_telephony.mk
- large_emu_hw.mk
解决办法:
82 $ cd ~/my-android-git
83 $ . build/envsetup.sh
84 $ lunch sdk-eng
85 $ make sdk
http://d.hatena.ne.jp/none53/20120829/1346223563
不行就注释掉
6、模拟器无法启动的问题
emulator不能直接运行的问题
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found. 解决方法:
配置源码目录,etc/profile
export ANDROID_BUILD_TOP= 源码绝对路径 参考链接 http://blog.csdn.net/hudan2714/article/details/7926924
http://blog.csdn.net/dongminghao888/article/details/7860884
ubuntu 编译android 源码笔记的更多相关文章
- Ubuntu12.04编译Android4.0.1源码全过程-----附wubi安装ubuntu编译android源码硬盘空间不够的问题解决
昨晚在编译源码,make一段时间之后报错如下: # A fatal error has been detected by the Java Runtime Environment: # # SIGSE ...
- Ubuntu编译Android源码过程中的空间不足解决方法
Android源码一般几十G,就拿Android5.0来说,下载下来大概也有44G左右,和编译产生的文件以及Ubuntu系统占用的空间加起来,源码双倍的空间都不够有.编译源码前能分配足够的空间再好不过 ...
- ubuntu 编译android源码
1.https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/ 清华大学Android 镜像使用 ...
- Ubuntu编译Android源码步骤
Android4.4源码编译 需要准备以下文件: 源码包名:x4412_kitkat_rtm.tar.bz2 Jdk版本为jdk1.6.0_27 gcc 4.4 g++ 4.4 第一步:安装Ubunt ...
- 【转】在Ubuntu下编译Android源码并运行Emulator
原文网址:http://www.mcuos.com/thread-4553-1-1.html 建立编译环境 1.在VirtualBox上安装Ubuntu 2.安装JDK $ sudo apt-ge ...
- wubi安装ubuntu后,增加swap大小,优化swap的使用参数-----------让ubuntu健步如飞,为编译android源码准备
wubi安装ubuntu后,终端输入free -m可以查到如下信息: total used free shared buffers cached Mem: 1944 1801 143 0 557 70 ...
- 在Mac mini上编译Android源码
参考文章 1.Android 6.0 源代码编译实践 2.编译Android源码致命错误解决方案 实践过程 1.Mac下安装Ubuntu双系统 (1)Ubuntu版本:Ubuntu 15.10 注:实 ...
- [原]编译Android源码过程中遇到的问题
编译Android源码的过程参考Android官网介绍: 1.下载Android源码的步骤:https://source.android.com/source/downloading.html 2.编 ...
- 一次编译Android源码实验
注意,本文只供参考,是老文章 1.必要的软件环境 sudo apt-get install build-essential sudo apt-get install make sudo apt-get ...
随机推荐
- ppt整体配色方案
背景色建议以灰色或者被色为主. 在百度云盘也有大量的ppt模板,还是非常不错的.http://pan.baidu.com/s/1bpDf7Fh
- C语言清空输入缓冲区
来源:http://blog.csdn.net/guanyasu/article/details/53153705 https://zhidao.baidu.com/question/5241738. ...
- Python-Flask实现电影系统管理后台
代码地址如下:http://www.demodashi.com/demo/14850.html 项目描述 该项目实现电影系统的后台接口,包括用户,电影,场次,订单,评论,优惠券,推荐,收藏等多个模块, ...
- nginx搭建httpsserver
HTTPS简单介绍 HTTPS(Hypertext Transfer Protocol over Secure Socket Layer),是以安全为目标的HTTP通道,简单来讲就是HTTP的安全版. ...
- 【CAS单点登录视频教程】 第02集 -- 安装CAS
目录 ----------------------------------------- [CAS单点登录视频教程] 第06集[完] -- Cas认证 学习 票据认证FormsAuthenticati ...
- (原)torch中的序列化
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/6591667.html 参考网址: https://github.com/torch/torch7/bl ...
- (原)torch中提示Unwritable object <userdata> at <?>.callback.self.XXX.threads.__gc__
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/6549432.html 参考网址: https://github.com/torch/threads/i ...
- [解决问题]selenium.remote.UnreachableBrowserException 异常分析并解决问题
I have a set of automations that work fantastically in Firefox and Chrome, and I'd like to launch an ...
- 获取可用的处理器(CPU)核数【转】
linux下获取cpu核数,sysconf(_SC_NPROCESSORS_CONF),,, from:红黑联盟,https://www.2cto.com/kf/201210/164480.html ...
- 安卓PopupWindow+ListView实现登录账号选择下拉框
这段时间在做android开发,发现自定义下拉框有很多种方法实现,我介绍一种PopupWindow+ListView的方式,实现起来比较灵活.效果: 直接看核心代码: //获取文本框 etLoginN ...