4、执行make命令开始编译
root@ubuntu:
~
# make
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / ndldic.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / ndrdic.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / necode.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / ndcommon.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / nj_str.c
target SharedLib: libwnndict (out / target / product / generic / obj / SHARED_LIBRARIES / libwnndict_intermediates / LINKED / libwnndict.so)
target Non - prelinked: libwnndict (out / target / product / generic / symbols / system / lib / libwnndict.so)
target Strip: libwnndict (out / target / product / generic / obj / lib / libwnndict.so)
Generated: (out / target / product / generic / android - info.txt)
Target system fs p_w_picpath: out / target / product / generic / obj / PACKAGING / systemp_w_picpath_unopt_intermediates / system.img
Install system fs p_w_picpath: out / target / product / generic / system.img
Target ram disk: out / target / product / generic / ramdisk.img
Target userdata fs p_w_picpath: out / target / product / generic / userdata.img
Installed file list: out / target / product / generic / installed - files.txt
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / ndldic.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / ndrdic.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / necode.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / ndcommon.c
target thumb C: libwnndict <= packages / inputmethods / OpenWnn / libs / libwnnDictionary / engine / nj_str.c
target SharedLib: libwnndict (out / target / product / generic / obj / SHARED_LIBRARIES / libwnndict_intermediates / LINKED / libwnndict.so)
target Non - prelinked: libwnndict (out / target / product / generic / symbols / system / lib / libwnndict.so)
target Strip: libwnndict (out / target / product / generic / obj / lib / libwnndict.so)
Generated: (out / target / product / generic / android - info.txt)
Target system fs p_w_picpath: out / target / product / generic / obj / PACKAGING / systemp_w_picpath_unopt_intermediates / system.img
Install system fs p_w_picpath: out / target / product / generic / system.img
Target ram disk: out / target / product / generic / ramdisk.img
Target userdata fs p_w_picpath: out / target / product / generic / userdata.img
Installed file list: out / target / product / generic / installed - files.txt
出现上面的提示信息说明编译已经完成,同时会发现在代码目录下多了一个out目录。
lvs@ubuntu:
~
$ ls
bianyi andorind.odt Desktop hardware prebuilt 模板 音乐
bionic development Makefile repo 视频 桌面
bootable examples.desktop myandroid system 图片
build external out vendor 文档
dalvik frameworks packages 公共的 下载
bianyi andorind.odt Desktop hardware prebuilt 模板 音乐
bionic development Makefile repo 视频 桌面
bootable examples.desktop myandroid system 图片
build external out vendor 文档
dalvik frameworks packages 公共的 下载
5、安装Android模拟器android-sdk-linux_x86
到google网站下载
http://developer.android.com/sdk/index.html页面下载android-sdk_r04-linux_x86.tgz到/usr/local/并解压,加压后文件夹/usr/local/android-sdk-linux_86/tools/中包含有 emulator模拟器。
编辑/etc/profile添加模拟器执行环境变量
# Android emulator
PATH = ”$PATH: / home / lvs / out / host / linux - x86 / bin”
ANDROID_PRODUCT_OUT =/ home / lvs / out / target / product / generic
export ANDROID_PRODUCT_OUT
PATH = ”$PATH: / home / lvs / out / host / linux - x86 / bin”
ANDROID_PRODUCT_OUT =/ home / lvs / out / target / product / generic
export ANDROID_PRODUCT_OUT
启动模拟器
root@ubuntu:
~/
out
/
target
/
product
/
generic#
/
usr
/
local
/
android
-
sdk
-
linux_86
/
tools
/
emulator
-
p_w_picpath system.img
-
data userdata.img
-
ramdisk ramdisk.img


原文地址: http://tech.it168.com/a2010/0119/840/000000840014_3.shtml
转载于:https://blog.51cto.com/2423986/1098147