gpt4 book ai didi

android - 编译 Android 框架 (AOSP)

转载 作者:太空宇宙 更新时间:2023-11-04 12:33:40 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 16.10(64 位)上编译 Android 框架。在编译过程中,使用这个命令“ma​​ke -j1”我遇到了这个问题:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/AaptAssets.cpp:1:0: note: this is the location of the previous definition
In file included from frameworks/base/include/utils/Vector.h:20:0,
from frameworks/base/include/utils/AssetDir.h:24,
from frameworks/base/include/utils/AssetManager.h:24,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
/usr/include/c++/4.7/new:41:28: fatal error: bits/c++config.h: File o directory non esistente
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Errore 1

有人知道如何解决这个问题吗?谢谢。

最佳答案

也许你错过了这个pre-build step :

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip

对于您的特殊情况,似乎缺少 multilib

关于android - 编译 Android 框架 (AOSP),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42594830/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com