(OK) 完整编译android 4.4源码—问题—CSSValueKeywords.cpp—CSSPropertyNames.cpp
来源:互联网 发布:什么是软件过程 编辑:程序博客网 时间:2024/05/18 15:31
[root@localhost android4.4_source_code]# pwd
/opt/cBPM-android/android4.4_source_code
[root@localhost android4.4_source_code]# . /etc/profile
[root@localhost android4.4_source_code]# java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
[root@localhost android4.4_source_code]# . build/envsetup.sh
[root@localhost android4.4_source_code]# chooseproduct
[root@localhost android4.4_source_code]# m -j5
//Makes from the top of the tree.
//这个过程执行时间很长,大概2-8个小时,看机器配置
//不要轻易在 android源代码 根目录执行:make clean
-----------------编译成功,最后的部分输出结果如下:
Creating filesystem with parameters:
Size: 576716800
Block size: 4096
Blocks per group: 32768
Inodes per group: 7040
Inode size: 256
Journal blocks: 2200
Label:
Blocks: 140800
Block groups: 5
Reserved block group size: 39
Created filesystem with 1263/35200 inodes and 81852/140800 blocks
+ '[' 0 -ne 0 ']'
Install system fs image: out/target/product/generic/system.img
out/target/product/generic/system.img+ maxsize=588791808 blocksize=2112 total=576716800 reserve=5947392
make: 离开目录“/opt/cBPM-android/android4.4_source_code”
[root@localhost android4.4_source_code]# du -hs .
36G . //编译完成后,整个大小为 36G
[root@localhost android4.4_source_code]#
-----------------
注意:编译android中,linux内核之上的 程序之前,一定要先完整编译android 4.4源码。
-----------------------------------------------------------问题如下
File "scripts/make_css_value_keywords.py", line 177, in <module>
File "scripts/make_css_property_names.py", line 238, in <module>
in_generator.Maker(CSSValueKeywordsWriter).main(sys.argv)
in_generator.Maker(CSSPropertiesWriter).main(sys.argv)
File "/opt/cBPM-android/android4.4_source_code/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
File "/opt/cBPM-android/android4.4_source_code/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
writer.write_files(options.output_dir)
writer.write_files(options.output_dir)
File "/opt/cBPM-android/android4.4_source_code/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
File "/opt/cBPM-android/android4.4_source_code/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
self._write_file(output_dir, generator(), file_name)
self._write_file(output_dir, generator(), file_name)
File "scripts/make_css_property_names.py", line 233, in generate_implementation
File "scripts/make_css_value_keywords.py", line 172, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/target/product/generic/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp] 错误 1
make: *** 正在等待未完成的任务....
make: *** [out/target/product/generic/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp] 错误 1
make: 离开目录“/opt/cBPM-android/android4.4_source_code”
-----------------------------------------------------------解决方法
在我的系统,执行如下命令,解决了问题。
[root@localhost android4.4_source_code]# yum install gperf
注意:编译android中,linux内核之上的 程序之前,一定要先完整编译android 4.4源码。
下面是参考资料
-----------------------回答1
http://forum.xda-developers.com/showthread.php?t=2481571&page=35
it seems like you need to have the "gperf" package installed, or whatever package has the gperf binary.
-----------------------回答2
http://www.eoeandroid.com/forum.php?mod=viewthread&action=printable&tid=324565&_dsign=7b5d6c34
应该是环境的问题,你看看python安装了没有。
还有以下是所需要的环境:
git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
看看是不是都安装了
你的答案有效,现在编了半个多小时,没报错了,我确认并安装了以下环境:
git gnupg flex bison gperf build-essential zip curl libc6-dev x11proto-core-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc
-----------------------回答3
http://grokbase.com/p/gg/android-building/13bjxrp1er/facing-build-error-while-building-kitkat-for-emulator
Magnus B?ck: It looks like you haven't installed gperf. Make sure you have installed all packages listed as required by the documentation. http://source.android.com/source/initializing.html
Raja pavan: This issue got fixed when I installed all ubuntu 12 host packages . As suggested in developer android site. I am able to run system.img on emulator. I will try understanding the relationship between fix and the problem and enlighten myself Later.
Benoit Fouet: Hi, Have you tried to trace 'gperf_args', above this line, to see what happens. Also, when you have issues, building with '-j1' is more readable.
0
上一篇:Android.mk的用法和基础
下一篇: Android——Dalvik和ART的区别
相关热门文章
- test123
- 编写安全代码——小心有符号数...
- 使用openssl api进行加密解密...
- 一段自己打印自己的c程序...
- sql relay的c++接口
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
- (OK) 完整编译android 4.4源码—问题—CSSValueKeywords.cpp—CSSPropertyNames.cpp
- (OK) 完整编译android 4.4源码—问题—CSSValueKeywords.cpp—CSSPropertyNames.cpp
- ( OK—C程序 ) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- ( OK—C++程序 ) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- (OK—C程序) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- (OK—C++程序) Eclipse C/C++ — CentOS 7 + android-ndk + eclipse-cpp-mars-R
- caffe源码阅读——SyncedMemory.cpp
- caffe源码解析 — train_net.cpp
- caffe源码解析 — net.cpp
- caffe源码解析 — solver.cpp
- caffe源码解析 — blob.cpp
- caffe源码解析 — SyncedMemory.cpp
- caffe源码解析 — net.cpp
- caffe源码解析 — solver.cpp
- caffe源码解析 — blob.cpp
- caffe源码解析 — solver.cpp
- cpp——exception
- cpp——RTTI
- continue 与break 的区别
- Android.mk的用法和基础
- daratable Api,随记
- 10张思维导图带你学习JavaScript
- iOS开发---设置启动页停留时间
- (OK) 完整编译android 4.4源码—问题—CSSValueKeywords.cpp—CSSPropertyNames.cpp
- 美图欣赏,转载[原文链接http://toutiao.com/a4001258776/]
- Android——Dalvik和ART的区别
- 这个符号叫反单引号
- Android 系统服务一览
- bzoj 3343: 教主的魔法
- (OK) 编译 pcre-8.37 静态库
- OSI、TCP/IP参考模型对应的网络协议
- port_lighttpd_to_Android——基于android 4.4源码
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
惠威h5评测
惠威扬声器
惠威功放机
惠威x4
惠威m200
惠威试音碟
惠威 bose
惠威x3
惠威mkiii
惠威h5
惠威s3w
惠威售后
惠威怎么样
惠威代理商
惠威代理
惠威mkii
惠威h6
惠威803a
惠威d60ht
惠威书架箱
惠威试音
惠威m12
惠威x8
惠威ss1
惠威 diva
惠威耳机
惠威音响属于什么档次
惠威音箱专卖
惠威音响哪个型号好
漫步者和惠威哪个好
惠威m200mkii拆解
惠威试音碟无损试听
惠威和漫步者哪个好
惠威低音炮怎么样
惠威v6超薄低音炮
惠威音箱配什么功放好
惠威m200mkiii
惠威无源音箱
班龙音响和惠威哪个好
惠威汽车音响价格
惠威蓝牙音箱