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 build QtWayland plugin when building qt from source for 32bit.

Cannot build QtWayland plugin when building qt from source for 32bit.

Scheduled Pinned Locked Moved Unsolved General and Desktop
20 Posts 4 Posters 1.5k 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.
  • D Offline
    D Offline
    Durugesha
    wrote on 7 Aug 2024, 05:57 last edited by
    #3

    Hello @logan-massey,
    you are getting this two error because your Qt source code build is not generated xcb and wayland flatform libraries.

    sudo apt-get install build-essential libgl1-mesa-dev
    try the above common for build essentials. in configure commond add both wayland and xcb.
    example - ../configure -prefix pathtoinstall -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -wayland -- -DQT_BUILD_TESTS_BY_DEFAULT=OFF

    L 2 Replies Last reply 7 Aug 2024, 18:16
    0
    • C ChrisW67
      6 Aug 2024, 22:35

      @logan-massey said in Cannot build QtWayland plugin when building qt from source for 32bit.:

      I downloaded what I thought were the correct dependencies, but the issue persists. I cannot seem to find what dependencies I am missing in order to fix this.

      From here:

      To build the QtWayland module you need the external dependencies:
      xkbcommon - http://xkbcommon.org/
      wayland - http://wayland.freedesktop.org/
      

      There also other Qt modules, external components and driver support that may be needed.

      What did you think were the correct dependencies?
      What did you actually install into your Ubuntu VM?
      What virtual display hardware is present?
      How did you build Qt? What version?

      L Offline
      L Offline
      logan.massey
      wrote on 7 Aug 2024, 18:05 last edited by
      #4

      @ChrisW67

      @ChrisW67 said in Cannot build QtWayland plugin when building qt from source for 32bit.:

      @logan-massey said in Cannot build QtWayland plugin when building qt from source for 32bit.:

      To build the QtWayland module you need the external dependencies:
      xkbcommon - http://xkbcommon.org/
      wayland - http://wayland.freedesktop.org/

      I have seen this and used apt install to try and get any and everything related to wayland and xkbcommon. But seeing it now I realize that it is something I need to go grab from the website. I have downloaded these and am reconfiguring now. I will let you know if this solves my issue.

      > What did you think were the correct dependencies?
      I have used apt install to download any wayland or xcb/xkb library available. I believe I understand the error of my mistake relevant to dependencies now.

      > What did you actually install into your Ubuntu VM?
      I am using a VirtualBox vm with an Ubuntu .iso

      > What virtual display hardware is present?
      I am using a laptop with 2 additional monitors

      > How did you build Qt? What version?
      I built qt by following this guide. Qt version 6.9

      1 Reply Last reply
      0
      • D Durugesha
        7 Aug 2024, 05:57

        Hello @logan-massey,
        you are getting this two error because your Qt source code build is not generated xcb and wayland flatform libraries.

        sudo apt-get install build-essential libgl1-mesa-dev
        try the above common for build essentials. in configure commond add both wayland and xcb.
        example - ../configure -prefix pathtoinstall -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -wayland -- -DQT_BUILD_TESTS_BY_DEFAULT=OFF

        L Offline
        L Offline
        logan.massey
        wrote on 7 Aug 2024, 18:16 last edited by
        #5

        @Durugesha

        @Durugesha said in Cannot build QtWayland plugin when building qt from source for 32bit.:

        > sudo apt-get install build-essential libgl1-mesa-dev
        These have already been downloaded

        > example - ../configure -prefix pathtoinstall -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -wayland -- -DQT_BUILD_TESTS_BY_DEFAULT=OFF
        Previously using any of these flags (-xcb, -xcb-xlib, etc...) have resulted in errors mentioning something along the lines of "Forcing XCB to ON breaks its state". But I have followed @ChrisW67 suggestions in the post above and believe this may be my issue. I will try to build without these flags, then if I still run into issues I will add these flags and report my results here.

        Thank you for your reply.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 7 Aug 2024, 19:06 last edited by
          #6

          Hi,

          Unrelated to your issue, unless you plan to hack on Qt itself, drop the -developer-build option.

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

          L 1 Reply Last reply 7 Aug 2024, 19:24
          1
          • S SGaist
            7 Aug 2024, 19:06

            Hi,

            Unrelated to your issue, unless you plan to hack on Qt itself, drop the -developer-build option.

            L Offline
            L Offline
            logan.massey
            wrote on 7 Aug 2024, 19:24 last edited by
            #7

            @SGaist said in Cannot build QtWayland plugin when building qt from source for 32bit.:

            Hi,

            Unrelated to your issue, unless you plan to hack on Qt itself, drop the -developer-build option.

            the man, the myth, the legend, @SGaist

            I'm currently building with that option enabled. Does it alter qt in any major way? Or is it fine to use a build that has that option?

            S 1 Reply Last reply 7 Aug 2024, 19:30
            0
            • L logan.massey
              7 Aug 2024, 19:24

              @SGaist said in Cannot build QtWayland plugin when building qt from source for 32bit.:

              Hi,

              Unrelated to your issue, unless you plan to hack on Qt itself, drop the -developer-build option.

              the man, the myth, the legend, @SGaist

              I'm currently building with that option enabled. Does it alter qt in any major way? Or is it fine to use a build that has that option?

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 7 Aug 2024, 19:30 last edited by
              #8

              @logan-massey it modifies some of the flags used for the build (sorry I don't remember the details right now). The point is that the build is not optimized as a release build which is what you want to have for building and distributing your applications.

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

              L 1 Reply Last reply 7 Aug 2024, 19:34
              1
              • S SGaist
                7 Aug 2024, 19:30

                @logan-massey it modifies some of the flags used for the build (sorry I don't remember the details right now). The point is that the build is not optimized as a release build which is what you want to have for building and distributing your applications.

                L Offline
                L Offline
                logan.massey
                wrote on 7 Aug 2024, 19:34 last edited by
                #9

                @SGaist okay will reconfigure without it, thank you.

                1 Reply Last reply
                1
                • D Durugesha
                  7 Aug 2024, 05:57

                  Hello @logan-massey,
                  you are getting this two error because your Qt source code build is not generated xcb and wayland flatform libraries.

                  sudo apt-get install build-essential libgl1-mesa-dev
                  try the above common for build essentials. in configure commond add both wayland and xcb.
                  example - ../configure -prefix pathtoinstall -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -wayland -- -DQT_BUILD_TESTS_BY_DEFAULT=OFF

                  L Offline
                  L Offline
                  logan.massey
                  wrote on 8 Aug 2024, 14:01 last edited by logan.massey 8 Aug 2024, 14:29
                  #10

                  @Durugesha @ChrisW67 So currently while trying to configure with these flags "-xcb, -xcb-xlib, -bundled-xcb-xinput", I get the following 2 errors:
                  35e046f9-85f0-4f6e-bd0c-4572f51bef72-image.png

                  I also figure this would be relevant, what can I do to ensure these (xkbxommon-x11,, and xcb-sm) are "yes" ?
                  7c0915b2-051a-4dff-915e-6e0aaa736c5b-image.png

                  When in fact i have this installed already
                  651a931b-7343-41db-b72f-78a684b22ea0-image.png

                  Also, qtwayland says it is still missing required dependencies:
                  fdf04ad7-b151-4979-b3ef-cd61dfd89b24-image.png

                  Thank you for your help!

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 8 Aug 2024, 19:34 last edited by
                    #11

                    Hi,

                    Did you restart the configuration from a clean state after installing the missing dependencies ?

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

                    L 1 Reply Last reply 8 Aug 2024, 20:33
                    0
                    • S SGaist
                      8 Aug 2024, 19:34

                      Hi,

                      Did you restart the configuration from a clean state after installing the missing dependencies ?

                      L Offline
                      L Offline
                      logan.massey
                      wrote on 8 Aug 2024, 20:33 last edited by logan.massey 8 Aug 2024, 20:33
                      #12

                      @SGaist

                      I delete all folders in the build folder. And start a new terminal. Is that enough?

                      Once I removed the -developer-build option from the configure line, like you suggested earlier, I started getting those "Forcing to ON breaks its condition" errors, so I am only using the -bundled-xcb-xinput option.

                      Also, I am skipping a good amount of modules to keep the space it takes up fairly low and since I have encountered errors building all of them in the past. Here is a screenshot of my full configure line:
                      9f453d65-1be3-499a-8adf-8eeb264e60f1-image.png

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 12 Aug 2024, 18:23 last edited by
                        #13

                        Check the logs generated from the configure tests, they might give you more hints about what is going wrong.

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

                        L 1 Reply Last reply 20 Aug 2024, 15:29
                        0
                        • S SGaist
                          12 Aug 2024, 18:23

                          Check the logs generated from the configure tests, they might give you more hints about what is going wrong.

                          L Offline
                          L Offline
                          logan.massey
                          wrote on 20 Aug 2024, 15:29 last edited by logan.massey
                          #14

                          @SGaist
                          After a break from this, I am back and retrying. This is where I stand now. Help would be much appreciated as I am a little naive with this topic. Thanks

                          I do not see any log files. Only file i see is the config.summary file. Which only mentions wayland once
                          3c667f4f-0810-41b6-9359-c3c0bf2afcae-image.png

                          The configure output throws this warning:
                          66833ead-815e-4f1a-b5ac-f5f9bf3d1bbc-image.png

                          When I go to that file and look at line 26, I see this conditional:
                          1bac9130-b3f2-406e-b1ee-08b624d77ba0-image.png

                          I can confirm I have WaylandScanner:
                          9875128c-4d76-43e0-b7e0-8789a1e42a2b-image.png

                          And this shows I am using Wayland:
                          f852c5d8-1236-47a2-8a3b-1d63055e86c8-image.png

                          So to figure out which conditional was failing, I modified the CMakeLists.txt in the wayland/src folder by splitting the conditional into two if statements:
                          ce48d163-db6b-4e2d-bcd9-4ac8bd50ac40-image.png

                          After running the configure script again with this new CMakeLists.txt file, I see this:
                          f63df84d-dde2-4805-8215-11704814fcde-image.png

                          This tells me that the NOT Wayland_FOUND conditional is what is throwing this. I'm not positive what this means since I am running Wayland already since it comes with Ubuntu pre-installed.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 20 Aug 2024, 19:33 last edited by
                            #15

                            Do you have the wayland development libraries installed ?

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

                            L 1 Reply Last reply 21 Aug 2024, 18:14
                            0
                            • S SGaist
                              20 Aug 2024, 19:33

                              Do you have the wayland development libraries installed ?

                              L Offline
                              L Offline
                              logan.massey
                              wrote on 21 Aug 2024, 18:14 last edited by
                              #16

                              @SGaist

                              The Wayland Development libraries I already have installed are as follows:

                              libwayland-dev
                              libffi-dev
                              libwayland-bin
                              libwayland-client0
                              libwayland-cursor0
                              libwayland-egl1
                              libwayland-server0
                              libwayland-doc

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 21 Aug 2024, 19:59 last edited by
                                #17

                                I just saw that the cmake file looks for 1.15 and you have wayland 1.20. I wonder if it comes to that.

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

                                L 1 Reply Last reply 23 Aug 2024, 14:02
                                0
                                • S SGaist
                                  21 Aug 2024, 19:59

                                  I just saw that the cmake file looks for 1.15 and you have wayland 1.20. I wonder if it comes to that.

                                  L Offline
                                  L Offline
                                  logan.massey
                                  wrote on 23 Aug 2024, 14:02 last edited by
                                  #18

                                  @SGaist
                                  spent yesterday working on this suggestion. Got wayland1.15 built and installed.

                                  I ran the configure script for qt and didnt see any issues with configuring the qtwayland module. Started building and it failed with this error:
                                  b292b078-0f03-432f-9426-eeab6bbdb889-image.png

                                  before it failed, it spit out these warnings:
                                  03e90e7f-5e7e-4ef4-ac53-fde048d6dc95-image.png

                                  I was trying to open a log file to see if it would give me any more info, but it wasnt opening. So I restarted my VM, and now I get a blinking cursor on a black screen. I feel the issue may be that my version of ubuntu is incompatible with wayland 1.15. Trying to see what I can do to save this machine.

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 23 Aug 2024, 18:56 last edited by
                                    #19

                                    As a first step, I would have adapted the script to the version of wayland installed and not replace any system components like that.

                                    What you can do is switch to one of the virtual terminal and force reinstall wayland.

                                    Another possibility is to ssh into the system.

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

                                    L 1 Reply Last reply 23 Aug 2024, 18:58
                                    0
                                    • S SGaist
                                      23 Aug 2024, 18:56

                                      As a first step, I would have adapted the script to the version of wayland installed and not replace any system components like that.

                                      What you can do is switch to one of the virtual terminal and force reinstall wayland.

                                      Another possibility is to ssh into the system.

                                      L Offline
                                      L Offline
                                      logan.massey
                                      wrote on 23 Aug 2024, 18:58 last edited by
                                      #20

                                      @SGaist
                                      Im back where I was and have fixed the script. Its currently building. Will update with progress

                                      1 Reply Last reply
                                      0

                                      • Login

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