Hi all,
This is my first time working with gRPC, and I'm new to the project.
I'm building a gRPC application for C++, which will be used (and is currently used) on Toradex SoM running TorizonOS. I'm working on Windows 11 with WSL2. I’ve tried building on both Ubuntu 24.04 LTS and the Torizon distribution from Toradex. The cross-compiler I’m using is: arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-linux-gnu.
The process I followed is as follows:
I always encounter the following error (tried Ubuntu and Torizon distributions in WSL2):
The build fails because it can’t find systemd/sd-daemon.h. I have fully updated the distribution (via apt update/upgrade) on both Ubuntu and Torizon, and I have libsystemd installed with it, but the build still fails at this point.
The only way I’ve found to resolve this is by removing the systemd-related code from the gRPC CMakeLists.txt (located in build/_deps/grpc-src), similar to how it’s done for Windows, where there is no systemd.
Interestingly, my colleagues have been able to build it without any modifications to the CMakeLists.txt on their machines, but they did it 2 years ago first time, maybe they forgot some steps I currently don't know...
Could anyone offer insight into why this might be happening?
Also, will gRPC work correctly on Toradex SoMs without systemd support?
If yes, I got nothing to worry about.
Thanks in advance!
Best regards,
Mladen