在 Ubuntu 18.04(Bionic Beaver)上构建 Lollipop 5.1.1 Aosp
Build Lollipop 5.1.1 Aosp on Ubuntu 18.04 (Bionic Beaver)
我在 Ubuntu 18.04 上尝试构建 Lollipop 5.1.1 AOSP 时出现以下错误。
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/apq8084/system/etc/permissions/android.hardware.sensor.stepdetector.xml'
build/core/base_rules.mk:550: warning: ignoring old recipe for target 'out/target/product/apq8084/system/etc/permissions/android.hardware.sensor.stepdetector.xml'
No private recovery resources for TARGET_DEVICE apq8084
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
/bin/bash: prebuilts/misc/linux-x86/flex/flex-2.5.39: Is a directory
build/core/binary.mk:575: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 126
make: *** Waiting for unfinished jobs....
host C++: libaapt_32 <= frameworks/base/tools/aapt/AaptXml.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (01:06 (mm:ss)) ####
知道为什么会这样吗?
我尝试了 "export LC_ALL=C" 但没有帮助。
我重建了 flex 包,问题得到解决。
cd prebuilts/misc/linux-x86/flex
rm flex-2.5.39
tarzvxf flex-2.5.39.tar.gz
cd flex-2.5.39
./配置
制作
mv flex ../
裁谈会../
rm -rf flex-2.5.39
mv flex flex-2.5.39
我在 Ubuntu 18.04 上尝试构建 Lollipop 5.1.1 AOSP 时出现以下错误。
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/apq8084/system/etc/permissions/android.hardware.sensor.stepdetector.xml'
build/core/base_rules.mk:550: warning: ignoring old recipe for target 'out/target/product/apq8084/system/etc/permissions/android.hardware.sensor.stepdetector.xml'
No private recovery resources for TARGET_DEVICE apq8084
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
/bin/bash: prebuilts/misc/linux-x86/flex/flex-2.5.39: Is a directory
build/core/binary.mk:575: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 126
make: *** Waiting for unfinished jobs....
host C++: libaapt_32 <= frameworks/base/tools/aapt/AaptXml.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (01:06 (mm:ss)) ####
知道为什么会这样吗?
我尝试了 "export LC_ALL=C" 但没有帮助。
我重建了 flex 包,问题得到解决。
cd prebuilts/misc/linux-x86/flex
rm flex-2.5.39
tarzvxf flex-2.5.39.tar.gz
cd flex-2.5.39
./配置
制作
mv flex ../
裁谈会../
rm -rf flex-2.5.39
mv flex flex-2.5.39