-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Syncthing with cgo and GOOS=android #873
Comments
@AudriusButkevicius @Zillode Could you try to integrate this with the existing build scripts? I'm really bad with the Go build tools unfortunately. |
I am still trying understand what this will give us. |
I'm assuming that the goos=android platform exists for a reason.
|
It mostly exists for gomobile reasons being able to bind with Java I assume. From what I've looked at:
logging to /dev/log/main |
Finally gave this a try, but running into errors, using this code:
Output:
So it looks like Go is trying to install stuff to system directories (which are handled by the package manager). I could make that work on my laptop, but definitely not on F-Droid. According to this issue, the only solution seems to be waiting for Go 1.10? |
You can probably pass -pkgdir to handle that |
It's working! But I didn't see any way to pass -pkgdir to Other than that, I just have to update the build script. |
Yeah, I meant to |
This will hopefully get you better networking support, and we can qualify the remaining Android specializations on the architecture at build time instead of checking at runtime. I tested the procedure and it works fine - at least the build does, I can't test the binaries.
https://gist.github.com/calmh/20c24afc283656695b76f7822c8c8997
The text was updated successfully, but these errors were encountered: