Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Configure pre-condition 'libs.journald' failed when enabling journald for qt5.12.10

Configure pre-condition 'libs.journald' failed when enabling journald for qt5.12.10

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 723 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Max Yang
    wrote on last edited by Max Yang
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • M Offline
        M Offline
        Max Yang
        wrote on last edited by Max Yang
        #3

        @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.
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you check for libsystemd-journal ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Max Yang
            wrote on last edited by
            #5

            So I did find the problem in the end, installing libsystemd-dev was enough. I just needed to run ./configure recheck to remove cached configuration setups. The configure script seemed to have worked after that. Thanks a lot!

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved