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. Remove libwayland dependency on project
QtWS25 Last Chance

Remove libwayland dependency on project

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 612 Views
  • 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.
  • W Offline
    W Offline
    W U
    wrote on last edited by
    #1

    Hello,

    I have written a C++ QT program which builds up on QT5.9.5.

    Whenever I compile the program for Linux (amd64), it is linked agains:

    • libwayland-client.so.0
    • libwayland-server.so.0

    I do not see the word "wayland" anywhere during the compile / linking process. So I strongly assume that it is somehow linked indirectly by QT5.9.5. I have analyzed the binary file using "ldd".

    However, I do not need it.

    The question now is, how can I get rid of this linkage?
    I have a QT .pro file and standard QT5.9.5 installed on my machine.

    Is there a switch like:
    QT -= wayland

    I can use in my .pro file for that?

    And if yes, where can I find all possible switches for QT? This must be somewhere in the QT documentation, but I am not able to find it.

    Thank you! Kind Regards,
    W

    raven-worxR 1 Reply Last reply
    1
    • JoeCFDJ JoeCFD

      check if you are using wayland. If x11 is used, wayland lib is not needed.
      echo $XDG_SESSION_TYPE

      also it could be the case that qt was installed under wayland. Then you switched to x11. If yes, purge qt and reinstall in under x11.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #5

      @W-U said in Remove libwayland dependency on project:

      Is there a way to install "qt5.9.5" from official binaries without wayland support, but only X11 maybe?

      dont think so. you will have to compile Qt yourself.

      @JoeCFD
      it doesnt matter what the current runtime environment is. The lib is linked against libwayland, thats it.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • W W U

        Hello,

        I have written a C++ QT program which builds up on QT5.9.5.

        Whenever I compile the program for Linux (amd64), it is linked agains:

        • libwayland-client.so.0
        • libwayland-server.so.0

        I do not see the word "wayland" anywhere during the compile / linking process. So I strongly assume that it is somehow linked indirectly by QT5.9.5. I have analyzed the binary file using "ldd".

        However, I do not need it.

        The question now is, how can I get rid of this linkage?
        I have a QT .pro file and standard QT5.9.5 installed on my machine.

        Is there a switch like:
        QT -= wayland

        I can use in my .pro file for that?

        And if yes, where can I find all possible switches for QT? This must be somewhere in the QT documentation, but I am not able to find it.

        Thank you! Kind Regards,
        W

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #2

        @W-U
        if you check with ldd the wayland dependency might also come from another dependency.
        For example libQt5Gui.so might already have the dependency, because it was configured this way? So check each dependency libs for their dependencies.

        Try readelf -d myApp | grep NEEDED to show the direct dependencies.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        2
        • W Offline
          W Offline
          W U
          wrote on last edited by
          #3

          Ok, yes. I thought about that also.
          It seems that libQt5WebEngine.so uses for example wayland.

          Is there a way to install "qt5.9.5" from official binaries without wayland support, but only X11 maybe?

          1 Reply Last reply
          0
          • JoeCFDJ Online
            JoeCFDJ Online
            JoeCFD
            wrote on last edited by JoeCFD
            #4

            check if you are using wayland. If x11 is used, wayland lib is not needed.
            echo $XDG_SESSION_TYPE

            also it could be the case that qt was installed under wayland. Then you switched to x11. If yes, purge qt and reinstall in under x11.

            raven-worxR 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              check if you are using wayland. If x11 is used, wayland lib is not needed.
              echo $XDG_SESSION_TYPE

              also it could be the case that qt was installed under wayland. Then you switched to x11. If yes, purge qt and reinstall in under x11.

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #5

              @W-U said in Remove libwayland dependency on project:

              Is there a way to install "qt5.9.5" from official binaries without wayland support, but only X11 maybe?

              dont think so. you will have to compile Qt yourself.

              @JoeCFD
              it doesnt matter what the current runtime environment is. The lib is linked against libwayland, thats it.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              2
              • W Offline
                W Offline
                W U
                wrote on last edited by
                #6

                Ok. Yes, compiling QT5 on my own without wayland would be a solution, although a bit inconvinient one. Nevertheless, I will try it!

                Thank you all!

                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