Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot find -lxkbcommon
Qt 6.11 is out! See what's new in the release blog

Cannot find -lxkbcommon

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 1.7k Views 1 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.
  • C Offline
    C Offline
    CSMath
    wrote on last edited by
    #1

    I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with qmake.
    When I compile i get the following error:

    Cannot find -lxkbcommon: No such file or directory.
    

    I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
    After some research I found that Qt X11 Extras module has been removed from Qt6 and probably that is the reason for the error.
    I have libxcommon library installed though.
    I also found that the error is due to the following modules QT += ... gui-private widgets-private...

    I followed some steps for porting to Qt6 from Qt doc.

    Is there a workarround?

    Christian EhrlicherC JonBJ Axel SpoerlA 3 Replies Last reply
    0
    • C CSMath

      I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with qmake.
      When I compile i get the following error:

      Cannot find -lxkbcommon: No such file or directory.
      

      I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
      After some research I found that Qt X11 Extras module has been removed from Qt6 and probably that is the reason for the error.
      I have libxcommon library installed though.
      I also found that the error is due to the following modules QT += ... gui-private widgets-private...

      I followed some steps for porting to Qt6 from Qt doc.

      Is there a workarround?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @CSMath said in Cannot find -lxkbcommon:

      I have libxcommon library installed though.

      Then the library would have been found - you most likely forgot to install the -devel package.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      C 1 Reply Last reply
      3
      • C CSMath

        I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with qmake.
        When I compile i get the following error:

        Cannot find -lxkbcommon: No such file or directory.
        

        I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
        After some research I found that Qt X11 Extras module has been removed from Qt6 and probably that is the reason for the error.
        I have libxcommon library installed though.
        I also found that the error is due to the following modules QT += ... gui-private widgets-private...

        I followed some steps for porting to Qt6 from Qt doc.

        Is there a workarround?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @CSMath said in Cannot find -lxkbcommon:

        lxkbcommon

        As @Christian-Ehrlicher says and see https://stackoverflow.com/questions/70957217/problem-not-knowing-qt-gui-private-in-qt and https://forum.qt.io/topic/134030/problem-not-knowing-qt-gui-private-in-qt

        1 Reply Last reply
        1
        • C CSMath

          I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with qmake.
          When I compile i get the following error:

          Cannot find -lxkbcommon: No such file or directory.
          

          I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
          After some research I found that Qt X11 Extras module has been removed from Qt6 and probably that is the reason for the error.
          I have libxcommon library installed though.
          I also found that the error is due to the following modules QT += ... gui-private widgets-private...

          I followed some steps for porting to Qt6 from Qt doc.

          Is there a workarround?

          Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @CSMath said in Cannot find -lxkbcommon:

          I have libxcommon library installed though.

          libxkbcommon is needed (mind the k and the b).

          I also found that the error is due to the following modules QT += ... gui-private widgets-private

          Linking to private headers is asking for trouble. There have been massive changes from Qt5 to Qt6. If you can compile your project without private headers, please do so. Using them anyway is at your own risk and beyond any support.

          Software Engineer
          The Qt Company, Oslo

          C 1 Reply Last reply
          3
          • Christian EhrlicherC Christian Ehrlicher

            @CSMath said in Cannot find -lxkbcommon:

            I have libxcommon library installed though.

            Then the library would have been found - you most likely forgot to install the -devel package.

            C Offline
            C Offline
            CSMath
            wrote on last edited by
            #5

            @Christian-Ehrlicher Looks like the libxkbcommon-devel was not installed. I thoughed it was a subpackage of libxkbcommon. I don't get the error now.

            1 Reply Last reply
            0
            • Axel SpoerlA Axel Spoerl

              @CSMath said in Cannot find -lxkbcommon:

              I have libxcommon library installed though.

              libxkbcommon is needed (mind the k and the b).

              I also found that the error is due to the following modules QT += ... gui-private widgets-private

              Linking to private headers is asking for trouble. There have been massive changes from Qt5 to Qt6. If you can compile your project without private headers, please do so. Using them anyway is at your own risk and beyond any support.

              C Offline
              C Offline
              CSMath
              wrote on last edited by
              #6

              @Axel-Spoerl said in Cannot find -lxkbcommon:

              Linking to private headers is asking for trouble. There have been massive changes from Qt5 to Qt6. If you can compile your project without private headers, please do so. Using them anyway is at your own risk and beyond any support.

              You're right. I removed the private moduled and compiled again. Now I don't get this error.

              1 Reply Last reply
              1
              • C CSMath has marked this topic as solved on
              • C CSMath has marked this topic as solved on
              • C CSMath has marked this topic as solved on

              • Login

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