Rsync的建设为Android [英] Build Rsync for Android

查看:713
本文介绍了Rsync的建设为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 http://rsync.samba.org/ 下载的rsync 任何人都知道如何编写部署在Android设备源$ C ​​$ C?

I have downloaded rsync from http://rsync.samba.org/ anyone knows how to compile the source code to be deployed in an Android Device?

推荐答案

您可以编译没有NDK假设你静态链接。这对我的作品在Ubuntu 13.04铆足了劲猫熊。

You can compile without the NDK assuming you statically link. This works for me on Ubuntu 13.04 Raring Ringtail.

安装的交叉编译:

sudo apt-get install gcc-arm-linux-gnueabi

下载rsync的:

Download rsync:

wget http://rsync.samba.org/ftp/rsync/rsync-3.0.9.tar.gz
tar -zxv -f rsync-3.0.9.tar.gz
cd rsync-3.0.9

编译与交叉编译器,使用静态链接:

Compile with the cross compiler, using static linking:

./configure --host=arm-linux-gnueabi CFLAGS="-static"
make

您会相处的行利用X在静态链接的应用程序的一些警告,需要在运行时从glibc的版本的共享库,用于连接。但到目前为止,rsync的工作对我来说。

You'll get some warnings along the lines of Using X in statically linked applications requires at runtime the shared libraries from the glibc version used for linking. But so far, rsync has worked for me.

最后,安装到您的手机(假设你使用的是SSHDroid):

And finally, install to your phone (assumes you are using SSHDroid):

scp -P 2222 rsync root@$PHONE_IP:/data/data/berserker.android.apps.sshdroid/dropbear

这篇关于Rsync的建设为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆