Android source code compilation record

Source: Internet
Author: User

  

Question 1:
Can ' t locate switch.pm in @INC (if you are need to install the Switch module) (@INC contains:/etc/perl/usr/local/lib/x86_64 -linux-gnu/perl/5.20.2/usr/local/share/perl/5.20.2/usr/lib/x86_64-linux-gnu/perl5/5.20/usr/share/perl5/usr/lib /x86_64-linux-gnu/perl/5.20/usr/share/perl/5.20/usr/local/lib/site_perl.) At external/webkit/source/webcore/make-hash-tools.pl Line 23.
BEGIN failed--compilation aborted at external/webkit/source/webcore/make-hash-tools.pl Line 23.
Make: * * * [out/target/product/generic/obj/static_libraries/libwebcore_intermediates/source/webcore/html/ DocTypeStrings.cpp] Error 2
Make: * * * waiting for unfinished jobs ....
Can ' t locate switch.pm in @INC (if you are need to install the Switch module) (@INC contains:/etc/perl/usr/local/lib/x86_64 -linux-gnu/perl/5.20.2/usr/local/share/perl/5.20.2/usr/lib/x86_64-linux-gnu/perl5/5.20/usr/share/perl5/usr/lib /x86_64-linux-gnu/perl/5.20/usr/share/perl/5.20/usr/local/lib/site_perl.) At external/webkit/source/webcore/make-hash-tools.pl Line 23.
BEGIN failed--compilation aborted at external/webkit/source/webcore/make-hash-tools.pl Line 23.
Make: * * * [out/target/product/generic/obj/static_libraries/libwebcore_intermediates/source/webcore/platform/ ColorData.cpp] Error 2
Target Generated:libwebcore <= external/webkit/source/webcore/html/parser/htmlentitynames.in

Workaround:
sudo apt-get install Libswitch-perl

Question 2:
/bin/bash:xsltproc:command not found

Workaround:
sudo apt-get install Xsltproc


Question 3:
Host C + +: LIBANDROIDFW <= frameworks/base/libs/androidfw/asset.cpp
/home/jason/android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/. /lib/gcc/i686-linux/4.6.x-google/. /.. /.. /.. /i686-linux/bin/as:error while loading shared libraries:libz.so.1:cannot open Shared object file:no such file or Direc Tory
Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBHOST_INTERMEDIATES/COPYFILE.O] Error 1
Make: * * * waiting for unfinished jobs ....
/home/jason/android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/. /lib/gcc/i686-linux/4.6.x-google/. /.. /.. /.. /i686-linux/bin/as:error while loading shared libraries:libz.so.1:cannot open Shared object file:no such file or Direc Tory
Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBHOST_INTERMEDIATES/PSEUDOLOCALIZE.O] Error 1
/home/jason/android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/. /lib/gcc/i686-linux/4.6.x-google/. /.. /.. /.. /i686-linux/bin/as:error while loading shared libraries:libz.so.1:cannot open Shared object file:no such file or Direc Tory
Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBANDROIDFW_INTERMEDIATES/ASSET.O] Error 1
Note:some input files use or override a deprecated API.
Note:recompile with-xlint:deprecation for details.

Workaround:
sudo apt-get install zlib1g
sudo apt-get install zlib1g:i386


Question 4:
In file included from/home/jason/android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/ bin/. /lib/gcc/i686-linux/4.6.x-google/. /.. /.. /.. /i686-linux/include/c++/4.6.x-google/cstdlib:66:0,
From Libcore/include/uniqueptr.h:20,
From Cts/suite/audio_quality/lib/src/task/tasksound.cpp:17:
/usr/include/stdlib.h:759:34:fatal error:bits/stdlib-bsearch.h:no such file or directory
Compilation terminated.
In file included from cts/suite/audio_quality/lib/src/task/taskinput.cpp:17:0:
/usr/include/stdlib.h:759:34:fatal error:bits/stdlib-bsearch.h:no such file or directory
Compilation terminated.
Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBCTS_AUDIO_QUALITY_INTERMEDIATES/SRC/TASK/TASKSOUND.O] Error 1
Make: * * * waiting for unfinished jobs ....
Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBCTS_AUDIO_QUALITY_INTERMEDIATES/SRC/TASK/TASKINPUT.O] Error 1
In file included from cts/suite/audio_quality/lib/src/task/tasksequential.cpp:16:0:
/usr/include/stdlib.h:759:34:fatal error:bits/stdlib-bsearch.h:no such file or directory
Compilation terminated.
Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBCTS_AUDIO_QUALITY_INTERMEDIATES/SRC/TASK/TASKSEQUENTIAL.O] Error 1

Workaround:
sudo apt-get install Gcc-multilib

Android source code compilation record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.