CMake-based pub/sub example using score::mw::com — with ARM64 cross-compilation support #356
tfa2si
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all 👋
Following up on my earlier post about ARM64 cross-compilation, I've put together a minimal publisher/subscriber example using score::mw::com that builds with CMake (instead of Bazel) and supports both x86 and ARM64 (e.g. Raspberry Pi 5).
This is useful if you want to integrate the middleware into your own CMake-based project without being tied to the Bazel build system.
What it does:
Builds a fat static library (libmw_com.a) from the middleware using Bazel, then exposes it as a standard find_package(MwCom) CMake target
No runtime dependencies to copy to the target — everything is statically linked
Tested on Ubuntu 22.04/24.04 host → Raspberry Pi 5 (ARM64)
Repos:
Example: https://github.com/tfa2si/score-pubsub-cmake-example
ARM64 toolchain bootstrap (if your apt repo is broken): https://github.com/tfa2si/bazel-aarch64-cross-bootstrapHi all 👋
Following up on my earlier post about ARM64 cross-compilation, I've put together a minimal publisher/subscriber example using score::mw::com that builds with CMake (instead of Bazel) and supports both x86 and ARM64 (e.g. Raspberry Pi 5).
This is useful if you want to integrate the middleware into your own CMake-based project without being tied to the Bazel build system.
What it does:
Builds a fat static library (libmw_com.a) from the middleware using Bazel, then exposes it as a standard find_package(MwCom) CMake target
No runtime dependencies to copy to the target — everything is statically linked
Tested on Ubuntu 22.04/24.04 host → Raspberry Pi 5 (ARM64)
Repos:
Example: https://github.com/tfa2si/score-pubsub-cmake-example
ARM64 toolchain bootstrap (if your apt repo is broken): https://github.com/tfa2si/bazel-aarch64-cross-bootstrap
Happy to hear feedback or ideas on how this could be improved or integrated upstream!
Beta Was this translation helpful? Give feedback.
All reactions