<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>build &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/build/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Fri, 09 Jan 2009 04:53:09 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Andriod 筆記(Run Application, build Image)</title>
		<link>https://blog.richliu.com/2009/01/09/681/andriod-%e7%ad%86%e8%a8%98run-application-build-image/</link>
					<comments>https://blog.richliu.com/2009/01/09/681/andriod-%e7%ad%86%e8%a8%98run-application-build-image/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 09 Jan 2009 03:30:50 +0000</pubDate>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[隨手札記]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=681</guid>

					<description><![CDATA[<p>最近不小心手滑買了一隻 Android Dev Phone 1 長得和 T-Mobile G1 的外型是一樣的 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2009/01/09/681/andriod-%e7%ad%86%e8%a8%98run-application-build-image/">Andriod 筆記(Run Application, build Image)</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>最近不小心手滑買了一隻 <a href="http://code.google.com/intl/zh-TW/android/dev-devices.html" target="_blank" rel="noopener">Android Dev Phone 1</a> 長得和 T-Mobile G1 的外型是一樣的.<br />
雖然還沒有到貨, 但是準備工作要先作好.<br />
<span id="more-681"></span></p>
<h2>== Android Software Development ==</h2>
<p>Download SDK<br />
==============</p>
<p>http://code.google.com/intl/zh-TW/android/download_list.html</p>
<p>下載 SDK 之後, 我是解壓在 /home 下</p>
<p>Download Eclipse<br />
==============</p>
<p>安裝之前先移除系統中原有的 Eclipse(?), 直接下載 Eclipse</p>
<p>http://www.eclipse.org/downloads/</p>
<p>我是下載 Eclipse 3.4.1 Classic (151M)</p>
<p>解壓到 /home 下. 目錄在 /home/eclipse</p>
<p>直接到 /home/eclipse 執行 ./eclipse 就可以了 (似乎用 ubuntu 的 openjdk 會比較快)</p>
<p>Download WTP<br />
==============</p>
<p>用 http://code.google.com/intl/zh-TW/android/intro/installing.html#installingplugin 安裝 ADT 的方式, 安裝 WTP.<br />
如果沒有先安裝 WTP, 安裝 ADT 會有問題, ADT 可以用 plugin 下載, 記得選 WTP 3.0.3 就好了, 不用全選.</p>
<p>http://download.eclipse.org/webtools/updates/</p>
<p>Download ADT<br />
==============</p>
<p>http://code.google.com/intl/zh-TW/android/intro/installing.html#installingplugin</p>
<p>Write a sample program<br />
==============</p>
<p>http://code.google.com/intl/zh-TW/android/intro/develop-and-debug.html#developingwitheclipse</p>
<p>我是 New Project 之後, 選 Hello, Activity! 這個 sample code 做為 base.<br />
在 Run 之前, 要先用 create a Launch configuration</p>
<p>順利的話, 就可以叫出 Android Emulator.</p>
<h2>== Android Image Development ==</h2>
<p>這一段是編 image 的.</p>
<p>Update System Package<br />
==============</p>
<p>http://source.android.com/download</p>
<div style="margin-top: 0px; margin-bottom: 0px;">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: arial,sans-serif;">
<div style="margin-top: 0px; margin-bottom: 0px;">
<ul style="margin-top: 0px; margin-bottom: 0px;">
<li style="margin-top: 8px; margin-bottom: 8px; font-family: arial,sans-serif;">安裝 Git</li>
</ul>
</div>
</div>
</div>
<blockquote style="border: medium none ; margin: 0pt 0pt 0pt 40px; padding: 0px;"><p><span style="font-family: arial;"><span style="font-weight: normal; font-size: 13px; word-spacing: 0px; text-transform: none; text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; color: #000000;"><span style="font-family: courier new,monospace;">$ </span></span><span style="font-family: courier new,monospace;">sudo apt-get install git-core gnupg</span></span></p></blockquote>
<div>
<div style="margin-top: 0px; margin-bottom: 0px;">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: arial,sans-serif;">
<div style="margin-top: 0px; margin-bottom: 0px;">
<ul style="margin-top: 0px; margin-bottom: 0px;">
<li style="margin-top: 8px; margin-bottom: 8px; font-family: arial,sans-serif;">JDK 5.0, update 12 or higher. 個人用了以後, 用 java5 jdk 似乎比較容易成功.</li>
</ul>
</div>
</div>
</div>
</div>
<blockquote style="border: medium none ; margin: 0pt 0pt 0pt 40px; padding: 0px;"><p><span style="font-family: arial;"><span style="font-weight: normal; font-size: 13px; word-spacing: 0px; text-transform: none; text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; color: #000000;"><span style="font-family: courier new,monospace;">$ </span></span><span style="font-family: courier new,monospace;">sudo apt-get install sun-java5-jdk</span></span></p></blockquote>
<div>
<div style="margin-top: 0px; margin-bottom: 0px;">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: arial,sans-serif;">
<div style="margin-top: 0px; margin-bottom: 0px;">
<ul style="margin-top: 0px; margin-bottom: 0px;">
<li style="margin-top: 8px; margin-bottom: 8px; font-family: arial,sans-serif;"><span style="font-family: arial,sans-serif;">The following packages: </span><span style="line-height: 16px;"><span style="font-family: arial,sans-serif;">flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl. </span></span></li>
</ul>
</div>
</div>
</div>
</div>
<blockquote style="border: medium none ; margin: 0pt 0pt 0pt 40px; padding: 0px;"><p><span style="font-family: arial;"><span style="font-family: courier new,monospace;">$ sudo apt-get install flex bison gperf </span><span style="word-spacing: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; font-family: courier new,monospace; color: #000000;"><span style="line-height: 16px;">libsdl-dev libesd0-dev </span></span><span style="font-family: courier new,monospace;">libwxgtk2.6-dev build-essential zip</span><span style="font-family: arial,sans-serif;"><span style="font-family: courier new,monospace;"> curl li</span><span><span style="font-family: courier new,monospace;">b</span></span><span><span style="font-family: courier new,monospace;">ncurses5-dev zlib1g-dev<br />
</span></span></span></span></p></blockquote>
<div>
<div style="margin-top: 0px; margin-bottom: 0px;">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: arial,sans-serif;">
<div style="margin-top: 0px; margin-bottom: 0px;">
<ul style="margin-top: 0px; margin-bottom: 0px;">
<li style="margin-top: 8px; margin-bottom: 8px;"><span style="word-spacing: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; font-family: courier new,monospace; color: #000000;"><span style="line-height: 16px;"><span style="font-family: arial,sans-serif;">You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc. </span></span></span></li>
</ul>
</div>
</div>
</div>
</div>
<blockquote style="border: medium none ; margin: 0pt 0pt 0pt 40px; padding: 0px;">
<div><span style="border-collapse: separate; line-height: 16px; font-family: courier new;">$ sudo apt-get install valgrind<br />
</span></div>
</blockquote>
<ul>
<li><span style="word-spacing: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; font-family: courier new,monospace; color: #000000;"><span style="line-height: 16px;"><span style="font-family: arial,sans-serif;">Intrepid (</span></span></span>8.10) users may need a newer version of libreadline: (原文有問題, 應該是 libreadline5-dev 才對)</li>
</ul>
<p style="padding-left: 30px;"><span style="font-family: courier new,monospace;">$ sudo apt-get install libreadline5-dev</span></p>
<p>Get repo tools<br />
==============</p>
<p>* repo is not a new tools. It is just a wrap for git command.</p>
<p># mkdir ~/bin<br />
# curl http://android.git.kernel.org/repo &gt; ~/bin/repo<br />
# chmod a+x ~/bin/repo<br />
Get Android Source<br />
==================</p>
<p># cd /home/mydroid<br />
# repo init -u git://android.git.kernel.org/platform/manifest.git</p>
<p># repo sync</p>
<p>Compile Android Source<br />
==================</p>
<p># cd /usr/lib/jvm/java-1.5.0-sun<br />
# export JAVA_HOME=`pwd`<br />
# export PATH=$JAVA_HOME/bin:$PATH<br />
# cd /home/mydroid<br />
# make clean<br />
# make</p>
<p>如果中間 compile 有 JVM core dump or compile failed, 記得多試幾次.</p>
<p>(待續)</p>
<p>Ref. <a href="http://virtuallyshocking.com/2008/12/20/building-android-for-the-asus-eeepc-701/" target="_blank" rel="noopener">Building Android for the Asus Eee PC 701</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2009/01/09/681/andriod-%e7%ad%86%e8%a8%98run-application-build-image/">Andriod 筆記(Run Application, build Image)</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2009/01/09/681/andriod-%e7%ad%86%e8%a8%98run-application-build-image/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
