Build Android source code in Ubuntu 10.10 in 64/32-bit machine @ 我只是愛按快門的人.. :: 隨意窩 Xuite日誌
    1. 沒有新回應!
  • Re:[大阪燒 收錄於...],By 於2009-03-21
    Re:[爆走兄妹 收錄...],By 於2009-02-26
    Re:[詐騙集團對話 ...],By 於2009-02-25
    Re:[老師vs學生...],By dog9818 於2008-06-01
  • 連結
  • Google廣告

  • New HTC One 4.7吋四核旗艦智慧機
  • googleanaly
  • 累積 | 今日
    201103242312Build Android source code in Ubuntu 10.10 in 64/32-bit machine
    1. install ubuntu 64bits or 32 
    2. Download jdk1.6.0_24 and install it
    2.1	move to "opt"
    2.2	chmod a+x ./jdk1.6.0_24
    2.3	./jdk1.6.0_24_bin
    2.4	check the folder "jdk1.6.0_24" in /opt 
    2.5	add path in /etc/environment,/etc/profile
    2.6	check java -version, and you will see
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
    3.	begin to install "git"
    3.1	sudo apt-get install git 
    3.2	install "curl"
    3.3	sudo apt-get install curl 
    3.4	fetch repo file
    	curl > /bin/repo
    3.5	chmod a+x /bin/repo 
    4. make a folder prepare for your android source code
    4.1	mkdir myandroid 
    4.2	cd myandroid 
    4.3	repo init -u git:// 
    4.4	fetch full source code using 	"repo sync"
    5. wait download finish
    6. install Required Packages.
    (32 bit Required Packages)
    apt-get install git-core gnupg sun-java5-jdk flex bison gperf build-essential zip curl zlib1g-dev  libsdl-dev libesd0-dev libwxgtk2.6-dev  libncurses5-dev   
    (64 bit )
    apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
    ps. if any package can't be installed... please delete it .
    ex. If you install jdk1.6 first, and please don't install sun-java5-jdk

    7. Building the code in 64
    (if you want to build in 32 bit system, please follow the steps below)
    7.0 in "build/core/"
    	"ifneq (64,$(findstring 64,$(build_arch)))"
    	"ifneq (i686,$(findstring i686,$(build_arch)))"
    	$(warning ************************************************************)
    	$(warning You are attempting to build on a 32-bit system.)
    	$(warning Only 64-bit build environments are supported beyond froyo/2.2.)
    	$(warning ************************************************************)
    	$(error stop)
    7.0.1  in below files
    	LOCAL_CFLAGS += -m64
    	LOCAL_LDFLAGS += -m64
    	LOCAL_CFLAGS += -m32
    	LOCAL_LDFLAGS += -m32
    (64 bit system)
    7.1 	cd myandroid (goto your android source code folder)
    7.2	source build/
    7.3	lunch 1
    7.4	make or make -j 4 (if you have 4 core CPU)
    when u make finish u can use "emulator" to open the simulator 

    7.5	make sdk
    If your build fails because of a missing run-java-tool, try setting the ANDROID_JAVA_HOME environment variable before making.
    ps. If you build fails please copy the error message and google it! anyway... u can also refer to here
    8. change your environment parameter
    8.1	test "emulator", u will the the simulator popup
    9. Because "The Android SDK includes several Emulator skins that you can use to control the resolution and density of the emulated device's screen. To select a specific skin for running the emulator, create an AVD that uses that skin. Please do not use deprecated emulator options such as -skin to control the skin used by an emulator instance. For more information about AVDs, see Android Virtual Devices" in
    9.1 please copy out/host/linux-x86/"platforms" & "add-ons" to  "out/host/linux-x86" 
    9.2 check "android"
    9.3 check "android list avd" and you can see the Android Virtual Devices
    今天早上花了一點時間寫的SOP 應該沒有錯誤才對
    集結了網路上很多的文章 加上自己安裝的經驗
    最好笑的是 打到一半才發現 自己幹嘛要用英文打啊 發神經
    算了 都打了 就把整段都用英文打完好了XDD
    看不懂的人 可以再發問吧..  希望可以幫到想要玩的人
    cure vpn connec...|日誌首頁|IPHONE4 4.3.1 Jailbreak JB!!上一篇cure vpn connection terminated locally by the client reason 442 at win7...下一篇IPHONE4 4.3.1 Jailbreak JB!!