'How to check if qt is build with specific configuration

I am following the guide here to log my debug/info messages in journald.

The guide states that the qt must be compiled with either ofconfiguration:

  Logging backends:
    journald ............... yes

I do not get any output in the journald, so I assume that configuration is missing.

How can I check that the current qt that is in my system configured with that option?



Solution 1:[1]

As the Qt documentation you linked says,

To enable the syslog or journald logging support in Qt 5.6.0 or later, you need to configure it into Qt. They default to being disabled, so you need to explicitly use the -journald or -syslog options when running the configure script.

So you MUST recompile Qt from sources in order to get this functionality, or find a pre-built version with these options enabled - I would say "good luck" for this, in particular on Linux.

You can check this page for starting a Qt rebuild.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wisblade