[guardian-dev] Build process for Android Tor binary

Hans of Guardian hans at guardianproject.info
Thu Jan 2 11:26:45 EST 2014


On Dec 27, 2013, at 2:15 PM, Michael Rogers wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 27/12/13 17:42, Nathan of Guardian wrote:
>> We don't bundle Tor with ChatSecure, it is only in Orbot.
> 
> Doh, sorry, I meant Orbot. ECHRISTMAS :-)
> 
>> Regardless, still happy to help you compile your own Tor. It is
>> quite a robust build process.
>> 
>> 1) Ensure you have NDK installed
>> 
>> 2) Set your ANDROID_NDK home env variable.
>> 
>> 3) cd Orbot/external
>> 
>> 4) run "make"!
> 
> That's fantastic, thanks! I had to make a small change to the Makefile
> on my system, where uname -m is i686 but the NDK expects x86:
> 
> - -NDK_PROCESSOR:=`uname -m`
> +NDK_PROCESSOR:=$(shell uname -m)
> +ifeq ($(NDK_PROCESSOR), i686)
> +        NDK_PROCESSOR:=x86
> +endif
> 
> Apart from that, everything went as expected.
> 
> Cheers,
> Michael


Nathan, I submitted some patches to update this build system to the bug tracker, which will fix that issue and others, as well as adding some build hardening flags to the process.

.hc


More information about the Guardian-dev mailing list