• 搜索
  • 夜间模式
    ©2016-2025  周伯通的小站 Theme by OneBlog
    搜索
    标签
    # linux # python # android # 学习 # 折腾 # 教程 # 记录 # 软件 # vps # 新闻
  • 首页>
  • 折腾>
  • 正文
  • Mac 10.13.5 编译 Android 填坑过程记录

    2018年07月29日 19 阅读 0 评论 937 字

    以前编译安卓的源码都是使用linux的,不过后来那个硬盘坏了就也没折腾了,mac下编译按道理来说是没问题的,就是环境有点不同配置骚有不一样。

    但是无聊啊。爱折腾,所以试着编译,ROM的源码已经同步过来了。

    开始入坑。

    环境不说已经配置的差不多了。先说说遇到的第一个问题。

    ➜  android make
    /Users/laohei/android/build/soong/cmd/microfactory/microfactory.bash: line 85: /
    Users/laohei/android/prebuilts/go/darwin-x86//bin/go: cannot execute binary file
    
    #### failed to build some targets  ####

    哈?还需要go的么,那就

    brew install go

    装了go应该还需要ln过去 试试

    ln -s /usr/local/Cellar/go/bin/go /Users/laohei/android/prebuilts/go/darwin-x86/bin/go

    然后我再make看看

    嗯。打包源码转移到linux电脑上编译。这是最快的填坑办法

    本文著作权归作者 [ 老周 ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。
    androidmac
    取消回复

    发表留言
    回复

    Copyright©2016-2025  All Rights Reserved.  Load:0.020 s
    Theme by OneBlog V3.6.4
    夜间模式

    开源不易,请尊重作者版权,保留基本的版权信息。