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

Build 2 Android Arm64 #452

Closed
hongyang51 opened this issue Dec 22, 2023 · 1 comment
Closed

Build 2 Android Arm64 #452

hongyang51 opened this issue Dec 22, 2023 · 1 comment

Comments

@hongyang51
Copy link

hongyang51 commented Dec 22, 2023

目前我在Ubuntu 23.10 x86 的PC机器上,如何自己修改源码后,编译一个 Android 的 arm64 版本?

开发板的 config.gz 不存在 ,所以需要自定义一下config的路径。。

当前使用 ANDROID=1 make nocore
编译出来的结果
go run github.com/shuLhan/go-bindata/cmd/go-bindata -pkg assets -o "assets/ebpf_probe.go" ./user/bytecode/bash_kern_less52.o ./user/bytecode/bash_kern.o ./user/bytecode/boringssl_a_13_kern_less52.o ./user/bytecode/boringssl_a_13_kern.o ./user/bytecode/boringssl_a_14_kern_less52.o ./user/bytecode/boringssl_a_14_kern.o ./user/bytecode/gnutls_kern_less52.o ./user/bytecode/gnutls_kern.o ./user/bytecode/gotls_kern_less52.o ./user/bytecode/gotls_kern.o ./user/bytecode/mysqld_kern_less52.o ./user/bytecode/mysqld_kern.o ./user/bytecode/nspr_kern_less52.o ./user/bytecode/nspr_kern.o ./user/bytecode/openssl_1_0_2a_kern_less52.o ./user/bytecode/openssl_1_0_2a_kern.o ./user/bytecode/openssl_1_1_0a_kern_less52.o ./user/bytecode/openssl_1_1_0a_kern.o ./user/bytecode/openssl_1_1_1a_kern_less52.o ./user/bytecode/openssl_1_1_1a_kern.o ./user/bytecode/openssl_1_1_1b_kern_less52.o ./user/bytecode/openssl_1_1_1b_kern.o ./user/bytecode/openssl_1_1_1d_kern_less52.o ./user/bytecode/openssl_1_1_1d_kern.o ./user/bytecode/openssl_1_1_1j_kern_less52.o ./user/bytecode/openssl_1_1_1j_kern.o ./user/bytecode/openssl_3_0_0_kern_less52.o ./user/bytecode/openssl_3_0_0_kern.o ./user/bytecode/postgres_kern_less52.o ./user/bytecode/postgres_kern.o CGO_ENABLED=0 go build -tags androidgki -ldflags "-w -s -X 'ecapture/cli/cmd.GitVersion=androidgki_x86_64:0.7.0-20231219-d348803:6.5.0-14-generic' -X 'main.enableCORE=false'" -o bin/ecapture .

目测是x86 的,在Android arm64运行应该有问题。

like #445

thx!

@hongyang51 hongyang51 changed the title 也帮我瞅瞅 Build 2 Android Arm64 Dec 22, 2023
@hongyang51
Copy link
Author

fixed by github action

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

No branches or pull requests

1 participant