ubuntu 16.04 compile android 11

本文记录了在安装过程中遇到的XML Simple模块缺失、openssl.h文件未找到以及依赖更新的问题,提供了apt-get安装解决方案,涉及git、gnupg、flex等基础包和libxml-simple-perl、libssl-dev等特定依赖。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 libgl1-mesa-dev libxml2-utils xsltproc unzip

------------------------------------------------------->

Failed to find an xml file for target msmnile. Defaulting to Default blm.xml
python vendor/qcom/proprietary/chi-cdk/tools/blmconfig/blmconfigparser.py -i vendor/qcom/proprietary/chi-cdk/oem/qcom/blm/default/blm.xml -o vendor/qcom/proprietary/chi-cdk/core/chiutils

Can't locate XML/Simple.pm in @INC (you may need to install the XML::Simple module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at vendor/qcom/proprietary/chi-cdk/tools/usecaseconverter/usecaseconverter.pl line 10.
BEGIN failed--compilation aborted at vendor/qcom/proprietary/chi-cdk/tools/usecaseconverter/usecaseconverter.pl line 10.

------------------------------------------------------->

sudo apt-get install libxml-simple-perl

------------------------------------------------------->

kernel/msm-4.19/scripts/sign-file.c:25:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
         ^~~~~~~~~~~~~~~~~~~~
  UPD     include/generated/bounds.h
1 error generated.
make[3]: *** [scripts/Makefile.host:90: scripts/sign-file] Error 1
make[3]: *** Waiting for unfinished jobs....
  CC      arch/arm64/kernel/asm-offsets.s
  HOSTLD  scripts/mod/modpost
make[2]: *** [/home/yh/code01/sm6115rmg/kernel/msm-4.19/Makefile:1189: scripts] Error 2
make[2]: *** Waiting for unfinished jobs....
  UPD     include/generated/asm-offsets.h
  CALL    /home/yh/code01/sm6115rmg/kernel/msm-4.19/scripts/checksyscalls.sh
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
00:49:05 ninja failed with: exit status 1

------------------------------------------------------->
apt-get install libssl-dev
 

external/wpa_supplicant_8/wpa_supplicant/Android.mk: error: libwpa_client: LOCAL_COPY_HEADERS is obsolete. See https://android.googlesource.com/platform/build/+/master/Changes.md#copy_headers

--------------------------------------------------->

LOCAL_COPY_HEADERS和LOCAL_COPY_HEADERS_TO过时。
使用LOCAL_EXPORT_C_INCLUDES替代

==================================================

vendor/qcom/opensource/dataservices/rmnetctl/src/Android.mk:9: error: BUILD_COPY_HEADERS is obsolete.

->include $(BUILD_BROKEN_USES_BUILD_COPY_HEADERS)

=====================================================

sudo dpkg -i SunloginClient_15.2.0.63062_amd64.deb
[sudo] password for yh:
(Reading database ... 196852 files and directories currently installed.)
Preparing to unpack SunloginClient_15.2.0.63062_amd64.deb ...
Unpacking sunloginclient (15.2.0.63062) over (15.2.0.63062) ...
dpkg: dependency problems prevent configuration of sunloginclient:
 sunloginclient depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.

dpkg: error processing package sunloginclient (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
 sunloginclient

---> sudo apt-get -f -y install

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值