Configure pre-condition 'libs.journald' failed when enabling journald for qt5.12.10
-
Hi, I am getting an error when configuring qt to use journald for version 5.12.10. When I run the configure command
./Qt/5.12.10/Src/configure -journald
The error message I get,
Note: Also available for Linux: linux-clang linux-icc Note: No wayland-egl support detected. Cross-toolkit compatibility disabled. WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation. Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. On macOS, you can use Homebrew's llvm package. On Windows, you must set LLVM_INSTALL_DIR to the installation path. WARNING: flex is required to build QtWebEngine. ERROR: Feature 'journald' was enabled, but the pre-condition 'libs.journald' failed.
The config.log file seems to indicate that there are a lot of packages missing but I can't seem to pinpoint the exact source of the problem. Has anyone got any ideas?
The config log file:
https://drive.google.com/file/d/11NL7fGkFTuGaAl0LZSHDlLHl9aQq2hDG/view?usp=sharing -
Hi and welcome to devnet,
Based on the log either libsystemd or libsystemd-journal would seem to be checked.
Therefore you should check your distribution's package manager to see which package is related to these libraries.
-
@SGaist Thanks for your answer.
I am using ubuntu. I have tried sudo apt-get install libsystemd-dev and then retrying the configure script, this did not seem to have solved the issue. The config log is still saying
loaded result for library config.qtbase_corelib.libraries.journald Trying source 0 (type pkgConfig) of library journald ... + /usr/bin/pkg-config --exists --silence-errors libsystemd pkg-config did not find package. => source produced no result. Trying source 1 (type pkgConfig) of library journald ... + /usr/bin/pkg-config --exists --silence-errors libsystemd-journal pkg-config did not find package. => source produced no result. test config.qtbase_corelib.libraries.journald FAILED
But I clearly have this package, not sure why it can't find it
Package: libsystemd-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 620 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Multi-Arch: same Source: systemd Version: 229-4ubuntu21.31 Replaces: libsystemd-daemon-dev (<< 209), libsystemd-id128-dev (<< 209), libsystemd-journal-dev (<< 209), libsystemd-login-dev (<< 209), systemd (<< 204-8) Depends: libsystemd0 (= 229-4ubuntu21.31) Breaks: libsystemd-daemon-dev (<< 209), libsystemd-id128-dev (<< 209), libsystemd-journal-dev (<< 209), libsystemd-login-dev (<< 209), systemd (<< 204-8) Description: systemd utility library - development files The libsystemd0 library provides interfaces to various systemd components.
-
Did you check for libsystemd-journal ?