Waste_Whole_Afternoon_on_Blog

This commit is contained in:
2016-08-16 20:56:09 -04:00
parent f87e2b4148
commit 969ca7d98a
57 changed files with 3828 additions and 3289 deletions
+197 -212
View File
@@ -1,182 +1,115 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<title>
Cross Compile RSync ARM // Mil años de solitario
</title>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Hugo 0.16" />
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="generator" content="Hugo 0.16" />
<meta property="og:title" content="Cross Compile RSync ARM" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/base-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/grids-responsive-min.css">
<link rel="stylesheet" href="https://codersherlock.github.io//css/redlounge.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href='//fonts.googleapis.com/css?family=Raleway:400,200,100,700,300,500,600,800' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
<link href="" rel="alternate" type="application/rss+xml" title="Mil años de solitario" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Marcellus+SC'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/styles.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/custom.css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://codersherlock.github.io//index.xml">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/tomorrow-night-bright.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div id="layout" class="pure-g">
<div class="sidebar pure-u-1 pure-u-md-1-4">
<div class="header">
<title>Cross Compile RSync ARM - Mil años de solitario</title>
<meta property='og:title' content="Cross Compile RSync ARM - Mil años de solitario">
<meta property="og:type" content="article">
<img src="/images/photo.png" class="sidebarphoto">
<h1 class="brand-title">Mil años de solitario</h1>
<h2 class="brand-tagline">A boy who can&#39;t step into academia</h2>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item"><span class="nav-item-separator">//</span><a href="https://codersherlock.github.io/">Home</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about">About</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/bio">Biography</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/post">Blog</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about/">about me</a></li>
</ul>
</nav>
<meta property="og:url" content="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/">
<div class="social-buttons">
<a href="http://github.com/CoderSherlcok" target="_blank"><i class='fa fa-github'></i></a>
</div>
</div>
</div>
</head>
<body>
<div class="content pure-u-1 pure-u-md-3-4">
<a name="top"></a>
<header class="site">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://codersherlock.github.io/">Mil años de solitario</a>
</div>
<div id="toc" class="pure-u-1 pure-u-md-1-4">
<small class="toc-label">Contents</small>
<nav id="TableOfContents">
<ul>
<li><a href="#cross-compile-rsync-to-arm-platform">Cross Compile Rsync to ARM platform</a>
<ul>
<li><a href="#motivation">Motivation</a></li>
<li><a href="#pre-work">Pre-work</a></li>
<li><a href="#cross-compile-rsync">Cross-Compile Rsync</a></li>
<li><a href="#push-rsync-to-android">Push RSync to Android.</a></li>
<li><a href="#run-rsync-with-argument">Run Rsync with argument</a></li>
<li><a href="#references">References</a></li>
</ul></li>
</ul>
</nav>
</div>
<section class="post">
<h1 class="post-title">
<a href="/post/Cross-Compile-RSync-ARM/">Cross Compile RSync ARM</a>
</h1>
<h3 class="post-subtitle">
</h3>
<div id="navbar" class="collapse navbar-collapse">
<span class="post-date">
<span class="post-date-day"><sup>15</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Aug</span> <span class="post-date-year">2016</span>
</span>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://CoderSherlock.github.io/about/">about me</a></li>
</ul>
</div>
<div class="post-categories">
<a class="post-category post-category-2016-08" href="https://codersherlock.github.io//categories/2016-08">2016-08</a>
</div>
</div>
</nav>
</header>
<div class="site">
<div class="container">
<h1 id="cross-compile-rsync-to-arm-platform">Cross Compile Rsync to ARM platform</h1>
<div class="single">
<div class="row">
<div class="col-md-8">
<article class="single" itemscope="itemscope" itemtype="http://schema.org/Article">
<meta itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" content="https://codersherlock.github.io/"/>
<meta itemprop="dateModified" content="2016-08-15T15:44:05-04:00">
<meta itemprop="headline" content="Cross Compile RSync ARM">
<meta itemprop="description" content="As always, feel free to ask. // Sherlock Motivation I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. Rsync is one of the most mature synchronization solution. So I made the decision on planting rsync to android. Pre-work Rsync is a sync program with delta sync feature and based on SSH connection. So all we need to do is SSH support and cross compile tool-chain.">
<meta itemprop="url" content="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/">
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://codersherlock.github.io/images/default.jpg" />
<meta itemprop="width" content="800">
<meta itemprop="height" content="800">
</div>
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://codersherlock.github.io/images/logo.jpg">
<meta itemprop="width" content="100">
<meta itemprop="height" content="100">
</div>
<meta itemprop="name" content="Mil años de solitario">
</div>
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="">
</div>
<header class="article-header">
<time itemprop="datePublished" pubdate="pubdate" datetime="2016-08-15T15:44:05-04:00">Mon, Aug 15, 2016</time>
<h1 class="article-title">Cross Compile RSync ARM</h1>
</header>
<div class="article-body" itemprop="articleBody">
<p>As always, feel free to ask. // Sherlock</p>
<h2 id="motivation">Motivation</h2>
<h1 id="motivation">Motivation</h1>
<p>I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. <a href="https://rsync.samba.org/">Rsync</a> is one of the most mature synchronization solution. So I made the decision on planting rsync to android.</p>
<h2 id="pre-work">Pre-work</h2>
<h1 id="pre-work">Pre-work</h1>
<p>Rsync is a sync program with delta sync feature and based on SSH connection. So all we need to do is SSH support and cross compile tool-chain. Similar to what I mentioned in <a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/">previews blog</a>, Android NDK and environment export need to be done before compilation.
To enable normally use of compiled program, we need to make android support SSH. My solution is just install <a href="https://play.google.com/store/apps/details?id=berserker.android.apps.sshdroid&amp;hl=en">SSHDroid</a> from Google Play Store.</p>
<h2 id="cross-compile-rsync">Cross-Compile Rsync</h2>
<h1 id="cross-compile-rsync">Cross-Compile Rsync</h1>
<p>Running following script to build rsync. It will generate a executable file named rsync in the root directory.</p>
@@ -184,7 +117,7 @@ To enable normally use of compiled program, we need to make android support SSH.
$ make
</code></pre>
<h2 id="push-rsync-to-android">Push RSync to Android.</h2>
<h1 id="push-rsync-to-android">Push RSync to Android.</h1>
<p>After installing SSHDroid, we can now push our arm-version-rsync to target machine.</p>
@@ -195,84 +128,136 @@ $ cd /data/data/berserker.android.apps.sshdroid/dropbear
$ mv ../../../local/tmp/rsync .
</code></pre>
<h2 id="run-rsync-with-argument">Run Rsync with argument</h2>
<h1 id="run-rsync-with-argument">Run Rsync with argument</h1>
<p>Now we can easily use rsync in android shell. Similar to what we use on PC.</p>
<pre><code>$ ./rsync -e &quot;./ssh&quot; {target-data} {target-location}:{target-directory}
</code></pre>
<h2 id="references">References</h2>
<h1 id="references">References</h1>
<p><a href="http://stackoverflow.com/questions/8130889/build-rsync-for-android">Build Rsync for Android</a></p>
</div>
<div class="tags-list">
<span class="dark-red">Tags</span><span class="decorative-marker">//</span>
<a class="post-tag post-tag-android" href="https://codersherlock.github.io//tags/android">android</a>,
<a class="post-tag post-tag-arm" href="https://codersherlock.github.io//tags/arm">arm</a>,
</div>
<div class="paging">
<span class="paging-label">More Reading</span>
<div class="paging-newer">
<span class="dark-red">Newer</span><span class="decorative-marker">//</span>
<a class="paging-link" href="/about/">about me</a>
</div>
<aside>
<div class="section"><a href="https://codersherlock.github.io/tags/android" class="tag">android</a> <a href="https://codersherlock.github.io/tags/arm" class="tag">arm</a> <a href="https://codersherlock.github.io/tags/research" class="tag">research</a> </div>
<div class="section share">
<a href="http://www.facebook.com/sharer.php?src=bm&u=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-RSync-ARM%2f&t=Cross%20Compile%20RSync%20ARM" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-facebook"></i></a>
<a href="http://twitter.com/intent/tweet?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-RSync-ARM%2f&text=Cross%20Compile%20RSync%20ARM&tw_p=tweetbutton" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-twitter"></i></a>
<a href="https://plus.google.com/share?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-RSync-ARM%2f" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-google-plus"></i></a>
<a href="http://getpocket.com/edit?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-RSync-ARM%2f&title=Cross%20Compile%20RSync%20ARM" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-get-pocket"></i></a>
</div>
<div class="paging-older">
<span class="dark-red">Older</span><span class="decorative-marker">//</span>
<a class="paging-link" href="/post/Pokemon-Go-Hack/">Pokemon Go Hack</a>
</div>
</div>
</section>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'codersherlockblog';
var disqus_identifier = 'https:\/\/codersherlock.github.io\/post\/Cross-Compile-RSync-ARM\/';
var disqus_title = 'Cross Compile RSync ARM';
var disqus_url = 'https:\/\/codersherlock.github.io\/post\/Cross-Compile-RSync-ARM\/';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<div class="footer">
<hr class="thin" />
<div class="pure-menu pure-menu-horizontal pure-menu-open">
<ul class="footer-menu">
</ul>
</div>
<div class="section">
<div id="disqus_thread"></div>
<script type="text/javascript">
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var disqus_shortname = 'codersherlockblog';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</aside>
<p>&copy; 2016. All rights reserved.</p>
</div>
</article>
</div>
<div class="col-md-4">
<aside class="site">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">LatestPosts</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="list-group-item">Cross Compile RSync ARM</a>
<a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/" class="list-group-item">Pokemon Go Hack</a>
<a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" class="list-group-item">Cross Compile Seafile to ARM</a>
<a href="https://codersherlock.github.io/about/" class="list-group-item">about me</a>
</div>
</div>
</body>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">category</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/categories/cross-compile" class="list-group-item">cross-compile</a>
<a href="https://codersherlock.github.io/categories/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/categories/hack" class="list-group-item">hack</a>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">tag</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/tags/android" class="list-group-item">android</a>
<a href="https://codersherlock.github.io/tags/arm" class="list-group-item">arm</a>
<a href="https://codersherlock.github.io/tags/research" class="list-group-item">research</a>
<a href="https://codersherlock.github.io/tags/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/tags/github" class="list-group-item">github</a>
<a href="https://codersherlock.github.io/tags/hack" class="list-group-item">hack</a>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
</div>
<footer class="site">
<div class="container">
<p>Copyright (c) 2016 - 2016, Pengzhan Hao; all rights reserved.</p>
<p>Powered by <a href="http://gohugo.io" target="_blank" rel="nofollow">Hugo</a>, Theme <a href="https://github.com/dim0627/hugo_theme_beg" target="_blank" rel="nofollow">beg</a> designed by <a href="http://yet.unresolved.xyz" target="_blank" rel="nofollow">Daisuke Tsuji</a></p>
</div>
</footer>
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
+207 -237
View File
@@ -1,205 +1,118 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<title>
Cross Compile Seafile 2 ARM // Mil años de solitario
</title>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Hugo 0.16" />
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="generator" content="Hugo 0.16" />
<meta property="og:title" content="Cross Compile Seafile 2 ARM" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/base-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/grids-responsive-min.css">
<link rel="stylesheet" href="https://codersherlock.github.io//css/redlounge.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href='//fonts.googleapis.com/css?family=Raleway:400,200,100,700,300,500,600,800' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
<link href="" rel="alternate" type="application/rss+xml" title="Mil años de solitario" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Marcellus+SC'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/styles.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/custom.css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://codersherlock.github.io//index.xml">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/tomorrow-night-bright.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div id="layout" class="pure-g">
<div class="sidebar pure-u-1 pure-u-md-1-4">
<div class="header">
<title>Cross Compile Seafile to ARM - Mil años de solitario</title>
<meta property='og:title' content="Cross Compile Seafile to ARM - Mil años de solitario">
<meta property="og:type" content="article">
<img src="/images/photo.png" class="sidebarphoto">
<h1 class="brand-title">Mil años de solitario</h1>
<h2 class="brand-tagline">A boy who can&#39;t step into academia</h2>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item"><span class="nav-item-separator">//</span><a href="https://codersherlock.github.io/">Home</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about">About</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/bio">Biography</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/post">Blog</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about/">about me</a></li>
</ul>
</nav>
<meta property="og:url" content="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/">
<div class="social-buttons">
<a href="http://github.com/CoderSherlcok" target="_blank"><i class='fa fa-github'></i></a>
</div>
</div>
</div>
</head>
<body>
<div class="content pure-u-1 pure-u-md-3-4">
<a name="top"></a>
<header class="site">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://codersherlock.github.io/">Mil años de solitario</a>
</div>
<div id="toc" class="pure-u-1 pure-u-md-1-4">
<small class="toc-label">Contents</small>
<nav id="TableOfContents">
<ul>
<li><a href="#cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</a>
<ul>
<li><a href="#motivation">Motivation</a></li>
<li><a href="#pre-work">Pre-work</a>
<ul>
<li><a href="#prerequisites">Prerequisites</a></li>
<li><a href="#link-with-standalone-tool-chains">Link with standalone tool-chains</a></li>
<li><a href="#original-system-environment-configuration">Original System Environment Configuration</a></li>
</ul></li>
<li><a href="#compile-process">Compile Process</a>
<ul>
<li><a href="#libsearpc">libsearpc</a>
<ul>
<li><a href="#glib">glib</a>
<ul>
<li><a href="#libiconv">libiconv</a></li>
<li><a href="#libffi">libffi</a></li>
<li><a href="#gettext">gettext</a></li>
</ul></li>
<li><a href="#libjasson">libjasson</a></li>
</ul></li>
<li><a href="#ccnet">ccnet</a>
<ul>
<li><a href="#libuuid">libuuid</a></li>
</ul></li>
<li><a href="#seafile">seafile</a></li>
</ul></li>
<li><a href="#preferences">Preferences</a></li>
</ul></li>
</ul>
</nav>
</div>
<section class="post">
<h1 class="post-title">
<a href="/post/Cross-Compile-Seafile-2-ARM/">Cross Compile Seafile 2 ARM</a>
</h1>
<h3 class="post-subtitle">
</h3>
<div id="navbar" class="collapse navbar-collapse">
<span class="post-date">
<span class="post-date-day"><sup>30</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Jul</span> <span class="post-date-year">2016</span>
</span>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://CoderSherlock.github.io/about/">about me</a></li>
</ul>
</div>
<div class="post-categories">
<a class="post-category post-category-2016-07" href="https://codersherlock.github.io//categories/2016-07">2016-07</a>
</div>
</div>
</nav>
</header>
<div class="site">
<div class="container">
<h1 id="cross-compile-seafile-to-arm-platform">Cross Compile Seafile to ARM platform</h1>
<div class="single">
<h2 id="motivation">Motivation</h2>
<div class="row">
<div class="col-md-8">
<article class="single" itemscope="itemscope" itemtype="http://schema.org/Article">
<meta itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" content="https://codersherlock.github.io/"/>
<meta itemprop="dateModified" content="2016-07-30T14:02:34-04:00">
<meta itemprop="headline" content="Cross Compile Seafile to ARM">
<meta itemprop="description" content="Motivation 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.">
<meta itemprop="url" content="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/">
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://codersherlock.github.io/images/default.jpg" />
<meta itemprop="width" content="800">
<meta itemprop="height" content="800">
</div>
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://codersherlock.github.io/images/logo.jpg">
<meta itemprop="width" content="100">
<meta itemprop="height" content="100">
</div>
<meta itemprop="name" content="Mil años de solitario">
</div>
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="">
</div>
<header class="article-header">
<time itemprop="datePublished" pubdate="pubdate" datetime="2016-07-30T14:02:34-04:00">Sat, Jul 30, 2016</time>
<h1 class="article-title">Cross Compile Seafile to ARM</h1>
</header>
<div class="article-body" itemprop="articleBody">
<h1 id="motivation">Motivation</h1>
<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>
<h1 id="pre-work">Pre-work</h1>
<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&rsquo;s</em> blog mentioned, we can write following useful system environment and export in terminal.</p>
<h3 id="prerequisites">Prerequisites</h3>
<h2 id="prerequisites">Prerequisites</h2>
<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>
<h2 id="link-with-standalone-tool-chains">Link with standalone tool-chains</h2>
<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.</p>
@@ -213,7 +126,7 @@ $ sudo apt-get install pkg-config automake autoconf libtool
--platform=android-22
</code></pre>
<h3 id="original-system-environment-configuration">Original System Environment Configuration</h3>
<h2 id="original-system-environment-configuration">Original System Environment Configuration</h2>
<p>[TODO]-&gt; I will fix this part later.</p>
@@ -282,96 +195,153 @@ export LIBS=&quot;-lc -lstdc++ -ld&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>
<h2 id="compile-process">Compile Process</h2>
<h1 id="compile-process">Compile Process</h1>
<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>
<h2 id="libsearpc">libsearpc</h2>
<h4 id="glib">glib</h4>
<h3 id="glib">glib</h3>
<h5 id="libiconv">libiconv</h5>
<h4 id="libiconv">libiconv</h4>
<h5 id="libffi">libffi</h5>
<h4 id="libffi">libffi</h4>
<h5 id="gettext">gettext</h5>
<h4 id="gettext">gettext</h4>
<h4 id="libjasson">libjasson</h4>
<h3 id="libjasson">libjasson</h3>
<h3 id="ccnet">ccnet</h3>
<h2 id="ccnet">ccnet</h2>
<h4 id="libuuid">libuuid</h4>
<h3 id="libuuid">libuuid</h3>
<h3 id="seafile">seafile</h3>
<h2 id="seafile">seafile</h2>
<h2 id="preferences">Preferences</h2>
<h1 id="preferences">Preferences</h1>
<ul>
<li><a href="http://zwyuan.github.io/2016/07/17/cross-compile-glib-for-android/">zwyuan</a></li>
</ul>
</div>
<div class="tags-list">
<span class="dark-red">Tags</span><span class="decorative-marker">//</span>
<a class="post-tag post-tag-android" href="https://codersherlock.github.io//tags/android">android</a>,
<a class="post-tag post-tag-arm" href="https://codersherlock.github.io//tags/arm">arm</a>,
</div>
<div class="paging">
<span class="paging-label">More Reading</span>
<div class="paging-newer">
<span class="dark-red">Newer</span><span class="decorative-marker">//</span>
<a class="paging-link" href="/post/Pokemon-Go-Hack/">Pokemon Go Hack</a>
</div>
<aside>
<div class="section"><a href="https://codersherlock.github.io/tags/android" class="tag">android</a> <a href="https://codersherlock.github.io/tags/arm" class="tag">arm</a> <a href="https://codersherlock.github.io/tags/research" class="tag">research</a> </div>
<div class="section share">
<a href="http://www.facebook.com/sharer.php?src=bm&u=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-Seafile-2-ARM%2f&t=Cross%20Compile%20Seafile%20to%20ARM" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-facebook"></i></a>
<a href="http://twitter.com/intent/tweet?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-Seafile-2-ARM%2f&text=Cross%20Compile%20Seafile%20to%20ARM&tw_p=tweetbutton" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-twitter"></i></a>
<a href="https://plus.google.com/share?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-Seafile-2-ARM%2f" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-google-plus"></i></a>
<a href="http://getpocket.com/edit?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fCross-Compile-Seafile-2-ARM%2f&title=Cross%20Compile%20Seafile%20to%20ARM" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-get-pocket"></i></a>
</div>
</div>
</section>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'codersherlockblog';
var disqus_identifier = 'https:\/\/codersherlock.github.io\/post\/Cross-Compile-Seafile-2-ARM\/';
var disqus_title = 'Cross Compile Seafile 2 ARM';
var disqus_url = 'https:\/\/codersherlock.github.io\/post\/Cross-Compile-Seafile-2-ARM\/';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<div class="footer">
<hr class="thin" />
<div class="pure-menu pure-menu-horizontal pure-menu-open">
<ul class="footer-menu">
</ul>
</div>
<div class="section">
<div id="disqus_thread"></div>
<script type="text/javascript">
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var disqus_shortname = 'codersherlockblog';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</aside>
<p>&copy; 2016. All rights reserved.</p>
</div>
</article>
</div>
<div class="col-md-4">
<aside class="site">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">LatestPosts</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="list-group-item">Cross Compile RSync ARM</a>
<a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/" class="list-group-item">Pokemon Go Hack</a>
<a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" class="list-group-item">Cross Compile Seafile to ARM</a>
<a href="https://codersherlock.github.io/about/" class="list-group-item">about me</a>
</div>
</div>
</body>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">category</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/categories/cross-compile" class="list-group-item">cross-compile</a>
<a href="https://codersherlock.github.io/categories/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/categories/hack" class="list-group-item">hack</a>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">tag</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/tags/android" class="list-group-item">android</a>
<a href="https://codersherlock.github.io/tags/arm" class="list-group-item">arm</a>
<a href="https://codersherlock.github.io/tags/research" class="list-group-item">research</a>
<a href="https://codersherlock.github.io/tags/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/tags/github" class="list-group-item">github</a>
<a href="https://codersherlock.github.io/tags/hack" class="list-group-item">hack</a>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
</div>
<footer class="site">
<div class="container">
<p>Copyright (c) 2016 - 2016, Pengzhan Hao; all rights reserved.</p>
<p>Powered by <a href="http://gohugo.io" target="_blank" rel="nofollow">Hugo</a>, Theme <a href="https://github.com/dim0627/hugo_theme_beg" target="_blank" rel="nofollow">beg</a> designed by <a href="http://yet.unresolved.xyz" target="_blank" rel="nofollow">Daisuke Tsuji</a></p>
</div>
</footer>
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
+194 -203
View File
@@ -1,173 +1,112 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<title>
Pokemon Go Hack // Mil años de solitario
</title>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Hugo 0.16" />
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="generator" content="Hugo 0.16" />
<meta property="og:title" content="Pokemon Go Hack" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://codersherlock.github.io/post/Pokemon-Go-Hack/" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/base-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/grids-responsive-min.css">
<link rel="stylesheet" href="https://codersherlock.github.io//css/redlounge.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href='//fonts.googleapis.com/css?family=Raleway:400,200,100,700,300,500,600,800' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
<link href="" rel="alternate" type="application/rss+xml" title="Mil años de solitario" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Marcellus+SC'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/styles.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/custom.css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://codersherlock.github.io//index.xml">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/tomorrow-night-bright.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div id="layout" class="pure-g">
<div class="sidebar pure-u-1 pure-u-md-1-4">
<div class="header">
<title>Pokemon Go Hack - Mil años de solitario</title>
<meta property='og:title' content="Pokemon Go Hack - Mil años de solitario">
<meta property="og:type" content="article">
<img src="/images/photo.png" class="sidebarphoto">
<h1 class="brand-title">Mil años de solitario</h1>
<h2 class="brand-tagline">A boy who can&#39;t step into academia</h2>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item"><span class="nav-item-separator">//</span><a href="https://codersherlock.github.io/">Home</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about">About</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/bio">Biography</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/post">Blog</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about/">about me</a></li>
</ul>
</nav>
<meta property="og:url" content="https://codersherlock.github.io/post/Pokemon-Go-Hack/">
<div class="social-buttons">
<a href="http://github.com/CoderSherlcok" target="_blank"><i class='fa fa-github'></i></a>
</div>
</div>
</div>
</head>
<body>
<div class="content pure-u-1 pure-u-md-3-4">
<a name="top"></a>
<header class="site">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://codersherlock.github.io/">Mil años de solitario</a>
</div>
<div id="toc" class="pure-u-1 pure-u-md-1-4">
<small class="toc-label">Contents</small>
<nav id="TableOfContents">
<ul>
<li><a href="#catch-them-all-until-bored">Catch them all until bored</a>
<ul>
<li><a href="#preface">Preface</a></li>
<li><a href="#todo-list">TODO List</a></li>
</ul></li>
</ul>
</nav>
</div>
<section class="post">
<h1 class="post-title">
<a href="/post/Pokemon-Go-Hack/">Pokemon Go Hack</a>
</h1>
<h3 class="post-subtitle">
</h3>
<div id="navbar" class="collapse navbar-collapse">
<span class="post-date">
<span class="post-date-day"><sup>30</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Jul</span> <span class="post-date-year">2016</span>
</span>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://CoderSherlock.github.io/about/">about me</a></li>
</ul>
</div>
<div class="post-categories">
<a class="post-category post-category-2016-07" href="https://codersherlock.github.io//categories/2016-07">2016-07</a>
</div>
</div>
</nav>
</header>
<div class="site">
<div class="container">
<div class="single">
<div class="row">
<div class="col-md-8">
<article class="single" itemscope="itemscope" itemtype="http://schema.org/Article">
<meta itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" content="https://codersherlock.github.io/"/>
<meta itemprop="dateModified" content="2016-07-30T18:10:20-04:00">
<meta itemprop="headline" content="Pokemon Go Hack">
<meta itemprop="description" content="Catch them all until bored Preface I never imagined that I will truly write something for hacking a game. Though I have to admit that Pokemon Go is a huge heat and different from other games, it still hard to believe that I took movement to make it better(or worse?). I was a big fun of ingress, and thanks to one of my best friends, Kevin, who was also a huge fan to ingress, recommended me this game.">
<meta itemprop="url" content="https://codersherlock.github.io/post/Pokemon-Go-Hack/">
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://codersherlock.github.io/images/default.jpg" />
<meta itemprop="width" content="800">
<meta itemprop="height" content="800">
</div>
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="https://codersherlock.github.io/images/logo.jpg">
<meta itemprop="width" content="100">
<meta itemprop="height" content="100">
</div>
<meta itemprop="name" content="Mil años de solitario">
</div>
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="">
</div>
<header class="article-header">
<time itemprop="datePublished" pubdate="pubdate" datetime="2016-07-30T18:10:20-04:00">Sat, Jul 30, 2016</time>
<h1 class="article-title">Pokemon Go Hack</h1>
</header>
<div class="article-body" itemprop="articleBody">
<h1 id="catch-them-all-until-bored">Catch them all until bored</h1>
<h2 id="preface">Preface</h2>
<h1 id="preface">Preface</h1>
<p>I never imagined that I will truly write something for hacking a game. Though I have to admit that Pokemon Go is a huge heat and different from other games, it still hard to believe that I took movement to make it better(or worse?). I was a big fun of ingress, and thanks to one of my best friends, Kevin, who was also a huge fan to ingress, recommended me this game. Due to some well known reasons, Ingress didn&rsquo;t become popular at my country. But time flies, I break through the wall, and come to a free land which can play Niantic&rsquo;s game. Unfortunately, this time, the only thing restrict me from playing LBS game is limitation of my spare time. Working in the Lab makes me exhausted <strong>EVERYDAY</strong> and the place where I am now is so barren which even doesn&rsquo;t have much insects and birds(I mean Weedle and Pidgey).
<em>afk I have to battle a nearby gym now</em>
Anyway, after coming back, I think I write too much on useless words, so let me keep it straight forward. My imagination of this hacking project is very simple, which is making an auto bot helping me go through all experiences a Pokemon trainer will face. In first stage, my goal is making the bot smartly picking up a route to walk, catch all Pokemons and supply from PokeStops.</p>
<h2 id="todo-list">TODO List</h2>
<h1 id="todo-list">TODO List</h1>
<p>-[X] Test API
-[ ] Finish Walk Algorithm
@@ -176,73 +115,125 @@ Anyway, after coming back, I think I write too much on useless words, so let me
-[ ] Pokemon Predict (Thanks to Pokevision&rsquo;s idea)
-[ ] Become a Pokemon Master</p>
</div>
<div class="tags-list">
<span class="dark-red">Tags</span><span class="decorative-marker">//</span>
<a class="post-tag post-tag-hack" href="https://codersherlock.github.io//tags/hack">hack</a>,
<a class="post-tag post-tag-github" href="https://codersherlock.github.io//tags/github">github</a>,
</div>
<div class="paging">
<span class="paging-label">More Reading</span>
<div class="paging-newer">
<span class="dark-red">Newer</span><span class="decorative-marker">//</span>
<a class="paging-link" href="/post/Cross-Compile-RSync-ARM/">Cross Compile RSync ARM</a>
</div>
<aside>
<div class="section"><a href="https://codersherlock.github.io/tags/hack" class="tag">hack</a> <a href="https://codersherlock.github.io/tags/github" class="tag">github</a> <a href="https://codersherlock.github.io/tags/game" class="tag">game</a> </div>
<div class="section share">
<a href="http://www.facebook.com/sharer.php?src=bm&u=https%3a%2f%2fcodersherlock.github.io%2fpost%2fPokemon-Go-Hack%2f&t=Pokemon%20Go%20Hack" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-facebook"></i></a>
<a href="http://twitter.com/intent/tweet?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fPokemon-Go-Hack%2f&text=Pokemon%20Go%20Hack&tw_p=tweetbutton" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-twitter"></i></a>
<a href="https://plus.google.com/share?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fPokemon-Go-Hack%2f" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-google-plus"></i></a>
<a href="http://getpocket.com/edit?url=https%3a%2f%2fcodersherlock.github.io%2fpost%2fPokemon-Go-Hack%2f&title=Pokemon%20Go%20Hack" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-get-pocket"></i></a>
</div>
<div class="paging-older">
<span class="dark-red">Older</span><span class="decorative-marker">//</span>
<a class="paging-link" href="/post/Cross-Compile-Seafile-2-ARM/">Cross Compile Seafile 2 ARM</a>
</div>
</div>
</section>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'codersherlockblog';
var disqus_identifier = 'https:\/\/codersherlock.github.io\/post\/Pokemon-Go-Hack\/';
var disqus_title = 'Pokemon Go Hack';
var disqus_url = 'https:\/\/codersherlock.github.io\/post\/Pokemon-Go-Hack\/';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<div class="footer">
<hr class="thin" />
<div class="pure-menu pure-menu-horizontal pure-menu-open">
<ul class="footer-menu">
</ul>
</div>
<div class="section">
<div id="disqus_thread"></div>
<script type="text/javascript">
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var disqus_shortname = 'codersherlockblog';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</aside>
<p>&copy; 2016. All rights reserved.</p>
</div>
</article>
</div>
<div class="col-md-4">
<aside class="site">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">LatestPosts</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="list-group-item">Cross Compile RSync ARM</a>
<a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/" class="list-group-item">Pokemon Go Hack</a>
<a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" class="list-group-item">Cross Compile Seafile to ARM</a>
<a href="https://codersherlock.github.io/about/" class="list-group-item">about me</a>
</div>
</div>
</body>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">category</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/categories/cross-compile" class="list-group-item">cross-compile</a>
<a href="https://codersherlock.github.io/categories/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/categories/hack" class="list-group-item">hack</a>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">tag</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/tags/android" class="list-group-item">android</a>
<a href="https://codersherlock.github.io/tags/arm" class="list-group-item">arm</a>
<a href="https://codersherlock.github.io/tags/research" class="list-group-item">research</a>
<a href="https://codersherlock.github.io/tags/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/tags/github" class="list-group-item">github</a>
<a href="https://codersherlock.github.io/tags/hack" class="list-group-item">hack</a>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
</div>
<footer class="site">
<div class="container">
<p>Copyright (c) 2016 - 2016, Pengzhan Hao; all rights reserved.</p>
<p>Powered by <a href="http://gohugo.io" target="_blank" rel="nofollow">Hugo</a>, Theme <a href="https://github.com/dim0627/hugo_theme_beg" target="_blank" rel="nofollow">beg</a> designed by <a href="http://yet.unresolved.xyz" target="_blank" rel="nofollow">Daisuke Tsuji</a></p>
</div>
</footer>
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
+189 -219
View File
@@ -1,237 +1,207 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<title>
Posts // Mil años de solitario
</title>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Hugo 0.16" />
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="generator" content="Hugo 0.16" />
<meta property="og:title" content="Posts" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://CoderSherlock.github.io/post/" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/base-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/grids-responsive-min.css">
<link rel="stylesheet" href="https://codersherlock.github.io//css/redlounge.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href='//fonts.googleapis.com/css?family=Raleway:400,200,100,700,300,500,600,800' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
<link href="https://CoderSherlock.github.io/post/index.xml" rel="alternate" type="application/rss+xml" title="Mil años de solitario" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Marcellus+SC'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/styles.css">
<link rel="stylesheet" href="https://codersherlock.github.io/css/custom.css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://codersherlock.github.io//index.xml">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/tomorrow-night-bright.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div id="layout" class="pure-g">
<div class="sidebar pure-u-1 pure-u-md-1-4">
<div class="header">
<title>Posts - Mil años de solitario</title>
<meta property='og:title' content="Posts - Mil años de solitario">
<meta property="og:type" content="article">
<img src="/images/photo.png" class="sidebarphoto">
<h1 class="brand-title">Mil años de solitario</h1>
<h2 class="brand-tagline">A boy who can&#39;t step into academia</h2>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item"><span class="nav-item-separator">//</span><a href="https://codersherlock.github.io/">Home</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about">About</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/bio">Biography</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/post">Blog</a></li>
<li class="nav-item"><span class="nav-item-separator">//</span><a href="/about/">about me</a></li>
</ul>
</nav>
<meta property="og:url" content="https://CoderSherlock.github.io/post/">
<div class="social-buttons">
</head>
<body>
<header class="site">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://codersherlock.github.io/">Mil años de solitario</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://CoderSherlock.github.io/about/">about me</a></li>
</ul>
</div>
</div>
</nav>
</header>
<div class="site">
<div class="container">
<div class="list">
<div class="row">
<div class="col-md-8">
<header class="page-title">Posts</header>
<a href="http://github.com/CoderSherlcok" target="_blank"><i class='fa fa-github'></i></a>
<article class="li">
<header>
<div class="date">Mon, Aug 15, 2016</div>
<div class="title"><a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/">Cross Compile RSync ARM</a></div>
</header>
<div class="body">As always, feel free to ask. // Sherlock Motivation I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. Rsync is one of the most mature synchronization solution. So I made the decision on planting rsync to android. Pre-work Rsync is a sync program with delta sync feature and based on SSH connection. So all we need to do is SSH support and cross compile tool-chain.</div>
<footer>
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="btn btn-default">Read More…</a>
</footer>
</article>
<hr>
<article class="li">
<header>
<div class="date">Sat, Jul 30, 2016</div>
<div class="title"><a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/">Pokemon Go Hack</a></div>
</header>
<div class="body">Catch them all until bored Preface I never imagined that I will truly write something for hacking a game. Though I have to admit that Pokemon Go is a huge heat and different from other games, it still hard to believe that I took movement to make it better(or worse?). I was a big fun of ingress, and thanks to one of my best friends, Kevin, who was also a huge fan to ingress, recommended me this game.</div>
<footer>
<a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/" class="btn btn-default">Read More…</a>
</footer>
</article>
<hr>
<article class="li">
<header>
<div class="date">Sat, Jul 30, 2016</div>
<div class="title"><a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/">Cross Compile Seafile to ARM</a></div>
</header>
<div class="body">Motivation 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.</div>
<footer>
<a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" class="btn btn-default">Read More…</a>
</footer>
</article>
<hr>
</div>
<div class="col-md-4">
<aside class="site">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">LatestPosts</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="list-group-item">Cross Compile RSync ARM</a>
<a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/" class="list-group-item">Pokemon Go Hack</a>
<a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" class="list-group-item">Cross Compile Seafile to ARM</a>
<a href="https://codersherlock.github.io/about/" class="list-group-item">about me</a>
</div>
</div>
</div>
<div class="content pure-u-1 pure-u-md-3-4">
<a name="top"></a>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">category</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/categories/cross-compile" class="list-group-item">cross-compile</a>
<a href="https://codersherlock.github.io/categories/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/categories/hack" class="list-group-item">hack</a>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">tag</h2>
</div>
<div class="list-group">
<a href="https://codersherlock.github.io/tags/android" class="list-group-item">android</a>
<a href="https://codersherlock.github.io/tags/arm" class="list-group-item">arm</a>
<a href="https://codersherlock.github.io/tags/research" class="list-group-item">research</a>
<a href="https://codersherlock.github.io/tags/game" class="list-group-item">game</a>
<a href="https://codersherlock.github.io/tags/github" class="list-group-item">github</a>
<a href="https://codersherlock.github.io/tags/hack" class="list-group-item">hack</a>
</div>
</div>
<div class="posts">
<section class="post">
<header class="post-header">
<h1 class="post-title">
<a href="/post/Cross-Compile-RSync-ARM/">Cross Compile RSync ARM</a>
</h1>
</header>
<p class="post-meta">
<span class="post-date">
<span class="post-date-day"><sup>15</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Aug</span> <span class="post-date-year">2016</span>
</span>
<span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>2 min. read</em></span>
<div class="post-categories">
<a class="post-category post-category-2016-08" href="https://codersherlock.github.io//categories/2016-08">2016-08</a>
</div>
</p>
<article class="post-summary">
Cross Compile Rsync to ARM platform As always, feel free to ask. // Sherlock Motivation I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. Rsync is one of the most mature synchronization solution. So I made the decision on planting rsync to android. Pre-work Rsync is a sync program with delta sync feature and based on SSH connection.
</article>
<div class="read-more-link">
<a href="/post/Cross-Compile-RSync-ARM/"><span class="read-more-slashes">//</span>Read More...</a>
</div>
</section>
<section class="post">
<header class="post-header">
<h1 class="post-title">
<a href="/post/Pokemon-Go-Hack/">Pokemon Go Hack</a>
</h1>
</header>
<p class="post-meta">
<span class="post-date">
<span class="post-date-day"><sup>30</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Jul</span> <span class="post-date-year">2016</span>
</span>
<span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>2 min. read</em></span>
<div class="post-categories">
<a class="post-category post-category-2016-07" href="https://codersherlock.github.io//categories/2016-07">2016-07</a>
</div>
</p>
<article class="post-summary">
Catch them all until bored Preface I never imagined that I will truly write something for hacking a game. Though I have to admit that Pokemon Go is a huge heat and different from other games, it still hard to believe that I took movement to make it better(or worse?). I was a big fun of ingress, and thanks to one of my best friends, Kevin, who was also a huge fan to ingress, recommended me this game.
</article>
<div class="read-more-link">
<a href="/post/Pokemon-Go-Hack/"><span class="read-more-slashes">//</span>Read More...</a>
</div>
</section>
<section class="post">
<header class="post-header">
<h1 class="post-title">
<a href="/post/Cross-Compile-Seafile-2-ARM/">Cross Compile Seafile 2 ARM</a>
</h1>
</header>
<p class="post-meta">
<span class="post-date">
<span class="post-date-day"><sup>30</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Jul</span> <span class="post-date-year">2016</span>
</span>
<span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>3 min. read</em></span>
<div class="post-categories">
<a class="post-category post-category-2016-07" href="https://codersherlock.github.io//categories/2016-07">2016-07</a>
</div>
</p>
<article class="post-summary">
Cross Compile Seafile to ARM platform Motivation 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.
</article>
<div class="read-more-link">
<a href="/post/Cross-Compile-Seafile-2-ARM/"><span class="read-more-slashes">//</span>Read More...</a>
</div>
</section>
</aside>
</div>
</div>
</div>
</div>
<div class="footer">
<hr class="thin" />
<div class="pure-menu pure-menu-horizontal pure-menu-open">
<ul class="footer-menu">
</ul>
</div>
<p>&copy; 2016. All rights reserved.</p>
</div>
</div>
</div>
</body>
<footer class="site">
<div class="container">
<p>Copyright (c) 2016 - 2016, Pengzhan Hao; all rights reserved.</p>
<p>Powered by <a href="http://gohugo.io" target="_blank" rel="nofollow">Hugo</a>, Theme <a href="https://github.com/dim0627/hugo_theme_beg" target="_blank" rel="nofollow">beg</a> designed by <a href="http://yet.unresolved.xyz" target="_blank" rel="nofollow">Daisuke Tsuji</a></p>
</div>
</footer>
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
+27 -30
View File
@@ -6,6 +6,7 @@
<description>Recent content in Posts on Mil años de solitario</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<copyright>Copyright (c) 2016 - 2016, Pengzhan Hao; all rights reserved.</copyright>
<lastBuildDate>Mon, 15 Aug 2016 15:44:05 -0400</lastBuildDate>
<atom:link href="https://CoderSherlock.github.io/post/index.xml" rel="self" type="application/rss+xml" />
@@ -17,20 +18,18 @@
<guid>https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/</guid>
<description>
&lt;h1 id=&#34;cross-compile-rsync-to-arm-platform&#34;&gt;Cross Compile Rsync to ARM platform&lt;/h1&gt;
&lt;p&gt;As always, feel free to ask. // Sherlock&lt;/p&gt;
&lt;h2 id=&#34;motivation&#34;&gt;Motivation&lt;/h2&gt;
&lt;h1 id=&#34;motivation&#34;&gt;Motivation&lt;/h1&gt;
&lt;p&gt;I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. &lt;a href=&#34;https://rsync.samba.org/&#34;&gt;Rsync&lt;/a&gt; is one of the most mature synchronization solution. So I made the decision on planting rsync to android.&lt;/p&gt;
&lt;h2 id=&#34;pre-work&#34;&gt;Pre-work&lt;/h2&gt;
&lt;h1 id=&#34;pre-work&#34;&gt;Pre-work&lt;/h1&gt;
&lt;p&gt;Rsync is a sync program with delta sync feature and based on SSH connection. So all we need to do is SSH support and cross compile tool-chain. Similar to what I mentioned in &lt;a href=&#34;https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/&#34;&gt;previews blog&lt;/a&gt;, Android NDK and environment export need to be done before compilation.
To enable normally use of compiled program, we need to make android support SSH. My solution is just install &lt;a href=&#34;https://play.google.com/store/apps/details?id=berserker.android.apps.sshdroid&amp;amp;hl=en&#34;&gt;SSHDroid&lt;/a&gt; from Google Play Store.&lt;/p&gt;
&lt;h2 id=&#34;cross-compile-rsync&#34;&gt;Cross-Compile Rsync&lt;/h2&gt;
&lt;h1 id=&#34;cross-compile-rsync&#34;&gt;Cross-Compile Rsync&lt;/h1&gt;
&lt;p&gt;Running following script to build rsync. It will generate a executable file named rsync in the root directory.&lt;/p&gt;
@@ -38,7 +37,7 @@ To enable normally use of compiled program, we need to make android support SSH.
$ make
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;push-rsync-to-android&#34;&gt;Push RSync to Android.&lt;/h2&gt;
&lt;h1 id=&#34;push-rsync-to-android&#34;&gt;Push RSync to Android.&lt;/h1&gt;
&lt;p&gt;After installing SSHDroid, we can now push our arm-version-rsync to target machine.&lt;/p&gt;
@@ -49,14 +48,14 @@ $ cd /data/data/berserker.android.apps.sshdroid/dropbear
$ mv ../../../local/tmp/rsync .
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;run-rsync-with-argument&#34;&gt;Run Rsync with argument&lt;/h2&gt;
&lt;h1 id=&#34;run-rsync-with-argument&#34;&gt;Run Rsync with argument&lt;/h1&gt;
&lt;p&gt;Now we can easily use rsync in android shell. Similar to what we use on PC.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ ./rsync -e &amp;quot;./ssh&amp;quot; {target-data} {target-location}:{target-directory}
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;references&#34;&gt;References&lt;/h2&gt;
&lt;h1 id=&#34;references&#34;&gt;References&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;http://stackoverflow.com/questions/8130889/build-rsync-for-android&#34;&gt;Build Rsync for Android&lt;/a&gt;&lt;/p&gt;
</description>
@@ -72,13 +71,13 @@ $ mv ../../../local/tmp/rsync .
&lt;h1 id=&#34;catch-them-all-until-bored&#34;&gt;Catch them all until bored&lt;/h1&gt;
&lt;h2 id=&#34;preface&#34;&gt;Preface&lt;/h2&gt;
&lt;h1 id=&#34;preface&#34;&gt;Preface&lt;/h1&gt;
&lt;p&gt;I never imagined that I will truly write something for hacking a game. Though I have to admit that Pokemon Go is a huge heat and different from other games, it still hard to believe that I took movement to make it better(or worse?). I was a big fun of ingress, and thanks to one of my best friends, Kevin, who was also a huge fan to ingress, recommended me this game. Due to some well known reasons, Ingress didn&amp;rsquo;t become popular at my country. But time flies, I break through the wall, and come to a free land which can play Niantic&amp;rsquo;s game. Unfortunately, this time, the only thing restrict me from playing LBS game is limitation of my spare time. Working in the Lab makes me exhausted &lt;strong&gt;EVERYDAY&lt;/strong&gt; and the place where I am now is so barren which even doesn&amp;rsquo;t have much insects and birds(I mean Weedle and Pidgey).
&lt;em&gt;afk I have to battle a nearby gym now&lt;/em&gt;
Anyway, after coming back, I think I write too much on useless words, so let me keep it straight forward. My imagination of this hacking project is very simple, which is making an auto bot helping me go through all experiences a Pokemon trainer will face. In first stage, my goal is making the bot smartly picking up a route to walk, catch all Pokemons and supply from PokeStops.&lt;/p&gt;
&lt;h2 id=&#34;todo-list&#34;&gt;TODO List&lt;/h2&gt;
&lt;h1 id=&#34;todo-list&#34;&gt;TODO List&lt;/h1&gt;
&lt;p&gt;-[X] Test API
-[ ] Finish Walk Algorithm
@@ -90,30 +89,28 @@ Anyway, after coming back, I think I write too much on useless words, so let me
</item>
<item>
<title>Cross Compile Seafile 2 ARM</title>
<title>Cross Compile Seafile to ARM</title>
<link>https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/</link>
<pubDate>Sat, 30 Jul 2016 14:02:34 -0400</pubDate>
<guid>https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/</guid>
<description>
&lt;h1 id=&#34;cross-compile-seafile-to-arm-platform&#34;&gt;Cross Compile Seafile to ARM platform&lt;/h1&gt;
&lt;h2 id=&#34;motivation&#34;&gt;Motivation&lt;/h2&gt;
&lt;h1 id=&#34;motivation&#34;&gt;Motivation&lt;/h1&gt;
&lt;p&gt;This project is working for delta sync from mobile to server. Currently, there&amp;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&amp;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.&lt;/p&gt;
&lt;h2 id=&#34;pre-work&#34;&gt;Pre-work&lt;/h2&gt;
&lt;h1 id=&#34;pre-work&#34;&gt;Pre-work&lt;/h1&gt;
&lt;p&gt;Basically, I used the native android compilation tool-chains, &lt;a href=&#34;https://developer.android.com/ndk/downloads/index.html&#34;&gt;Android NDK&lt;/a&gt;, as working tools. Due to my working situation, I use a &lt;a href=&#34;https://shield.nvidia.com/tablet/k1&#34;&gt;Nvidia Shield Tablet&lt;/a&gt; as target device. As &lt;em&gt;Zengwen&lt;/em&gt; said in his &lt;a href=&#34;http://zwyuan.github.io/2016/07/17/cross-compile-glib-for-android/&#34;&gt;blog&lt;/a&gt;, newest updated NDK might has some issue which can influence compilation progress. So you can find &lt;a href=&#34;http://stackoverflow.com/questions/6849981/where-do-i-find-old-versions-of-android-ndk&#34;&gt;other version&lt;/a&gt; of NDK once you have some problems. Based on what &lt;em&gt;Zengwen&amp;rsquo;s&lt;/em&gt; blog mentioned, we can write following useful system environment and export in terminal.&lt;/p&gt;
&lt;h3 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h3&gt;
&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;$ sudo apt-get install build-essential
$ sudo apt-get install pkg-config automake autoconf libtool
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;link-with-standalone-tool-chains&#34;&gt;Link with standalone tool-chains&lt;/h3&gt;
&lt;h2 id=&#34;link-with-standalone-tool-chains&#34;&gt;Link with standalone tool-chains&lt;/h2&gt;
&lt;p&gt;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.&lt;/p&gt;
@@ -127,7 +124,7 @@ $ sudo apt-get install pkg-config automake autoconf libtool
--platform=android-22
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;original-system-environment-configuration&#34;&gt;Original System Environment Configuration&lt;/h3&gt;
&lt;h2 id=&#34;original-system-environment-configuration&#34;&gt;Original System Environment Configuration&lt;/h2&gt;
&lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt;
@@ -196,29 +193,29 @@ export LIBS=&amp;quot;-lc -lstdc++ -ld&amp;quot;
export LDFLAGS=&amp;quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/lib -L${PREFIX}/lib -L${NDK_TOOLCHAIN}/lib&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;compile-process&#34;&gt;Compile Process&lt;/h2&gt;
&lt;h1 id=&#34;compile-process&#34;&gt;Compile Process&lt;/h1&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;libsearpc&#34;&gt;libsearpc&lt;/h3&gt;
&lt;h2 id=&#34;libsearpc&#34;&gt;libsearpc&lt;/h2&gt;
&lt;h4 id=&#34;glib&#34;&gt;glib&lt;/h4&gt;
&lt;h3 id=&#34;glib&#34;&gt;glib&lt;/h3&gt;
&lt;h5 id=&#34;libiconv&#34;&gt;libiconv&lt;/h5&gt;
&lt;h4 id=&#34;libiconv&#34;&gt;libiconv&lt;/h4&gt;
&lt;h5 id=&#34;libffi&#34;&gt;libffi&lt;/h5&gt;
&lt;h4 id=&#34;libffi&#34;&gt;libffi&lt;/h4&gt;
&lt;h5 id=&#34;gettext&#34;&gt;gettext&lt;/h5&gt;
&lt;h4 id=&#34;gettext&#34;&gt;gettext&lt;/h4&gt;
&lt;h4 id=&#34;libjasson&#34;&gt;libjasson&lt;/h4&gt;
&lt;h3 id=&#34;libjasson&#34;&gt;libjasson&lt;/h3&gt;
&lt;h3 id=&#34;ccnet&#34;&gt;ccnet&lt;/h3&gt;
&lt;h2 id=&#34;ccnet&#34;&gt;ccnet&lt;/h2&gt;
&lt;h4 id=&#34;libuuid&#34;&gt;libuuid&lt;/h4&gt;
&lt;h3 id=&#34;libuuid&#34;&gt;libuuid&lt;/h3&gt;
&lt;h3 id=&#34;seafile&#34;&gt;seafile&lt;/h3&gt;
&lt;h2 id=&#34;seafile&#34;&gt;seafile&lt;/h2&gt;
&lt;h2 id=&#34;preferences&#34;&gt;Preferences&lt;/h2&gt;
&lt;h1 id=&#34;preferences&#34;&gt;Preferences&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;http://zwyuan.github.io/2016/07/17/cross-compile-glib-for-android/&#34;&gt;zwyuan&lt;/a&gt;&lt;/li&gt;
@@ -227,4 +224,4 @@ export LDFLAGS=&amp;quot;-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${SYSROOT}/usr/l
</item>
</channel>
</rss>
</rss>
+1
View File
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><link rel="canonical" href="https://CoderSherlock.github.io/post/"/><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta http-equiv="refresh" content="0;url=https://CoderSherlock.github.io/post/" /></head></html>