Docker-based cross-compile setup for netopeer2 + full dependency stack (x86_64 / ARM32 / ARM64) #1827
sairohan0
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I put together a small build system for cross-compiling netopeer2 and its entire dependency chain (zlib, openssl, libssh, libpsl, libxcrypt, pcre, curl, libyang, sysrepo, libnetconf2, netopeer2, cJSON*, rabbitmq-c*) for x86_64, ARM32 (armhf), and ARM64 (aarch64) — all inside a single Docker Compose run, producing a ready-to-use sysroot per architecture.
It was born out of needing repeatable netopeer2 builds for embedded/ARM targets without hand-rolling the whole dependency chain and cross-toolchain setup each time.
What it does:
./build.shbuilds all three architectures back to backarm-linux-gnueabihf-*/aarch64-linux-gnu-*)/opt/sysroots/x86_64,/arm32,/arm64) with flattenedlib/,include/,pkgconfig/dirs ready for downstream buildsRepo: https://github.com/sairohan0/Netopeer2-installation
Note: dependency source trees aren't vendored in the repo — you bring your own versions of each library into the repo root before building (the README lists the exact folder names expected).
Happy to hear feedback, or if this overlaps with something that already exists in the ecosystem, would love pointers to that too.
*rabbitmq-c and cJSON are optional
All reactions