From 2b41cced49a36b925a51667304494f74df57e580 Mon Sep 17 00:00:00 2001 From: CoderSherlock Date: Mon, 1 Aug 2016 20:06:38 -0400 Subject: [PATCH] ARM_update --- categories/2016_07/index.html | 32 +++--- categories/2016_07/index.xml | 97 ++++++++++++++--- categories/2016_07/page/1/index.html | 2 +- categories/index.html | 24 ++--- index.html | 32 +++--- index.xml | 97 ++++++++++++++--- page/1/index.html | 2 +- post/Cross-Compile-Seafile-2-ARM/index.html | 113 ++++++++++++++++---- post/Pokemon-Go-Hack/index.html | 56 +++++----- post/index.html | 32 +++--- post/index.xml | 97 ++++++++++++++--- post/page/1/index.html | 2 +- sitemap.xml | 6 +- tags/android/index.html | 28 ++--- tags/android/index.xml | 79 +++++++++++++- tags/android/page/1/index.html | 2 +- tags/arm/index.html | 28 ++--- tags/arm/index.xml | 79 +++++++++++++- tags/arm/page/1/index.html | 2 +- tags/github/index.html | 28 ++--- tags/github/index.xml | 22 ++-- tags/github/page/1/index.html | 2 +- tags/hack/index.html | 28 ++--- tags/hack/index.xml | 22 ++-- tags/hack/page/1/index.html | 2 +- tags/index.html | 24 ++--- 26 files changed, 676 insertions(+), 262 deletions(-) diff --git a/categories/2016_07/index.html b/categories/2016_07/index.html index b2e2efd..b3c3946 100644 --- a/categories/2016_07/index.html +++ b/categories/2016_07/index.html @@ -9,9 +9,9 @@ - - - + + + 2016_07 - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario
- Pokemon Go Hack + Pokemon Go Hack - Cross Compile Seafile 2 ARM + Cross Compile Seafile 2 ARM
@@ -119,7 +119,7 @@
- 2016_07 + 2016_07
@@ -130,13 +130,13 @@
- android + android - arm + arm - github + github - hack + hack
diff --git a/categories/2016_07/index.xml b/categories/2016_07/index.xml index 73af079..66e7a11 100644 --- a/categories/2016_07/index.xml +++ b/categories/2016_07/index.xml @@ -2,19 +2,19 @@ 2016_07 on Mil años de solitario - CoderSherlock.github.io/categories/2016_07/ + https://CoderSherlock.github.io/categories/2016_07/ Recent content in 2016_07 on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 18:10:20 -0400 - + Pokemon Go Hack - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ Sat, 30 Jul 2016 18:10:20 -0400 - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ <h1 id="catch-them-all-until-bored">Catch them all until bored</h1> @@ -27,23 +27,21 @@ Anyway, after coming back, I think I write too much on useless words, so let me <h2 id="todo-list">TODO List</h2> -<ul> -<li>[X] Test API</li> -<li>[ ] Finish Walk Algorithm</li> -<li>[ ] Finish other movement, etc. catch, hatch</li> -<li>[ ] Smart Walking route</li> -<li>[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea)</li> -<li>[ ] Become a Pokemon Master</li> -</ul> +<p>-[x] Test API +-[ ] Finish Walk Algorithm +-[ ] Finish other movement, etc. catch, hatch +-[ ] Smart Walking route +-[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea) +-[ ] Become a Pokemon Master</p> Cross Compile Seafile 2 ARM - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ Sat, 30 Jul 2016 14:02:34 -0400 - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ <h1 id="cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</h1> @@ -53,6 +51,77 @@ Anyway, after coming back, I think I write too much on useless words, so let me <p>This project is working for delta sync from mobile to server. Currently, there&rsquo;s no mobile program/solution has supporting to delta sync(Include Dropbox/ Goggle Drive). But the truth is that almost every pc version sync program can work as delta sync properly or not. So in this article, I&rsquo;ll provide a workbench for cross compilation and evaluation. And finally come up with a reason of how to port better incremental synchronize solution on mobile platform.</p> <h2 id="pre-work">Pre-work</h2> + +<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3> + +<pre><code>/# Android NDK sources and standalone toolchain is put here +export DEV=${HOME}/dev + +/# 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 +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig + +/# GCC for Android version to use +/# 4.9 is the only available version since NDK r11! +export GCC_VER=4.9 + +/# The building system we are using (Linux x86_64) +export BUILD_SYS=x86_64-linux-gnu + +/# Set Android target API level +export ANDROID_API=19 + +/# Set Android target arch +export ANDROID_ARCH=arm + +/# Set Android target name, according to Table 2 in +/# https://developer.android.com/ndk/guides/standalone_toolchain.html +export ANDROID_TARGET=armv5te-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 +export NDK=${DEV}/android-ndk + +/# The path of standalone NDK toolchain +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain + +/# Set Android Sysroot according to API and arch +export SYSROOT=${NDK_TOOLCHAIN}/sysroot +/# this one is the absolute, prebuilt path +/# export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} + +/# Binutils path +export CROSS_PREFIX=${NDK_TOOLCHAIN}/bin/${TOOLCHAIN} +/# this one is the absolute, prebuilt path +/# export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} + +/# Non-exhaustive lists of compiler + binutils +export AR=${CROSS_PREFIX}-ar +export AS=${CROSS_PREFIX}-as +export LD=${CROSS_PREFIX}-ld +export NM=${CROSS_PREFIX}-nm +export CC=${CROSS_PREFIX}-gcc +export CXX=${CROSS_PREFIX}-g++ +export CPP=${CROSS_PREFIX}-cpp +export CXXCPP=${CROSS_PREFIX}-cpp +export STRIP=${CROSS_PREFIX}-strip +export RANLIB=${CROSS_PREFIX}-ranlib +export STRINGS=${CROSS_PREFIX}-strings + +/# Set build flags +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib +export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot; +export CXXFLAGS=${CFLAGS} +export CPPFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${NDK_TOOLCHAIN}/include/c++/ -DANDROID -DNO_XMALLOC -mandroid&quot; +export LIBS=&quot;-lc&quot; +export LDFLAGS=&quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib&quot; +</code></pre> diff --git a/categories/2016_07/page/1/index.html b/categories/2016_07/page/1/index.html index 27a2398..c8020eb 100644 --- a/categories/2016_07/page/1/index.html +++ b/categories/2016_07/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/categories/index.html b/categories/index.html index 6294273..8eaef02 100644 --- a/categories/index.html +++ b/categories/index.html @@ -9,9 +9,9 @@ - - - + + + Categories - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -88,7 +88,7 @@ @@ -99,13 +99,13 @@ diff --git a/index.html b/index.html index c7e3cad..8ab24f5 100644 --- a/index.html +++ b/index.html @@ -9,9 +9,9 @@ - - - + + + Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -117,7 +117,7 @@ @@ -128,13 +128,13 @@ diff --git a/index.xml b/index.xml index 2f33683..4fff2f8 100644 --- a/index.xml +++ b/index.xml @@ -2,19 +2,19 @@ Mil años de solitario - CoderSherlock.github.io/ + https://CoderSherlock.github.io/ Recent content on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 18:10:20 -0400 - + Pokemon Go Hack - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ Sat, 30 Jul 2016 18:10:20 -0400 - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ <h1 id="catch-them-all-until-bored">Catch them all until bored</h1> @@ -27,23 +27,21 @@ Anyway, after coming back, I think I write too much on useless words, so let me <h2 id="todo-list">TODO List</h2> -<ul> -<li>[X] Test API</li> -<li>[ ] Finish Walk Algorithm</li> -<li>[ ] Finish other movement, etc. catch, hatch</li> -<li>[ ] Smart Walking route</li> -<li>[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea)</li> -<li>[ ] Become a Pokemon Master</li> -</ul> +<p>-[x] Test API +-[ ] Finish Walk Algorithm +-[ ] Finish other movement, etc. catch, hatch +-[ ] Smart Walking route +-[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea) +-[ ] Become a Pokemon Master</p> Cross Compile Seafile 2 ARM - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ Sat, 30 Jul 2016 14:02:34 -0400 - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ <h1 id="cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</h1> @@ -53,6 +51,77 @@ Anyway, after coming back, I think I write too much on useless words, so let me <p>This project is working for delta sync from mobile to server. Currently, there&rsquo;s no mobile program/solution has supporting to delta sync(Include Dropbox/ Goggle Drive). But the truth is that almost every pc version sync program can work as delta sync properly or not. So in this article, I&rsquo;ll provide a workbench for cross compilation and evaluation. And finally come up with a reason of how to port better incremental synchronize solution on mobile platform.</p> <h2 id="pre-work">Pre-work</h2> + +<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3> + +<pre><code>/# Android NDK sources and standalone toolchain is put here +export DEV=${HOME}/dev + +/# 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 +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig + +/# GCC for Android version to use +/# 4.9 is the only available version since NDK r11! +export GCC_VER=4.9 + +/# The building system we are using (Linux x86_64) +export BUILD_SYS=x86_64-linux-gnu + +/# Set Android target API level +export ANDROID_API=19 + +/# Set Android target arch +export ANDROID_ARCH=arm + +/# Set Android target name, according to Table 2 in +/# https://developer.android.com/ndk/guides/standalone_toolchain.html +export ANDROID_TARGET=armv5te-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 +export NDK=${DEV}/android-ndk + +/# The path of standalone NDK toolchain +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain + +/# Set Android Sysroot according to API and arch +export SYSROOT=${NDK_TOOLCHAIN}/sysroot +/# this one is the absolute, prebuilt path +/# export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} + +/# Binutils path +export CROSS_PREFIX=${NDK_TOOLCHAIN}/bin/${TOOLCHAIN} +/# this one is the absolute, prebuilt path +/# export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} + +/# Non-exhaustive lists of compiler + binutils +export AR=${CROSS_PREFIX}-ar +export AS=${CROSS_PREFIX}-as +export LD=${CROSS_PREFIX}-ld +export NM=${CROSS_PREFIX}-nm +export CC=${CROSS_PREFIX}-gcc +export CXX=${CROSS_PREFIX}-g++ +export CPP=${CROSS_PREFIX}-cpp +export CXXCPP=${CROSS_PREFIX}-cpp +export STRIP=${CROSS_PREFIX}-strip +export RANLIB=${CROSS_PREFIX}-ranlib +export STRINGS=${CROSS_PREFIX}-strings + +/# Set build flags +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib +export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot; +export CXXFLAGS=${CFLAGS} +export CPPFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${NDK_TOOLCHAIN}/include/c++/ -DANDROID -DNO_XMALLOC -mandroid&quot; +export LIBS=&quot;-lc&quot; +export LDFLAGS=&quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib&quot; +</code></pre> diff --git a/page/1/index.html b/page/1/index.html index fff6383..a0e0697 100644 --- a/page/1/index.html +++ b/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/post/Cross-Compile-Seafile-2-ARM/index.html b/post/Cross-Compile-Seafile-2-ARM/index.html index 0a343bf..566577b 100644 --- a/post/Cross-Compile-Seafile-2-ARM/index.html +++ b/post/Cross-Compile-Seafile-2-ARM/index.html @@ -9,9 +9,9 @@ - - - + + + Cross Compile Seafile 2 ARM - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -143,7 +214,7 @@ @@ -154,13 +225,13 @@ diff --git a/post/Pokemon-Go-Hack/index.html b/post/Pokemon-Go-Hack/index.html index 47b0e46..c75b239 100644 --- a/post/Pokemon-Go-Hack/index.html +++ b/post/Pokemon-Go-Hack/index.html @@ -9,9 +9,9 @@ - - - + + + Pokemon Go Hack - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -154,7 +152,7 @@ Anyway, after coming back, I think I write too much on useless words, so let me @@ -165,13 +163,13 @@ Anyway, after coming back, I think I write too much on useless words, so let me diff --git a/post/index.html b/post/index.html index 0ad41a7..594221f 100644 --- a/post/index.html +++ b/post/index.html @@ -9,9 +9,9 @@ - - - + + + Posts - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -119,7 +119,7 @@ @@ -130,13 +130,13 @@ diff --git a/post/index.xml b/post/index.xml index b607056..9d581d5 100644 --- a/post/index.xml +++ b/post/index.xml @@ -2,19 +2,19 @@ Posts on Mil años de solitario - CoderSherlock.github.io/post/ + https://CoderSherlock.github.io/post/ Recent content in Posts on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 18:10:20 -0400 - + Pokemon Go Hack - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ Sat, 30 Jul 2016 18:10:20 -0400 - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ <h1 id="catch-them-all-until-bored">Catch them all until bored</h1> @@ -27,23 +27,21 @@ Anyway, after coming back, I think I write too much on useless words, so let me <h2 id="todo-list">TODO List</h2> -<ul> -<li>[X] Test API</li> -<li>[ ] Finish Walk Algorithm</li> -<li>[ ] Finish other movement, etc. catch, hatch</li> -<li>[ ] Smart Walking route</li> -<li>[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea)</li> -<li>[ ] Become a Pokemon Master</li> -</ul> +<p>-[x] Test API +-[ ] Finish Walk Algorithm +-[ ] Finish other movement, etc. catch, hatch +-[ ] Smart Walking route +-[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea) +-[ ] Become a Pokemon Master</p> Cross Compile Seafile 2 ARM - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ Sat, 30 Jul 2016 14:02:34 -0400 - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ <h1 id="cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</h1> @@ -53,6 +51,77 @@ Anyway, after coming back, I think I write too much on useless words, so let me <p>This project is working for delta sync from mobile to server. Currently, there&rsquo;s no mobile program/solution has supporting to delta sync(Include Dropbox/ Goggle Drive). But the truth is that almost every pc version sync program can work as delta sync properly or not. So in this article, I&rsquo;ll provide a workbench for cross compilation and evaluation. And finally come up with a reason of how to port better incremental synchronize solution on mobile platform.</p> <h2 id="pre-work">Pre-work</h2> + +<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3> + +<pre><code>/# Android NDK sources and standalone toolchain is put here +export DEV=${HOME}/dev + +/# 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 +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig + +/# GCC for Android version to use +/# 4.9 is the only available version since NDK r11! +export GCC_VER=4.9 + +/# The building system we are using (Linux x86_64) +export BUILD_SYS=x86_64-linux-gnu + +/# Set Android target API level +export ANDROID_API=19 + +/# Set Android target arch +export ANDROID_ARCH=arm + +/# Set Android target name, according to Table 2 in +/# https://developer.android.com/ndk/guides/standalone_toolchain.html +export ANDROID_TARGET=armv5te-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 +export NDK=${DEV}/android-ndk + +/# The path of standalone NDK toolchain +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain + +/# Set Android Sysroot according to API and arch +export SYSROOT=${NDK_TOOLCHAIN}/sysroot +/# this one is the absolute, prebuilt path +/# export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} + +/# Binutils path +export CROSS_PREFIX=${NDK_TOOLCHAIN}/bin/${TOOLCHAIN} +/# this one is the absolute, prebuilt path +/# export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} + +/# Non-exhaustive lists of compiler + binutils +export AR=${CROSS_PREFIX}-ar +export AS=${CROSS_PREFIX}-as +export LD=${CROSS_PREFIX}-ld +export NM=${CROSS_PREFIX}-nm +export CC=${CROSS_PREFIX}-gcc +export CXX=${CROSS_PREFIX}-g++ +export CPP=${CROSS_PREFIX}-cpp +export CXXCPP=${CROSS_PREFIX}-cpp +export STRIP=${CROSS_PREFIX}-strip +export RANLIB=${CROSS_PREFIX}-ranlib +export STRINGS=${CROSS_PREFIX}-strings + +/# Set build flags +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib +export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot; +export CXXFLAGS=${CFLAGS} +export CPPFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${NDK_TOOLCHAIN}/include/c++/ -DANDROID -DNO_XMALLOC -mandroid&quot; +export LIBS=&quot;-lc&quot; +export LDFLAGS=&quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib&quot; +</code></pre> diff --git a/post/page/1/index.html b/post/page/1/index.html index d92e1c8..e6f2b8c 100644 --- a/post/page/1/index.html +++ b/post/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 34cedb4..8fe1ca5 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2,17 +2,17 @@ - /CoderSherlock.github.io/ + https://codersherlock.github.io/ 2016-07-30T18:10:20-04:00 - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ 2016-07-30T18:10:20-04:00 - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ 2016-07-30T14:02:34-04:00 diff --git a/tags/android/index.html b/tags/android/index.html index f27737a..d061aa4 100644 --- a/tags/android/index.html +++ b/tags/android/index.html @@ -9,9 +9,9 @@ - - - + + + Android - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -103,7 +103,7 @@ @@ -114,13 +114,13 @@ diff --git a/tags/android/index.xml b/tags/android/index.xml index 31bfca0..48a2be8 100644 --- a/tags/android/index.xml +++ b/tags/android/index.xml @@ -2,19 +2,19 @@ Android on Mil años de solitario - CoderSherlock.github.io/tags/android/ + https://CoderSherlock.github.io/tags/android/ Recent content in Android on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 14:02:34 -0400 - + Cross Compile Seafile 2 ARM - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ Sat, 30 Jul 2016 14:02:34 -0400 - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ <h1 id="cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</h1> @@ -24,6 +24,77 @@ <p>This project is working for delta sync from mobile to server. Currently, there&rsquo;s no mobile program/solution has supporting to delta sync(Include Dropbox/ Goggle Drive). But the truth is that almost every pc version sync program can work as delta sync properly or not. So in this article, I&rsquo;ll provide a workbench for cross compilation and evaluation. And finally come up with a reason of how to port better incremental synchronize solution on mobile platform.</p> <h2 id="pre-work">Pre-work</h2> + +<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3> + +<pre><code>/# Android NDK sources and standalone toolchain is put here +export DEV=${HOME}/dev + +/# 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 +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig + +/# GCC for Android version to use +/# 4.9 is the only available version since NDK r11! +export GCC_VER=4.9 + +/# The building system we are using (Linux x86_64) +export BUILD_SYS=x86_64-linux-gnu + +/# Set Android target API level +export ANDROID_API=19 + +/# Set Android target arch +export ANDROID_ARCH=arm + +/# Set Android target name, according to Table 2 in +/# https://developer.android.com/ndk/guides/standalone_toolchain.html +export ANDROID_TARGET=armv5te-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 +export NDK=${DEV}/android-ndk + +/# The path of standalone NDK toolchain +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain + +/# Set Android Sysroot according to API and arch +export SYSROOT=${NDK_TOOLCHAIN}/sysroot +/# this one is the absolute, prebuilt path +/# export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} + +/# Binutils path +export CROSS_PREFIX=${NDK_TOOLCHAIN}/bin/${TOOLCHAIN} +/# this one is the absolute, prebuilt path +/# export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} + +/# Non-exhaustive lists of compiler + binutils +export AR=${CROSS_PREFIX}-ar +export AS=${CROSS_PREFIX}-as +export LD=${CROSS_PREFIX}-ld +export NM=${CROSS_PREFIX}-nm +export CC=${CROSS_PREFIX}-gcc +export CXX=${CROSS_PREFIX}-g++ +export CPP=${CROSS_PREFIX}-cpp +export CXXCPP=${CROSS_PREFIX}-cpp +export STRIP=${CROSS_PREFIX}-strip +export RANLIB=${CROSS_PREFIX}-ranlib +export STRINGS=${CROSS_PREFIX}-strings + +/# Set build flags +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib +export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot; +export CXXFLAGS=${CFLAGS} +export CPPFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${NDK_TOOLCHAIN}/include/c++/ -DANDROID -DNO_XMALLOC -mandroid&quot; +export LIBS=&quot;-lc&quot; +export LDFLAGS=&quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib&quot; +</code></pre> diff --git a/tags/android/page/1/index.html b/tags/android/page/1/index.html index 8528d08..6d4097e 100644 --- a/tags/android/page/1/index.html +++ b/tags/android/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tags/arm/index.html b/tags/arm/index.html index a7909d1..c730acb 100644 --- a/tags/arm/index.html +++ b/tags/arm/index.html @@ -9,9 +9,9 @@ - - - + + + Arm - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -103,7 +103,7 @@ @@ -114,13 +114,13 @@ diff --git a/tags/arm/index.xml b/tags/arm/index.xml index 0aed146..ef113fb 100644 --- a/tags/arm/index.xml +++ b/tags/arm/index.xml @@ -2,19 +2,19 @@ Arm on Mil años de solitario - CoderSherlock.github.io/tags/arm/ + https://CoderSherlock.github.io/tags/arm/ Recent content in Arm on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 14:02:34 -0400 - + Cross Compile Seafile 2 ARM - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ Sat, 30 Jul 2016 14:02:34 -0400 - /CoderSherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ + https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/ <h1 id="cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</h1> @@ -24,6 +24,77 @@ <p>This project is working for delta sync from mobile to server. Currently, there&rsquo;s no mobile program/solution has supporting to delta sync(Include Dropbox/ Goggle Drive). But the truth is that almost every pc version sync program can work as delta sync properly or not. So in this article, I&rsquo;ll provide a workbench for cross compilation and evaluation. And finally come up with a reason of how to port better incremental synchronize solution on mobile platform.</p> <h2 id="pre-work">Pre-work</h2> + +<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3> + +<pre><code>/# Android NDK sources and standalone toolchain is put here +export DEV=${HOME}/dev + +/# 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 +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig + +/# GCC for Android version to use +/# 4.9 is the only available version since NDK r11! +export GCC_VER=4.9 + +/# The building system we are using (Linux x86_64) +export BUILD_SYS=x86_64-linux-gnu + +/# Set Android target API level +export ANDROID_API=19 + +/# Set Android target arch +export ANDROID_ARCH=arm + +/# Set Android target name, according to Table 2 in +/# https://developer.android.com/ndk/guides/standalone_toolchain.html +export ANDROID_TARGET=armv5te-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 +export NDK=${DEV}/android-ndk + +/# The path of standalone NDK toolchain +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain + +/# Set Android Sysroot according to API and arch +export SYSROOT=${NDK_TOOLCHAIN}/sysroot +/# this one is the absolute, prebuilt path +/# export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} + +/# Binutils path +export CROSS_PREFIX=${NDK_TOOLCHAIN}/bin/${TOOLCHAIN} +/# this one is the absolute, prebuilt path +/# export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} + +/# Non-exhaustive lists of compiler + binutils +export AR=${CROSS_PREFIX}-ar +export AS=${CROSS_PREFIX}-as +export LD=${CROSS_PREFIX}-ld +export NM=${CROSS_PREFIX}-nm +export CC=${CROSS_PREFIX}-gcc +export CXX=${CROSS_PREFIX}-g++ +export CPP=${CROSS_PREFIX}-cpp +export CXXCPP=${CROSS_PREFIX}-cpp +export STRIP=${CROSS_PREFIX}-strip +export RANLIB=${CROSS_PREFIX}-ranlib +export STRINGS=${CROSS_PREFIX}-strings + +/# Set build flags +/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html +export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib +export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot; +export CXXFLAGS=${CFLAGS} +export CPPFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${NDK_TOOLCHAIN}/include/c++/ -DANDROID -DNO_XMALLOC -mandroid&quot; +export LIBS=&quot;-lc&quot; +export LDFLAGS=&quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib&quot; +</code></pre> diff --git a/tags/arm/page/1/index.html b/tags/arm/page/1/index.html index 31a114a..ccaec3d 100644 --- a/tags/arm/page/1/index.html +++ b/tags/arm/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tags/github/index.html b/tags/github/index.html index bfa684f..74a990e 100644 --- a/tags/github/index.html +++ b/tags/github/index.html @@ -9,9 +9,9 @@ - - - + + + Github - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -103,7 +103,7 @@ @@ -114,13 +114,13 @@ diff --git a/tags/github/index.xml b/tags/github/index.xml index c307169..975f967 100644 --- a/tags/github/index.xml +++ b/tags/github/index.xml @@ -2,19 +2,19 @@ Github on Mil años de solitario - CoderSherlock.github.io/tags/github/ + https://CoderSherlock.github.io/tags/github/ Recent content in Github on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 18:10:20 -0400 - + Pokemon Go Hack - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ Sat, 30 Jul 2016 18:10:20 -0400 - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ <h1 id="catch-them-all-until-bored">Catch them all until bored</h1> @@ -27,14 +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> -<ul> -<li>[X] Test API</li> -<li>[ ] Finish Walk Algorithm</li> -<li>[ ] Finish other movement, etc. catch, hatch</li> -<li>[ ] Smart Walking route</li> -<li>[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea)</li> -<li>[ ] Become a Pokemon Master</li> -</ul> +<p>-[x] Test API +-[ ] Finish Walk Algorithm +-[ ] Finish other movement, etc. catch, hatch +-[ ] Smart Walking route +-[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea) +-[ ] Become a Pokemon Master</p> diff --git a/tags/github/page/1/index.html b/tags/github/page/1/index.html index 8cea312..aaf507f 100644 --- a/tags/github/page/1/index.html +++ b/tags/github/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tags/hack/index.html b/tags/hack/index.html index b98c9c9..dd0cd45 100644 --- a/tags/hack/index.html +++ b/tags/hack/index.html @@ -9,9 +9,9 @@ - - - + + + Hack - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -103,7 +103,7 @@ @@ -114,13 +114,13 @@ diff --git a/tags/hack/index.xml b/tags/hack/index.xml index ae68e9b..f9c071f 100644 --- a/tags/hack/index.xml +++ b/tags/hack/index.xml @@ -2,19 +2,19 @@ Hack on Mil años de solitario - CoderSherlock.github.io/tags/hack/ + https://CoderSherlock.github.io/tags/hack/ Recent content in Hack on Mil años de solitario Hugo -- gohugo.io en-us Sat, 30 Jul 2016 18:10:20 -0400 - + Pokemon Go Hack - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ Sat, 30 Jul 2016 18:10:20 -0400 - /CoderSherlock.github.io/post/Pokemon-Go-Hack/ + https://codersherlock.github.io/post/Pokemon-Go-Hack/ <h1 id="catch-them-all-until-bored">Catch them all until bored</h1> @@ -27,14 +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> -<ul> -<li>[X] Test API</li> -<li>[ ] Finish Walk Algorithm</li> -<li>[ ] Finish other movement, etc. catch, hatch</li> -<li>[ ] Smart Walking route</li> -<li>[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea)</li> -<li>[ ] Become a Pokemon Master</li> -</ul> +<p>-[x] Test API +-[ ] Finish Walk Algorithm +-[ ] Finish other movement, etc. catch, hatch +-[ ] Smart Walking route +-[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea) +-[ ] Become a Pokemon Master</p> diff --git a/tags/hack/page/1/index.html b/tags/hack/page/1/index.html index ebb0199..9bd7a4f 100644 --- a/tags/hack/page/1/index.html +++ b/tags/hack/page/1/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tags/index.html b/tags/index.html index a9d5d32..0155db8 100644 --- a/tags/index.html +++ b/tags/index.html @@ -9,9 +9,9 @@ - - - + + + Tags - Mil años de solitario @@ -19,7 +19,7 @@ - + @@ -37,7 +37,7 @@ - Mil años de solitario + Mil años de solitario @@ -94,7 +94,7 @@ @@ -105,13 +105,13 @@