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 Qt5.15.2 on Ubuntu 18.04 takes too long
Forum Updated to NodeBB v4.3 + New Features

Building Qt5.15.2 on Ubuntu 18.04 takes too long

Scheduled Pinned Locked Moved Solved Installation and Deployment
compileqt5.15.2
8 Posts 3 Posters 1.1k Views 2 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.
  • F Offline
    F Offline
    Fantastic Mr. Fox
    wrote on 15 Aug 2021, 16:59 last edited by Fantastic Mr. Fox
    #1

    I'm trying to build Qt5 from the source code, but it takes ages on my 32-bit Ubuntu - more then a week and it's still not completed?!

    All I can see is the ninja command w/ parameter -v .../qtwebengine/src/core/release QtWebEngineCode
    ninja: Entering directory .../release

    Is there any option, so I can see what's compiling at the moment?? Ta

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 15 Aug 2021, 17:20 last edited by
      #2

      Hi
      A week is too long. even on a very low-end pc.
      It sounds like its went into some sort of loop.

      what are your pc specs ? CPU / cores and amount of ram.

      1 Reply Last reply
      1
      • F Offline
        F Offline
        Fantastic Mr. Fox
        wrote on 15 Aug 2021, 19:51 last edited by
        #3

        It's prety old notebook Asus X51R: Intel 1.86GHz, 2 cores, 1.5GB RAM.
        Configure log
        Make output

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 15 Aug 2021, 20:14 last edited by
          #4

          Hi
          Ok that is a pretty old one :)
          I would have thought 1.5GB would be too little but maybe virtual mem is
          helping it.
          Reading over the logs a few times. I don't really see anything repeating.
          However, I think it would never have been completed anyway as even on small boards it
          "just" took 1.5 days to compile so over a week still seems unreasonable.

          Is there a reason you compile on this "not so much a workstation" pc ?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Fantastic Mr. Fox
            wrote on 16 Aug 2021, 21:09 last edited by Fantastic Mr. Fox
            #5

            Well, it's definitely memory issue - ninja file is too large (28 MB) plus all subninja files..

            Now I have different problem : I can't find files in chromium folder. Why?

            ninja: error: '../../../../../qtwebengine/src/3rdparty/chromium/v8/test/fuzzer/fuzzer.cc', needed by 'obj/v8/v8_simple_json_fuzzer/fuzzer.o', missing and no known rule to make it
            

            The folder chromium/v8/test/fuzzer is empty. There is no source file except BUILD.gn. Any idea??

            @mrjj said in Building Qt5.15.2 on Ubuntu 18.04 takes too long:

            Is there a reason you compile on this "not so much a workstation" pc ?

            I just want to avoid dependency hell, so I think that it's better when I compile Qt from source on this Abacus.

            J 1 Reply Last reply 17 Aug 2021, 01:34
            0
            • F Offline
              F Offline
              Fantastic Mr. Fox
              wrote on 17 Aug 2021, 01:13 last edited by
              #6

              Note however the build process will launch a ninja build-system nested, you can override the ninja flags with the environment variable NINJAFLAGS before configuring or append to them with NINJAJOBS after configuring. This is for instance useful if you use icecc, or your machine does not have enough memory to run the default number of ninja threads with the often very memory intensive chromium sources (2-3Gbyte per thread).

              source

              1 Reply Last reply
              0
              • F Fantastic Mr. Fox
                16 Aug 2021, 21:09

                Well, it's definitely memory issue - ninja file is too large (28 MB) plus all subninja files..

                Now I have different problem : I can't find files in chromium folder. Why?

                ninja: error: '../../../../../qtwebengine/src/3rdparty/chromium/v8/test/fuzzer/fuzzer.cc', needed by 'obj/v8/v8_simple_json_fuzzer/fuzzer.o', missing and no known rule to make it
                

                The folder chromium/v8/test/fuzzer is empty. There is no source file except BUILD.gn. Any idea??

                @mrjj said in Building Qt5.15.2 on Ubuntu 18.04 takes too long:

                Is there a reason you compile on this "not so much a workstation" pc ?

                I just want to avoid dependency hell, so I think that it's better when I compile Qt from source on this Abacus.

                J Offline
                J Offline
                JKSH
                Moderators
                wrote on 17 Aug 2021, 01:34 last edited by
                #7

                @Fantastic-Mr-Fox said in Building Qt5.15.2 on Ubuntu 18.04 takes too long:

                I just want to avoid dependency hell, so I think that it's better when I compile Qt from source on this Abacus.

                It's better to create a virtual machine on a powerful PC and install a fresh OS which has no Qt in it. It can be an old OS, but you need decent hardware to finish the job, espicially if you're compiling Qt WebEngine (Chromium).

                You can get away with a weaker PC if you skip Qt WebEngine.

                From the official Chromium docs (emphasis added): https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/build_instructions.md#System-requirements

                System requirements

                • A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly recommended.
                • At least 100GB of free disk space.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                4
                • F Offline
                  F Offline
                  Fantastic Mr. Fox
                  wrote on 22 Aug 2021, 04:32 last edited by
                  #8

                  You're right. I installed Debian 11 OS (which offers 32 bit version of Qt5.15.2) on different machine (1TB HDD etc). Thanks for the answers..

                  1 Reply Last reply
                  1

                  1/8

                  15 Aug 2021, 16:59

                  • Login

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