parent
425493f9fd
commit
03003894dc
24
Orbot/BUILD
24
Orbot/BUILD
|
@ -4,7 +4,7 @@ source.
|
||||||
Please install the following prerequisites (instructions for each follows):
|
Please install the following prerequisites (instructions for each follows):
|
||||||
Android OS SDK
|
Android OS SDK
|
||||||
droid-wrapper: http://github.com/tmurakam/droid-wrapper
|
droid-wrapper: http://github.com/tmurakam/droid-wrapper
|
||||||
libevent source
|
libevent source (1.4.12-stable)
|
||||||
Tor source (most recent git master branch)
|
Tor source (most recent git master branch)
|
||||||
|
|
||||||
Install and prepare the Android OS SDK ( http://source.android.com/download )
|
Install and prepare the Android OS SDK ( http://source.android.com/download )
|
||||||
|
@ -48,33 +48,21 @@ We need to set to environment variables for droid-gcc:
|
||||||
export DROID_ROOT=~/mydroid/
|
export DROID_ROOT=~/mydroid/
|
||||||
export DROID_TARGET=generic
|
export DROID_TARGET=generic
|
||||||
|
|
||||||
# XXX TODO:
|
|
||||||
# Do we need this?
|
|
||||||
Build zlib:
|
|
||||||
cd ~/mydroid/external/zlib
|
|
||||||
export ZLIBDIR=`pwd`
|
|
||||||
CC=droid-gcc LD=droid-ld ./configure
|
|
||||||
make
|
|
||||||
|
|
||||||
# XXX TODO:
|
|
||||||
# Do we need this?
|
|
||||||
Build openssl:
|
|
||||||
cd ~/mydroid/external/openssl/include/openssl/
|
|
||||||
export OPENSSLDIR=`pwd`
|
|
||||||
CC=droid-gcc LD=droid-ld ./configure
|
|
||||||
|
|
||||||
|
|
||||||
Fetch and build libevent:
|
Fetch and build libevent:
|
||||||
|
|
||||||
cd ~/mydroid/external/libevent
|
cd ~/mydroid/external/libevent
|
||||||
svn co https://levent.svn.sourceforge.net/svnroot/levent/tags/release-1.4.12-stable/libevent/ .
|
svn co https://levent.svn.sourceforge.net/svnroot/levent/tags/release-1.4.12-stable/libevent/ .
|
||||||
export LIBEVENTDIR=`pwd`
|
export LIBEVENTDIR=`pwd`
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
# http://pastebin.ca/1577159
|
# http://pastebin.ca/1577207
|
||||||
patch < /tmp/libevent-patch
|
patch < /tmp/libevent-patch
|
||||||
CC=droid-gcc LD=droid-ld ./configure --host=arm-none-linux-gnueabi
|
CC=droid-gcc LD=droid-ld ./configure --host=arm-none-linux-gnueabi
|
||||||
make
|
make
|
||||||
|
|
||||||
|
Copy over the libevent library:
|
||||||
|
|
||||||
|
cp .libs/libevent.a ~/mydroid/out/target/product/generic/obj/lib
|
||||||
|
|
||||||
Fetch and build Tor:
|
Fetch and build Tor:
|
||||||
|
|
||||||
export OPENSSLDIR=`cd ~/mydroid/external/openssl/include/ && pwd`
|
export OPENSSLDIR=`cd ~/mydroid/external/openssl/include/ && pwd`
|
||||||
|
|
Loading…
Reference in New Issue