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

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.
  • C 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.

    C 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.

      C Online
      C Online
      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
      • C 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 ?

        C 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 ?

          C Online
          C Online
          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
          • C 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

            J 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

              J Online
              J Online
              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
              • J 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.

                J 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.

                  J Online
                  J Online
                  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
                  • 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.

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 9 Oct 2023, 18:17 last edited by
                    #21

                    @prathyuch-1999 Simply add -j NUMBER_OF_BUILD_PROCESSES to your cmake --build call...

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

                    P 1 Reply Last reply 10 Oct 2023, 05:32
                    0
                    • J jsulm
                      9 Oct 2023, 18:17

                      @prathyuch-1999 Simply add -j NUMBER_OF_BUILD_PROCESSES to your cmake --build call...

                      P Offline
                      P Offline
                      prathyuch.1999
                      wrote on 10 Oct 2023, 05:32 last edited by
                      #22

                      @jsulm
                      I already did this also, i have 12 core processor so i added -j12 in cmake, but no solution. Same problem exists, terminal getting crashed.

                      S 1 Reply Last reply 10 Oct 2023, 06:03
                      0
                      • P prathyuch.1999
                        10 Oct 2023, 05:32

                        @jsulm
                        I already did this also, i have 12 core processor so i added -j12 in cmake, but no solution. Same problem exists, terminal getting crashed.

                        S Offline
                        S Offline
                        sierdzio
                        Moderators
                        wrote on 10 Oct 2023, 06:03 last edited by
                        #23

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

                        @jsulm
                        I already did this also, i have 12 core processor so i added -j12 in cmake, but no solution. Same problem exists, terminal getting crashed.

                        That is not reducing the number of threads ;-) Use -j1 or -j2, this will reduce RAM usage considerably.

                        (Z(:^

                        P 1 Reply Last reply 10 Oct 2023, 13:00
                        1
                        • S sierdzio
                          10 Oct 2023, 06:03

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

                          @jsulm
                          I already did this also, i have 12 core processor so i added -j12 in cmake, but no solution. Same problem exists, terminal getting crashed.

                          That is not reducing the number of threads ;-) Use -j1 or -j2, this will reduce RAM usage considerably.

                          P Offline
                          P Offline
                          prathyuch.1999
                          wrote on 10 Oct 2023, 13:00 last edited by
                          #24

                          @sierdzio
                          It didn't worked, same problem.... system is getting stucked.

                          J 1 Reply Last reply 10 Oct 2023, 14:18
                          0
                          • P prathyuch.1999
                            10 Oct 2023, 13:00

                            @sierdzio
                            It didn't worked, same problem.... system is getting stucked.

                            J Offline
                            J Offline
                            JoeCFD
                            wrote on 10 Oct 2023, 14:18 last edited by JoeCFD 10 Oct 2023, 14:20
                            #25

                            @prathyuch-1999 are you building Qt under root? If yes, do not do it. You should build it under your user name and install it somewhere under root.

                            P 1 Reply Last reply 11 Oct 2023, 06:21
                            0
                            • J JoeCFD
                              10 Oct 2023, 14:18

                              @prathyuch-1999 are you building Qt under root? If yes, do not do it. You should build it under your user name and install it somewhere under root.

                              P Offline
                              P Offline
                              prathyuch.1999
                              wrote on 11 Oct 2023, 06:21 last edited by
                              #26

                              @JoeCFD
                              Thanks for your advice, i tried to build as a user this time system is not stucked but doing cmake, build is getting failed at same position.
                              Screenshot from 2023-10-11 11-43-19.png
                              2nd screenshot
                              Screenshot from 2023-10-11 11-45-53.png
                              dmesg output
                              Screenshot from 2023-10-11 11-45-16.png

                              S 1 Reply Last reply 11 Oct 2023, 06:35
                              0
                              • P prathyuch.1999
                                11 Oct 2023, 06:21

                                @JoeCFD
                                Thanks for your advice, i tried to build as a user this time system is not stucked but doing cmake, build is getting failed at same position.
                                Screenshot from 2023-10-11 11-43-19.png
                                2nd screenshot
                                Screenshot from 2023-10-11 11-45-53.png
                                dmesg output
                                Screenshot from 2023-10-11 11-45-16.png

                                S Offline
                                S Offline
                                sierdzio
                                Moderators
                                wrote on 11 Oct 2023, 06:35 last edited by
                                #27

                                Looks like you need more RAM.

                                (Z(:^

                                P 1 Reply Last reply 11 Oct 2023, 06:48
                                0
                                • S sierdzio
                                  11 Oct 2023, 06:35

                                  Looks like you need more RAM.

                                  P Offline
                                  P Offline
                                  prathyuch.1999
                                  wrote on 11 Oct 2023, 06:48 last edited by
                                  #28

                                  @sierdzio
                                  Hi,
                                  I have RAM-16GB, 12 core processor and created swap of size 8GB ?
                                  16GB RAM is not sufficient ? or what could be the problem ?

                                  S 1 Reply Last reply 11 Oct 2023, 07:28
                                  0
                                  • P prathyuch.1999
                                    11 Oct 2023, 06:48

                                    @sierdzio
                                    Hi,
                                    I have RAM-16GB, 12 core processor and created swap of size 8GB ?
                                    16GB RAM is not sufficient ? or what could be the problem ?

                                    S Offline
                                    S Offline
                                    sierdzio
                                    Moderators
                                    wrote on 11 Oct 2023, 07:28 last edited by
                                    #29

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

                                    @sierdzio
                                    Hi,
                                    I have RAM-16GB, 12 core processor and created swap of size 8GB ?
                                    16GB RAM is not sufficient ? or what could be the problem ?

                                    Well the compiler clearly tells you that it does not have enough memory. So perhaps yes, 16GB may be too small. I don't know for sure, I never compile the web engine module when I compile Qt.

                                    (Z(:^

                                    P 1 Reply Last reply 12 Oct 2023, 06:18
                                    0
                                    • S sierdzio
                                      11 Oct 2023, 07:28

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

                                      @sierdzio
                                      Hi,
                                      I have RAM-16GB, 12 core processor and created swap of size 8GB ?
                                      16GB RAM is not sufficient ? or what could be the problem ?

                                      Well the compiler clearly tells you that it does not have enough memory. So perhaps yes, 16GB may be too small. I don't know for sure, I never compile the web engine module when I compile Qt.

                                      P Offline
                                      P Offline
                                      prathyuch.1999
                                      wrote on 12 Oct 2023, 06:18 last edited by
                                      #30

                                      @sierdzio
                                      I increased my swap size again and it worked for me.
                                      Thanks to all of you for your advice, finally i have successfully build and install Qt-6.5.2 in my Ubuntu PC.
                                      I have successfully build and install QtCreator-11.0.3 also.
                                      But now QtCreator-11.0.3 is not working properly, whenever i will click on gui components in left panel, QtCreator is getting crashed with message in terminal "Segmentation fault (core dumped)".
                                      I am not able to drag and drop or put any gui widget in form(.ui file) in qtcreator, it's getting crashed immediately just after click on that.
                                      What could be the error ? How to resolve this issue.

                                      S 1 Reply Last reply 12 Oct 2023, 06:25
                                      0
                                      • P prathyuch.1999
                                        12 Oct 2023, 06:18

                                        @sierdzio
                                        I increased my swap size again and it worked for me.
                                        Thanks to all of you for your advice, finally i have successfully build and install Qt-6.5.2 in my Ubuntu PC.
                                        I have successfully build and install QtCreator-11.0.3 also.
                                        But now QtCreator-11.0.3 is not working properly, whenever i will click on gui components in left panel, QtCreator is getting crashed with message in terminal "Segmentation fault (core dumped)".
                                        I am not able to drag and drop or put any gui widget in form(.ui file) in qtcreator, it's getting crashed immediately just after click on that.
                                        What could be the error ? How to resolve this issue.

                                        S Offline
                                        S Offline
                                        sierdzio
                                        Moderators
                                        wrote on 12 Oct 2023, 06:25 last edited by
                                        #31

                                        @prathyuch-1999 Just use a prebuilt Qt Creator, it's way easier.

                                        (Z(:^

                                        P 1 Reply Last reply 12 Oct 2023, 07:07
                                        1
                                        • S sierdzio
                                          12 Oct 2023, 06:25

                                          @prathyuch-1999 Just use a prebuilt Qt Creator, it's way easier.

                                          P Offline
                                          P Offline
                                          prathyuch.1999
                                          wrote on 12 Oct 2023, 07:07 last edited by
                                          #32

                                          @sierdzio
                                          pre-built QtCreator-11.0.3 open source, download link i am not getting

                                          S 1 Reply Last reply 12 Oct 2023, 07:21
                                          0

                                          22/35

                                          10 Oct 2023, 05:32

                                          • Login

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