【发布时间】:2017-07-24 12:07:21
【问题描述】:
我正在尝试在 Ubuntu 16.10(64 位)上编译 Android 框架。 在编译过程中,使用这个命令“make -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
有人知道如何解决这个问题吗?谢谢。
【问题讨论】:
标签: android linux compilation frameworks android-source