Skip to content
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

Cross-compile / make android library from Shapeshifter-Transports #1

Open
n8fr8 opened this issue Oct 18, 2017 · 7 comments
Open

Cross-compile / make android library from Shapeshifter-Transports #1

n8fr8 opened this issue Oct 18, 2017 · 7 comments
Assignees

Comments

@n8fr8
Copy link
Member

n8fr8 commented Oct 18, 2017

We need this running on Android:
https://github.com/OperatorFoundation/shapeshifter-transports

@n8fr8
Copy link
Member Author

n8fr8 commented Oct 18, 2017

@n8fr8
Copy link
Member Author

n8fr8 commented Oct 18, 2017

@Jiangyi excellent, thanks for 262fa49

Now, we need a class to manage the runtime and call the appropriate command line args!

@Jiangyi
Copy link
Contributor

Jiangyi commented Oct 18, 2017

Convenience build script for shapeshifter-dispatcher here: https://gist.github.com/Jiangyi/7a315627e09aac06c3b46ba229071689

For now, put this script in your GOPATH and run it there please!

@n8fr8
Copy link
Member Author

n8fr8 commented Nov 30, 2017

Some more build options here

GOOS=android GOARCH=arm CC=/home/n8fr8/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc CXX=/home/n8fr8/android/ndk/toolchains/
arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ CGO_ENABLED=1 CGO_LDFLAGS="-L/home/n8fr8/android/ndk/platforms/android-14/arch-arm/usr/lib/ -pthread
--sysroot /home/n8fr8/android/ndk/platforms/android-14/arch-arm" CGO_CFLAGS="-I/home/n8fr8/android/ndk/platforms/android-14/arch-arm/usr/include/ --sysroot /home/n8fr8/android/nd
k/platforms/android-14/arch-arm" GOARM=7 go build -p=8 -pkgdir=$GOMOBILE/pkg_android_arm -tags="" -ldflags="-extldflags=-pie" -a -o ss-local-client -x cmd/shadowsocks-local/local
.go

@eighthave
Copy link
Member

based on our conversation, this should start with getting daemon running on Android as fast as possible. Then explore how to make them nicely integrated

@eighthave
Copy link
Member

@consuelita

@n8fr8
Copy link
Member Author

n8fr8 commented Apr 26, 2018

@eighthave is making solid progress here this week:
https://gitlab.com/eighthave/obfs4
has Mike's iObfs4 building for Android via gomobile bind and a CI build here:
https://gitlab.com/eighthave/obfs4/commit/fa72d27971ab009c68f1d43a261cbf20ec03ba84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants