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

Date Prev · Date Next · Thread Prev · Thread Next
From: Papa Tango <papatango.nyc@xxxxxxxxx>
Date: Mon, 29 Sep 2025 16:14:32 -0400
Thank you so much again. 

I had been using the command line switch before I wrote to this list, as you suggested. But once I started modifying the CMakeOptions.txt and I noticed I could just accomplish the same in there I wanted to dispense with the command line switch. My attempt to build failed. I had to upgrade my version of flex. And I rolled back to a prior release. I had been attempting to compile from the latest commit. I forgot which release off hand, but not a very old one, and finally everything compiles. I had no idea it was that easy. I'm no expert in CMake either.

On Mon, Sep 29, 2025 at 11:53 AM Guy Harris <gharris@xxxxxxxxx> wrote:
On Sep 29, 2025, at 8:27 AM, Papa Tango <papatango.nyc@xxxxxxxxx> wrote:

> I also altered it to use qt5 over qt6, but that's unrelated.

You don't need to alter it - you can, instead, run CMake with -DUSE_qt6=NO.

And if you *want* to alter it, rather than adding that flag to CMake, you can just change CMakeOptions.txt to say

        option(USE_qt6     "Use Qt6 (preferred) instead of Qt5" OFF)

rather than

        option(USE_qt6     "Use Qt6 (preferred) instead of Qt5" ON)