Android-4.4.2 编译出错 OSError: [Errno 2] No such file or directory

在Ubuntu14.04下编译sama5d44 Android-4.4.2 版本时出错:
  File "scripts/make_css_property_names.py", line 233, in generate_implementation
    gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/target/product/sama5d4/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp] 错误 1

解决方法分两步:

1、安装必须的软件

     sudo apt-get install gnupg
     sudo apt-get install flex
     sudo apt-get install bison
     sudo apt-get install gperf
     sudo apt-get install build-essential
     sudo apt-get install zip
     sudo apt-get install curl
     sudo apt-get install libc6-dev
     sudo apt-get install libncurses5-dev:i386
     sudo apt-get install x11proto-core-dev
     sudo apt-get install libx11-dev:i386
     sudo apt-get install libreadline6-dev:i386
     sudo apt-get install g++-multilib
     sudo apt-get install mingw32
     sudo apt-get install tofrodos
     sudo apt-get install python-markdown
     sudo apt-get install libxml2-utils
     sudo apt-get install xsltproc
     sudo apt-get install zlib1g-dev:i386

2.配置java的环境变量JAVA_HOME

修改/etc/profile文件,添加环境变量

$ vi /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib

$ source /etc/profile

参考资料:

1.MTK编译差分包问题OSError: [Errno 2] No such file or directory

2.Android-4.4.2 编译出错 OSError: [Errno 2] No such file or directory

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值