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. Building/installing Qt-6.5.2 from source on ubuntu-22.04
QtWS25 Last Chance

Building/installing Qt-6.5.2 from source on ubuntu-22.04

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
35 Posts 7 Posters 6.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.
  • P Offline
    P Offline
    prathyuch.1999
    wrote on 26 Sept 2023, 10:29 last edited by
    #1

    Hi,

    I am trying to build/install Qt-6.5.2 on ubuntu-22.04.
    After configuring, output showing that there is no support of openssl, and warning is

    WARNING: QtWebEngine won't be built. Could not find all necessary libraries for qpa-xcb support. X11:YES LIBDRM:YES XCOMPOSITE:YES XCURSOR:NO XRANDR:YES XI:YES XPROTO:YES XSHMFENCE:NO XTST:YES

    I ignored this moving to next step, then cmake is throwing error :
    qt-everywhere-src-6.5.2/qtwebsockets/tests/auto/websockets/qwebsocketserver/tst_qwebsocketserver.cpp:9:10: fatal error: QtNetwork/qsslpresharedkeyauthenticator.h: No such file or directory

    I think this error may be because of not linking openssl during configure step, but we are having openssl libraries(3.0.2) in our system
    I am doing like below :

    1. ./configure -make examples -make tests FEATURE_clang=ON FEATURE_clangcpp=ON -openssl-linked -- -D OPENSSL_ROOT_DIR=/usr/lib/x86_64-linux-gnu/ c++20 gold TestInfix TestNamespace

    2. cmake --build . --parallel

    I am attaching all screenshots or error and warning as well as redirected output of both steps.

    Please suggest us how to overcome this error and add openssl as well as QtWebEngine support.!

    Screenshot from 2023-09-26 15-34-54.png
    Screenshot from 2023-09-26 15-35-45.png
    Screenshot from 2023-09-26 15-40-59.png
    Screenshot from 2023-09-26 15-37-02.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Sept 2023, 17:17 last edited by
      #2

      Hi and welcome to devnet,

      Check that you have installed all required dev packages for the dependencies. This include OpenSSL. You should also check which version you have installed.

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

      P 1 Reply Last reply 27 Sept 2023, 06:58
      1
      • S SGaist
        26 Sept 2023, 17:17

        Hi and welcome to devnet,

        Check that you have installed all required dev packages for the dependencies. This include OpenSSL. You should also check which version you have installed.

        P Offline
        P Offline
        prathyuch.1999
        wrote on 27 Sept 2023, 06:58 last edited by
        #3

        @SGaist
        I have installed all the required packages by following these links :

        https://doc.qt.io/qt-6/linux-building.html
        https://doc.qt.io/qt-6/linux.html
        https://doc.qt.io/qt-6/linux-requirements.html

        Even in my Ubuntu-22.04 PC OpenSSL version 3.0.2 is installed.

        If any packages are missing then please suggest me.
        Screenshot from 2023-09-27 11-55-04.png

        S 1 Reply Last reply 27 Sept 2023, 19:32
        0
        • P prathyuch.1999
          27 Sept 2023, 06:58

          @SGaist
          I have installed all the required packages by following these links :

          https://doc.qt.io/qt-6/linux-building.html
          https://doc.qt.io/qt-6/linux.html
          https://doc.qt.io/qt-6/linux-requirements.html

          Even in my Ubuntu-22.04 PC OpenSSL version 3.0.2 is installed.

          If any packages are missing then please suggest me.
          Screenshot from 2023-09-27 11-55-04.png

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Sept 2023, 19:32 last edited by
          #4

          Then check the configure test logs to see exactly what failed during the detection.

          One thing: did you cleanup before calling configure again after installing the packages ?

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

          P 1 Reply Last reply 28 Sept 2023, 07:34
          0
          • S SGaist
            27 Sept 2023, 19:32

            Then check the configure test logs to see exactly what failed during the detection.

            One thing: did you cleanup before calling configure again after installing the packages ?

            P Offline
            P Offline
            prathyuch.1999
            wrote on 28 Sept 2023, 07:34 last edited by
            #5

            @SGaist

            Hi,
            Thanks for your advice, i re-configured it after removing, now openssl is linking with 3.0.2 version but still showing warning that QtWebEngine won't be build....

            Screenshot from 2023-09-28 10-59-53.png

            I ignored and moved to next step, now i am getting error related to gn.

            Screenshot from 2023-09-28 13-00-37.png
            Screenshot from 2023-09-28 13-01-31.png

            How to remove this error ?

            J 1 Reply Last reply 28 Sept 2023, 11:13
            0
            • P prathyuch.1999
              28 Sept 2023, 07:34

              @SGaist

              Hi,
              Thanks for your advice, i re-configured it after removing, now openssl is linking with 3.0.2 version but still showing warning that QtWebEngine won't be build....

              Screenshot from 2023-09-28 10-59-53.png

              I ignored and moved to next step, now i am getting error related to gn.

              Screenshot from 2023-09-28 13-00-37.png
              Screenshot from 2023-09-28 13-01-31.png

              How to remove this error ?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 28 Sept 2023, 11:13 last edited by
              #6

              @prathyuch-1999 If you don't need QtWebEngine then you should disable it.
              And as @SGaist suggested: call configure in a clean build folder!

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              P 1 Reply Last reply 29 Sept 2023, 03:49
              1
              • J jsulm
                28 Sept 2023, 11:13

                @prathyuch-1999 If you don't need QtWebEngine then you should disable it.
                And as @SGaist suggested: call configure in a clean build folder!

                P Offline
                P Offline
                prathyuch.1999
                wrote on 29 Sept 2023, 03:49 last edited by
                #7

                @jsulm
                Hi...
                I want QtWebEngine, earlier error was related to SSL, that resolved now.
                Is this GN error related to QtWebEngine ?
                First how to resolved to this GN error, and why QtWebEngine is not building ?

                J 1 Reply Last reply 29 Sept 2023, 05:39
                0
                • P prathyuch.1999
                  29 Sept 2023, 03:49

                  @jsulm
                  Hi...
                  I want QtWebEngine, earlier error was related to SSL, that resolved now.
                  Is this GN error related to QtWebEngine ?
                  First how to resolved to this GN error, and why QtWebEngine is not building ?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 29 Sept 2023, 05:39 last edited by
                  #8

                  @prathyuch-1999 As already asked/suggested twice: did you run configure from a clean build folder?
                  The warning you posted clearly states that QtWebengine will not be built because not all needed libraries were found. @SGaist told you to check configure log to see which libraries are missing: did you do that? You keep asking for what to do ignoring what was already suggested.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  P 1 Reply Last reply 5 Oct 2023, 09:21
                  0
                  • J jsulm
                    29 Sept 2023, 05:39

                    @prathyuch-1999 As already asked/suggested twice: did you run configure from a clean build folder?
                    The warning you posted clearly states that QtWebengine will not be built because not all needed libraries were found. @SGaist told you to check configure log to see which libraries are missing: did you do that? You keep asking for what to do ignoring what was already suggested.

                    P Offline
                    P Offline
                    prathyuch.1999
                    wrote on 5 Oct 2023, 09:21 last edited by
                    #9

                    @jsulm
                    i already run configure from a clean build folder as suggested by @SGaist
                    Earlier one issue was with SSL and another was QtWebEngine, after doing this now SSL issue resolved, but still warning of QtWebEngine.

                    The warning you posted clearly states that QtWebengine will not be built because not all needed libraries were found.
                    Dear i know this.
                    If i am wrong then any one tell me the name and path of configure test logs file @SGaist
                    Is this GN error related to QtWebEngine ?
                    First how to resolved to this GN error, and why QtWebEngine is not building ?

                    S 1 Reply Last reply 5 Oct 2023, 19:21
                    0
                    • P prathyuch.1999
                      5 Oct 2023, 09:21

                      @jsulm
                      i already run configure from a clean build folder as suggested by @SGaist
                      Earlier one issue was with SSL and another was QtWebEngine, after doing this now SSL issue resolved, but still warning of QtWebEngine.

                      The warning you posted clearly states that QtWebengine will not be built because not all needed libraries were found.
                      Dear i know this.
                      If i am wrong then any one tell me the name and path of configure test logs file @SGaist
                      Is this GN error related to QtWebEngine ?
                      First how to resolved to this GN error, and why QtWebEngine is not building ?

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 5 Oct 2023, 19:21 last edited by
                      #10

                      Which warning do you have now when starting from a clean state ?

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

                      P 1 Reply Last reply 6 Oct 2023, 04:55
                      0
                      • S SGaist
                        5 Oct 2023, 19:21

                        Which warning do you have now when starting from a clean state ?

                        P Offline
                        P Offline
                        prathyuch.1999
                        wrote on 6 Oct 2023, 04:55 last edited by
                        #11

                        @SGaist
                        I am having below warning now....

                        WARNING: No backend for low level audio found.
                        WARNING: QtWebEngine won't be built. Could not find all necessary libraries for qpa-xcb support. X11:YES LIBDRM:YES XCOMPOSITE:YES XCURSOR:YES XRANDR:YES XI:YES XPROTO:YES XSHMFENCE:NO XTST:YES

                        Screenshot from 2023-10-06 10-22-49.png

                        Christian EhrlicherC 1 Reply Last reply 6 Oct 2023, 05:28
                        0
                        • P prathyuch.1999
                          6 Oct 2023, 04:55

                          @SGaist
                          I am having below warning now....

                          WARNING: No backend for low level audio found.
                          WARNING: QtWebEngine won't be built. Could not find all necessary libraries for qpa-xcb support. X11:YES LIBDRM:YES XCOMPOSITE:YES XCURSOR:YES XRANDR:YES XI:YES XPROTO:YES XSHMFENCE:NO XTST:YES

                          Screenshot from 2023-10-06 10-22-49.png

                          Christian EhrlicherC Offline
                          Christian EhrlicherC Offline
                          Christian Ehrlicher
                          Lifetime Qt Champion
                          wrote on 6 Oct 2023, 05:28 last edited by
                          #12

                          @prathyuch-1999 said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:

                          XSHMFENCE:NO

                          Isn't this obvoius enough? Install the appropriate develpoment package if you need QtWebEngine

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

                          P 1 Reply Last reply 6 Oct 2023, 05:49
                          1
                          • Christian EhrlicherC Christian Ehrlicher
                            6 Oct 2023, 05:28

                            @prathyuch-1999 said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:

                            XSHMFENCE:NO

                            Isn't this obvoius enough? Install the appropriate develpoment package if you need QtWebEngine

                            P Offline
                            P Offline
                            prathyuch.1999
                            wrote on 6 Oct 2023, 05:49 last edited by
                            #13

                            @Christian-Ehrlicher
                            Thanks @Christian-Ehrlicher, i installed that package, now QtWebEngine warning is not there.

                            Christian EhrlicherC 1 Reply Last reply 6 Oct 2023, 05:52
                            0
                            • P prathyuch.1999
                              6 Oct 2023, 05:49

                              @Christian-Ehrlicher
                              Thanks @Christian-Ehrlicher, i installed that package, now QtWebEngine warning is not there.

                              Christian EhrlicherC Offline
                              Christian EhrlicherC Offline
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on 6 Oct 2023, 05:52 last edited by
                              #14

                              @prathyuch-1999 said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:

                              i installed that package, now QtWebEngine warning is not there.

                              What does 'is not there' means? Did configure warn about QtWebEngine missing dependencies? If not then it will also be built.

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

                              P 1 Reply Last reply 6 Oct 2023, 07:37
                              0
                              • Christian EhrlicherC Christian Ehrlicher
                                6 Oct 2023, 05:52

                                @prathyuch-1999 said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:

                                i installed that package, now QtWebEngine warning is not there.

                                What does 'is not there' means? Did configure warn about QtWebEngine missing dependencies? If not then it will also be built.

                                P Offline
                                P Offline
                                prathyuch.1999
                                wrote on 6 Oct 2023, 07:37 last edited by
                                #15

                                @Christian-Ehrlicher
                                Yes, now there is now warning of QtWebEngine at configure step.
                                Screenshot from 2023-10-06 11-42-58.png
                                But after successfully configured now i am getting following error related to gn, while doing next step (cmake --build . --parallel) screenshot of error is below :
                                Screenshot from 2023-10-06 12-56-16.png
                                Error Screenshot-2
                                Screenshot from 2023-10-06 12-57-41.png
                                Error Screenshot-3
                                Screenshot from 2023-10-06 12-58-20.png
                                Please suggest me what is the problem ?
                                How to remove this gn error ?

                                Christian EhrlicherC 1 Reply Last reply 6 Oct 2023, 07:53
                                0
                                • P prathyuch.1999
                                  6 Oct 2023, 07:37

                                  @Christian-Ehrlicher
                                  Yes, now there is now warning of QtWebEngine at configure step.
                                  Screenshot from 2023-10-06 11-42-58.png
                                  But after successfully configured now i am getting following error related to gn, while doing next step (cmake --build . --parallel) screenshot of error is below :
                                  Screenshot from 2023-10-06 12-56-16.png
                                  Error Screenshot-2
                                  Screenshot from 2023-10-06 12-57-41.png
                                  Error Screenshot-3
                                  Screenshot from 2023-10-06 12-58-20.png
                                  Please suggest me what is the problem ?
                                  How to remove this gn error ?

                                  Christian EhrlicherC Offline
                                  Christian EhrlicherC Offline
                                  Christian Ehrlicher
                                  Lifetime Qt Champion
                                  wrote on 6 Oct 2023, 07:53 last edited by
                                  #16

                                  As you can see it's failing when looking for cups-config.

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

                                  P 1 Reply Last reply 9 Oct 2023, 11:13
                                  0
                                  • Christian EhrlicherC Christian Ehrlicher
                                    6 Oct 2023, 07:53

                                    As you can see it's failing when looking for cups-config.

                                    P Offline
                                    P Offline
                                    prathyuch.1999
                                    wrote on 9 Oct 2023, 11:13 last edited by
                                    #17

                                    @Christian-Ehrlicher
                                    Thanks for your advice, i did same and now there is no warning of QtWebEngine at configure step.
                                    But it was getting failed in next step with below error :
                                    "c++: fatal error: Killed signal terminated program cc1plus"
                                    I checked with dmesg, and found some out of memory things.
                                    Even though i have 16GB of RAM, then I increased my swap size from 2 GB to 8GB.
                                    Again did cmake....
                                    But now, after some time terminal is getting crashed without any warning or error.
                                    Screenshot from 2023-10-09 16-24-59.png
                                    I checked with top command and found that some time cpu utilization is getting 85% to 100% by cc1plus and kswapd0.

                                    How to overcome this error ?

                                    dmesg output:
                                    Screenshot from 2023-10-09 16-41-45.png

                                    JonBJ 1 Reply Last reply 9 Oct 2023, 11:21
                                    0
                                    • P prathyuch.1999
                                      9 Oct 2023, 11:13

                                      @Christian-Ehrlicher
                                      Thanks for your advice, i did same and now there is no warning of QtWebEngine at configure step.
                                      But it was getting failed in next step with below error :
                                      "c++: fatal error: Killed signal terminated program cc1plus"
                                      I checked with dmesg, and found some out of memory things.
                                      Even though i have 16GB of RAM, then I increased my swap size from 2 GB to 8GB.
                                      Again did cmake....
                                      But now, after some time terminal is getting crashed without any warning or error.
                                      Screenshot from 2023-10-09 16-24-59.png
                                      I checked with top command and found that some time cpu utilization is getting 85% to 100% by cc1plus and kswapd0.

                                      How to overcome this error ?

                                      dmesg output:
                                      Screenshot from 2023-10-09 16-41-45.png

                                      JonBJ Offline
                                      JonBJ Offline
                                      JonB
                                      wrote on 9 Oct 2023, 11:21 last edited by
                                      #18

                                      @prathyuch-1999
                                      I think you have to reduce the number of parallel builds/processes going on. There was a recent (last month?) thread to this effect, you might try to find it while awaiting a definitive answer.

                                      P 1 Reply Last reply 9 Oct 2023, 12:08
                                      0
                                      • JonBJ JonB
                                        9 Oct 2023, 11:21

                                        @prathyuch-1999
                                        I think you have to reduce the number of parallel builds/processes going on. There was a recent (last month?) thread to this effect, you might try to find it while awaiting a definitive answer.

                                        P Offline
                                        P Offline
                                        prathyuch.1999
                                        wrote on 9 Oct 2023, 12:08 last edited by
                                        #19

                                        @JonB said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:

                                        There was a recent (last month?) thread to this effect,

                                        Please share the link of above thread.

                                        JonBJ J 2 Replies Last reply 9 Oct 2023, 12:15
                                        0
                                        • P prathyuch.1999
                                          9 Oct 2023, 12:08

                                          @JonB said in Building/installing Qt-6.5.2 from source on ubuntu-22.04:

                                          There was a recent (last month?) thread to this effect,

                                          Please share the link of above thread.

                                          JonBJ Offline
                                          JonBJ Offline
                                          JonB
                                          wrote on 9 Oct 2023, 12:15 last edited by
                                          #20

                                          @prathyuch-1999 If I could I would. Perhaps you'd like to search instead of me.

                                          1 Reply Last reply
                                          0

                                          1/35

                                          26 Sept 2023, 10:29

                                          • Login

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