hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

android_do works only with great difficulty #108

Open benhylau opened 8 years ago

benhylau commented 8 years ago

The android_do cross-compile script is broken. If you run it as is, it will fail.

Now change this line and the next to use --platform=android-21, the build will succeed, but the binary will fail when you run cjdroute on the phone (on my Android 4.4.4 anyways).

So you need to change the line back to --platform=android-9 and compile.

Wait... what? That was the original value that failed to compile the first time!

Yes. The trick is to compile once with --platform=android-21 first, then compile with --platform=android-9, and the resulting binary will run properly on the Android 4.4.4.

But... how?

Some global environment state was changed in the first compilation? I don't know. It's a bug.

ansuz commented 8 years ago

what is this I don't even

kpcyrd commented 8 years ago

@benhylau great debugging work <3