build on android aarch64
Android上build需要先Installing Debian on Android in Termux
Android上build需要先Installing Debian on Android in Termux
在Android上构建时,需要先Installing Debian on Android in Termux
-
install termux
-
install proot-distro
select debian distro
pkg install proot-distro proot-distro install debian proot-distro login debian -
install packages
remember
proot-distro login debianfirstapk update apt install clang cmake libelf1 libelf-dev zlib1g-dev之后的步骤和在ARM上build上相同
Build on ARM
-
同步 eunomia-bpf 到本地
git clone https://github.com/eunomia-bpf/eunomia-bpf.git cd eunomia-bpf git submodule update --init --recursive --remote -
配置环境变量
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig -
安装依赖
apt update apt install clang cmake libelf1 libelf-dev zlib1g-dev -
修改wasm-runtime/CMakeLists.txt
中的WAMR_BUILD_TARGET(may not required)change
set (WAMR_BUILD_TARGET "X86_64")toset (WAMR_BUILD_TARGET "AARCH64") -
编译
make bpf-loader make ecli -
检查输出
root@localhost:~/eunomia-bpf# file ecli/build/bin/Release/ecli ecli: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=eab42b79be75951e3a573aa7c61136239d35c868, for GNU/Linux 3.7.0, with debug_info, not stripped
继续阅读
返回索引
eunomia-bpf:简化并增强eBPF,支持CO-RE[^1]和WebAssembly[^2]
  ![DeepSource](https://deepsource.io/gh/eunomia-bpf/eunomia-bpf/?ref=reposi
上一篇 / 上一页
quickstart
- Github Template: eunomia-bpf/eunomia-template - example bpf programs: examples/bpftools - tutorial: eunomia-bpf/bpf-developer-tutorial
下一篇 / 下一页
build from source
If you want to run the cli, in most cases, you don't need to build your own.
- 最后更新
- 2025年2月10日
- 首次发布
- 2025年2月10日
- 贡献者
- weekendfish
这个页面有帮助吗?