ARM_Update&Pokemon_Pause

This commit is contained in:
2016-08-04 17:39:36 -04:00
parent b8ec4e14d0
commit 1c8a7f61de
9 changed files with 306 additions and 72 deletions
+45 -6
View File
@@ -25,16 +25,33 @@
<h2 id="pre-work">Pre-work</h2>
<h3 id="tool-chain">Tool-Chain</h3>
<p>Basically, I used the native android compilation tool-chains, <a href="https://developer.android.com/ndk/downloads/index.html">Android NDK</a>, as working tools. Due to my working situation, I use a <a href="https://shield.nvidia.com/tablet/k1">Nvidia Shield Tablet</a> as target device. As <em>Zengwen</em> said in his <a href="http://zwyuan.github.io/2016/07/17/cross-compile-glib-for-android/">blog</a>, newest updated NDK might has some issue which can influence compilation progress. So you can find <a href="http://stackoverflow.com/questions/6849981/where-do-i-find-old-versions-of-android-ndk">other version</a> of NDK once you have some problems. Based on what <em>Zengwen’s</em> blog mentioned, we can write following useful system environment and export in terminal.</p>
<h3 id="prerequisites">Prerequisites</h3>
<pre><code>$ sudo apt-get install build-essential
$ sudo apt-get install pkg-config automake autoconf libtool
</code></pre>
<h3 id="link-with-standalone-tool-chains">Link with standalone tool-chains</h3>
<p>In order to build standalone tool-chains, we need first to export following system environment. After doing that, we can use following command to build a standalone tool-chains from downloaded NDK.
$ ${NDK}/build/tools/make-standalone-toolchain.sh <br />
–toolchain=arm-linux-androideabi-4.9 <br />
–stl=gnustl <br />
–arch=arm <br />
–ndk-dir=/home/moslab/Android/android-ndk-r12b <br />
–package-dir=/home/moslab/Android <br />
–install-dir=/home/moslab/Android/android-ndk-toolchain <br />
–platform=android-22</p>
<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3>
<pre><code>/# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/
<p>[TODO]-> I will fix this part later.
/# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/</p>
/# All the built binaries, libs and their header will be installed here
<pre><code>/# All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android
/# Don't mix up .pc files from your host and build target
@@ -60,7 +77,7 @@ export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r10e
/# This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain
@@ -96,6 +113,28 @@ export LIBS="-lc -lstdc++ -ld"
export LDFLAGS="-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib"
</code></pre>
<h2 id="compile-process">Compile Process</h2>
<p>To compile seafile, we should compile ccnet and libsearpc first. As for these two projects, they all have their own dependencies, so we must follow some order to run the compilation.</p>
<h3 id="libsearpc">libsearpc</h3>
<h4 id="glib">glib</h4>
<h5 id="libiconv">libiconv</h5>
<h5 id="libffi">libffi</h5>
<h5 id="gettext">gettext</h5>
<h4 id="libjasson">libjasson</h4>
<h3 id="ccnet">ccnet</h3>
<h4 id="libuuid">libuuid</h4>
<h3 id="seafile">seafile</h3>
<h2 id="preferences">Preferences</h2>
<ul>
+45 -6
View File
@@ -25,16 +25,33 @@
<h2 id="pre-work">Pre-work</h2>
<h3 id="tool-chain">Tool-Chain</h3>
<p>Basically, I used the native android compilation tool-chains, <a href="https://developer.android.com/ndk/downloads/index.html">Android NDK</a>, as working tools. Due to my working situation, I use a <a href="https://shield.nvidia.com/tablet/k1">Nvidia Shield Tablet</a> as target device. As <em>Zengwen</em> said in his <a href="http://zwyuan.github.io/2016/07/17/cross-compile-glib-for-android/">blog</a>, newest updated NDK might has some issue which can influence compilation progress. So you can find <a href="http://stackoverflow.com/questions/6849981/where-do-i-find-old-versions-of-android-ndk">other version</a> of NDK once you have some problems. Based on what <em>Zengwen’s</em> blog mentioned, we can write following useful system environment and export in terminal.</p>
<h3 id="prerequisites">Prerequisites</h3>
<pre><code>$ sudo apt-get install build-essential
$ sudo apt-get install pkg-config automake autoconf libtool
</code></pre>
<h3 id="link-with-standalone-tool-chains">Link with standalone tool-chains</h3>
<p>In order to build standalone tool-chains, we need first to export following system environment. After doing that, we can use following command to build a standalone tool-chains from downloaded NDK.
$ ${NDK}/build/tools/make-standalone-toolchain.sh <br />
–toolchain=arm-linux-androideabi-4.9 <br />
–stl=gnustl <br />
–arch=arm <br />
–ndk-dir=/home/moslab/Android/android-ndk-r12b <br />
–package-dir=/home/moslab/Android <br />
–install-dir=/home/moslab/Android/android-ndk-toolchain <br />
–platform=android-22</p>
<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3>
<pre><code>/# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/
<p>[TODO]-> I will fix this part later.
/# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/</p>
/# All the built binaries, libs and their header will be installed here
<pre><code>/# All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android
/# Don't mix up .pc files from your host and build target
@@ -60,7 +77,7 @@ export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r10e
/# This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain
@@ -96,6 +113,28 @@ export LIBS="-lc -lstdc++ -ld"
export LDFLAGS="-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib"
</code></pre>
<h2 id="compile-process">Compile Process</h2>
<p>To compile seafile, we should compile ccnet and libsearpc first. As for these two projects, they all have their own dependencies, so we must follow some order to run the compilation.</p>
<h3 id="libsearpc">libsearpc</h3>
<h4 id="glib">glib</h4>
<h5 id="libiconv">libiconv</h5>
<h5 id="libffi">libffi</h5>
<h5 id="gettext">gettext</h5>
<h4 id="libjasson">libjasson</h4>
<h3 id="ccnet">ccnet</h3>
<h4 id="libuuid">libuuid</h4>
<h3 id="seafile">seafile</h3>
<h2 id="preferences">Preferences</h2>
<ul>
+6 -6
View File
@@ -27,12 +27,12 @@ Anyway, after coming back, I think I write too much on useless words, so let me
<h2 id="todo-list">TODO List</h2>
<p>-[x] Test API
-[ ] Finish Walk Algorithm
-[ ] Finish other movement, etc. catch, hatch
-[ ] Smart Walking route
-[ ] Pokemon Predict (Thanks to Pokevision’s idea)
-[ ] Become a Pokemon Master</p>
<p>-[ ] Test API
-[ ] Finish Walk Algorithm
-[ ] Finish other movement, etc. catch, hatch
-[ ] Smart Walking route
-[ ] Pokemon Predict (Thanks to Pokevision’s idea)
-[ ] Become a Pokemon Master</p>
</description>
</item>
+6 -6
View File
@@ -27,12 +27,12 @@ Anyway, after coming back, I think I write too much on useless words, so let me
&lt;h2 id=&#34;todo-list&#34;&gt;TODO List&lt;/h2&gt;
&lt;p&gt;-[x] Test API
-[ ] Finish Walk Algorithm
-[ ] Finish other movement, etc. catch, hatch
-[ ] Smart Walking route
-[ ] Pokemon Predict (Thanks to Pokevision&amp;rsquo;s idea)
-[ ] Become a Pokemon Master&lt;/p&gt;
&lt;p&gt;-[ ] Test API
-[ ] Finish Walk Algorithm
-[ ] Finish other movement, etc. catch, hatch
-[ ] Smart Walking route
-[ ] Pokemon Predict (Thanks to Pokevision&amp;rsquo;s idea)
-[ ] Become a Pokemon Master&lt;/p&gt;
</description>
</item>