作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试在 Ubuntu 17.04 上构建 AOSP。我正在阅读嵌入式 Android 书中的教程。到目前为止一切正常:
root@mh2-K55VD:/bin/repo_work_directory# make -j16
============================================
PLATFORM_VERSION_CODENAME=P
PLATFORM_VERSION=P
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-37-generic-x86_64-Ubuntu-17.04
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file
[ 0% 1/60175] Yacc: ss <= external/iproute2/misc/ssfilter.y
FAILED: out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.c
/bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.h -o out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.c external/iproute2/misc/ssfilter.y"
external/iproute2/misc/ssfilter.y: 31 conflitti shift/riduzione
prebuilts/misc/linux-x86/bison/bison: Sotto-processo m4 non riuscito: File o directory non esistente
[ 0% 16/60175] target thumb C++: libvkjson <= external/vulkan-validation-layers/libs/vkjson/vkjson.cc
ninja: build stopped: subcommand failed.
13:24:39 ninja failed with: exit status 1
#### failed to build some targets (20 seconds) ####
我做错了什么?我该如何解决这个问题?请帮忙。提前致谢。
最佳答案
不要编译 master 分支,因为它们经常有损坏的构建。切换到您要构建的 AOSP 的最新官方分支,例如 oreo-release
,然后重试。
关于android - AOSP 在 ssfilter.c 上构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46828969/
我正在尝试在 Ubuntu 17.04 上构建 AOSP。我正在阅读嵌入式 Android 书中的教程。到目前为止一切正常: root@mh2-K55VD:/bin/repo_work_directo
我是一名优秀的程序员,十分优秀!