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

How can I cross-compile a statically link executables for android platform device? #17

Closed
Droid-MAX opened this issue Nov 8, 2019 · 3 comments

Comments

@Droid-MAX
Copy link

I have tried many methods, but I have failed to compile all the tools successfully. By modifying the CGO_ENABLED and ldflags parameters, I will prompt pcap related error, but the libpcap-dev package is installed on the host system.

@Droid-MAX
Copy link
Author

Droid-MAX commented Nov 9, 2019

google/gopacket#100 (comment)

Maybe this method works.

@Droid-MAX
Copy link
Author

After successful compilation, put the executable file into the mobile phone system environment to perform an error, prompting runtime error.

@dreadl0ck
Copy link
Owner

Please show what commands for compilation you used, and the runtime error message.
Also what OS are you on, which version of Go and what version of libc do you have installed?

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