Wireshark-users: [Wireshark-users] Re: how to compile without systemd?

From: Papa Tango <papatango.nyc@xxxxxxxxx>
Date: Mon, 29 Sep 2025 11:27:58 -0400
Thank you for the suggestions. I altered CMakeOptions.txt as suggested. I also altered it to use qt5 over qt6, but that's unrelated. I am on Devuan stable. I was missing some qt dev libraries but other than that cmake now no longer chokes and compilation is proceeding right now but it is not yet complete. I also realized since writing to this list that I could just use the distribution's version. It is an older version of wireshark but that is typical of many distributions. 

On Fri, Sep 26, 2025 at 1:58 PM Guy Harris <gharris@xxxxxxxxx> wrote:
On Sep 26, 2025, at 10:46 AM, Jaap Keuter via Wireshark-users <wireshark-users@xxxxxxxxxxxxx> wrote:

> 2) The build configuration (as found in CmakeOptions.txt) uses CMAKE_SYSTEM_NAME equal to “Linux” to assume these libraries are available. This may be too loose.

I'd replace "may be" with "is". There are a lot of Linux distributions, and systemd is not, it appears, a universally-acclaimed and universally-adopted feature.

> 3) The systemd libraries are only used to build the sdjournal extcap plugin, so you don’t need it to build and run Wireshark itself.
>
> In short, I would tweak the CmakeOptions.txt file to always set BUILD_sdjournal to OFF.

So the appropriate CMakeLists.txt file should check whether the systemd libraries are present and only build sdjournal if they are.