2011-09-26 00:51:55 +00:00
|
|
|
r2 on android
|
|
|
|
=============
|
2011-09-25 19:07:34 +00:00
|
|
|
Install NDK in archlinux x86-64
|
|
|
|
- Enable multilib repo in pacman.conf
|
|
|
|
- pacman -S lib32-glibc lib32-zlib
|
|
|
|
|
2011-09-25 04:57:13 +00:00
|
|
|
To build r2 for android you need to install the NDK:
|
|
|
|
|
2012-09-20 01:38:48 +00:00
|
|
|
http://developer.android.com/tools/sdk/ndk/index.html
|
|
|
|
|
|
|
|
Edit ~/.r2androidrc to setup the paths to your ndk
|
|
|
|
|
2011-09-25 04:57:13 +00:00
|
|
|
sys/android-shell.sh
|
2012-06-01 12:50:24 +00:00
|
|
|
./configure --with-compiler=android --with-ostype=android --without-ssl --prefix=/data/radare2 --without-pic --with-nonpic --without-gmp
|
2011-09-25 04:57:13 +00:00
|
|
|
make -j 4
|
|
|
|
|
|
|
|
To compile for android-x86
|
|
|
|
|
|
|
|
export NDK_ARCH=x86
|
|
|
|
|
|
|
|
To package:
|
|
|
|
|
|
|
|
mkdir
|
|
|
|
make install DESTDIR=/usr
|
|
|
|
|
|
|
|
Build farm
|
|
|
|
|
|
|
|
See sys/android-shell.sh and sys/android-build.sh
|
|
|
|
|
2011-09-26 00:51:55 +00:00
|
|
|
sys/android-shell.sh sys/android-build.sh arm-static
|
|
|
|
|
|
|
|
|
2011-09-25 04:57:13 +00:00
|
|
|
Environment:
|
|
|
|
|
|
|
|
NDK_ARCH=arm|x86
|
|
|
|
STATIC_BUILD=0|1
|