我试图在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
有谁知道如何解决这个问题?感谢。
答案 0 :(得分:0)
也许你错过了这个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