MTK6853 modem 编译

 

cd MTK_MD_BASIC_XXXX/Modem/mcu

project config 在 mcu/make/projects下,选择需要的project编译

MTK6853 modem 编译_第1张图片

编译报错
Can't locate Switch.pm in @INC (you may need to install the Switch 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 . ./tools/ ./tools/MemoryUtility/ ./tools/ ./tools/MemoryUtility/ ../ ../../tools/ ./tools/ ./tools/MemoryUtility/ ./pcore/tools/ ../ ./tools/ ./tools/MemoryUtility/ ./pcore/tools/ ./pcore/tools/ ./pcore/tools/ ./pcore/tools/) at ./tools/AutoGen/postBuild/update_mpu_table.pl line 339.
BEGIN failed--compilation aborted at ./tools/AutoGen/postBuild/update_mpu_table.pl line 339.
Error: Failed in update_mpu_table.pl. Please check ./build/MT6853_SP/NLWCTG_6190_CAT12_NSA_6315_CUSTOM/bin/log/update_mpu_table.log
make/common/build.mak:762: recipe for target 'FROMELF_BIN_FILE' failed
make: *** [FROMELF_BIN_FILE] Error 1
./build_MT6853.sh: line 30: popd: directory stack empt

  需要安装  perl的5.22.1

   ubuntu 16.04 编译modem出现Can't locate Switch.pm in @INC

编译39 GO 的modem出现报错,查看 perlbrew版本为5.22.1

 gcc 版本切成4.8,

[PERL] : v5.22.1 [NOT RECOMMENDED] !!!
[MAKE] : GNU Make v3.81 [OK] !!!
[SHELL] : GNU bash v4.3.48 [HIGHER THAN RECOMMENDED] !!!
[COMPILER] : v4.9.2(2016.05-08) [OK] !!!
我们不管它的编译环境,因为当我把perlbrew版本切成5.14.2,编译的时候还是会报错,所以我们直接编译,
.

下面是编译报错的提示:
Can’t locate Switch.pm in @INC (you may need to install the Switch 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 . ./pcore/tools/ ./common/tools/MemoryUtility/ ./pcore/tools/ ./common/tools/MemoryUtility/ …/ …/…/…/pcore/tools/ ./pcore/tools/ ./common/tools/MemoryUtility/ ./pcore/tools/ …/ ./pcore/tools/ ./common/tools/MemoryUtility/ ./pcore/tools/ ./pcore/tools/ ./pcore/tools/ ./pcore/tools/) at common/tools/AutoGen/postBuild/update_mpu_table.pl line 190.

 

需要补充安装两个东西:

sudo apt-getinstall libswitch-perl        安装perl  编译modem

sudo apt-get  install libxml2-utils

之后,就可以正常编译android系统了。

 

你可能感兴趣的:(MTK6853 modem 编译)