728x90

target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl

Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /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.



solution:

sudo apt-get install libswitch-perl

728x90
728x90

https://source.android.com/source/building-devices.html


Building fastboot and adb

$make fastboot adb

out/host/linux-x86/bin$ ls fastboot



fastboot mode on target device

Booting into fastboot mode


DeviceKeys
hammerheadPress and hold both Volume Up and Volume Down, then press and hold Power
floPress and hold Volume Down, then press and hold Power
debPress and hold Volume Down, then press and hold Power
mantaPress and hold both Volume Up and Volume Down, then press and hold Power
makoPress and hold Volume Down, then press and hold Power
grouperPress and hold Volume Down, then press and hold Power
tilapiaPress and hold Volume Down, then press and hold Power
phantasmPower the device, cover it with one hand after the LEDs light up and until they turn red
maguroPress and hold both Volume Up and Volume Down, then press and hold Power
toroPress and hold both Volume Up and Volume Down, then press and hold Power
toroplusPress and hold both Volume Up and Volume Down, then press and hold Power
pandaPress and hold Input, then press Power
wingrayPress and hold Volume Down, then press and hold Power
crespoPress and hold Volume Up, then press and hold Power
crespo4gPress and hold Volume Up, then press and hold Power




find ID for target device

$ ./fastboot devices



Unlock bootloader

$ fastboot oem unlock


Upload all image

 $ cd ./framework
 $ fastboot flashall


Upload each image

$ cd out/target/product/manta

 $ fastboot flash boot boot.img
 $ fastboot flash system system.img
 $ fastboot flash userdata userdata.img
 $ fastboot flash recovery recovery.img


done!!




************************************

On Nexus 10, after unlocking the bootloader, the internal storage is left unformatted and must be formatted with

$ fastboot format cache
$ fastboot format userdata


Cleaning up when adding proprietary binaries

In order to make sure that the newly installed binaries are properly taken into account after being extracted, the existing output of any previous build needs to be deleted with

$ make clobber


728x90
728x90

Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /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



Solve

$sudo apt-get install libswitch-perl


I have solve this, actually i was using 14.04LTS for android 4.2jellybean source code. In 14.04LTS have to install the switch module. Below is the procedure to install

1:use below command and configure as automatic $cpan App::cpanminus

2:install switch $cpanm Switch

Note:By using these two commands that problem solved in my Ubuntu 14.04LTS....



ref : http://stackoverflow.com/questions/23314652/cant-locate-switch-pm

thank you stackoverflow

728x90
728x90

make iso_img TARGET_PRODUCT=android_x86 

하면서 만난 에러들 처리


Error : 

Notice file: frameworks/base/libs/androidfw/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libandroidfw.a.txt

Notice file: system/core/libutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libutils.a.txt

Notice file: system/core/libcutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcutils.a.txt

Notice file: system/core/liblog/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt

prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory


solution :
$ apt-get install build-essential

$ apt-get install g++-multilib


$ apt-get install git gnupg flex bison gperf zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 u-boot-tools minicom libncurses5-dev uuid-dev:i386 liblzo2-dev:i386


apt-get install 하는 도중에 다시 다음과 같은 에러를 만남

Error : 

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-30.54_amd64.deb  404  Not Found [IP: 91.189.88.153 80]


E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-30.54_i386.deb  404  Not Found [IP: 91.189.88.153 80]


solution :

  $ vi /etc/apt/sources.list

- deb http://security.ubuntu.com/ubuntu trusty-security main restrict

+ deb http://security.ubuntu.com/ubuntu trusty-security main

   $ apt-get update


   $ apt-get install git gnupg flex bison gperf zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 u-boot-tools minicom libncurses5-dev uuid-dev:i386 liblzo2-dev:i386


다시 다음과 같은 Error를 만남
Error :

target Export Resources: framework-res (out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)

/bin/bash: jar: command not found

make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 127


solution:
 $ sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/local/java/jdk1.7.0_60/bin/jar" 1;
 $ sudo update-alternatives --set jar /usr/local/java/jdk1.7.0_60/bin/jar;

Error :

libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

libcore/libdvm/src/main/java/java/lang/Enum.java:150: error: ordinal has private access in Enum

        return ordinal - o.ordinal;


solution : 
https://android.googlesource.com/platform/libcore/+/9c8864d39704b3d264ef9dfbdc1bfcfd8f1b6bb9%5E!/#F0

149     public final int compareTo(E o) {
-150         return ordinal - o.ordinal;
+150         return ordinal - o.ordinal();
151     }

Error : 
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/target/product/x86/obj/GYP/shared_intermediates/templates/org/chromium/base/ActivityState.java] Error 1

solution : 
  $ vi ~/.bashrc
added following lines in end
JAVA_HOME=/usr/lib/jvm/jdk1.7.0
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

  $ source ~/.bashrc

Error : 
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.util.ExceptionWithContext
at com.android.dex.util.ExceptionWithContext.withContext(ExceptionWithContext.java:45)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:377)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
at com.android.dx.command.dexer.Main.processClass(Main.java:682)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
at com.android.dx.command.dexer.Main.access$600(Main.java:78)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:596)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
Caused by: java.lang.NullPointerException
at com.android.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:87)
at com.android.dx.cf.code.ConcreteMethod.<init>(ConcreteMethod.java:75)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:277)
... 15 more
...while processing <init> (Lcom/android/internal/telephony/gsm/GSMPhone;)V
...while processing com/android/internal/telephony/gsm/GSMPhone$1.class

1 error; aborting

solution : 
java가 맞지 않는 것 같으니 guide 대로 다시 설치해보자
  $ sudo apt-get install openjdk-7-jdk
   개선사항 없음

source build/envsetup.sh
export ARCH=x86
lunch android_x86-eng


728x90

+ Recent posts