Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Why Qt taking long time to building the project?

Why Qt taking long time to building the project?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
11 Posts 3 Posters 2.1k 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
    Wasee
    wrote on 6 Dec 2021, 07:39 last edited by
    #1

    Hi everyone;
    I am building the Qt widget application but its taking a long time to build why?
    thanks

    J 1 Reply Last reply 6 Dec 2021, 07:44
    0
    • W Wasee
      6 Dec 2021, 07:39

      Hi everyone;
      I am building the Qt widget application but its taking a long time to build why?
      thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 6 Dec 2021, 07:44 last edited by
      #2

      @Wasee said in Why Qt taking long time to building the project?:

      its taking a long time to build why?

      You should provide more information:

      • How big is the application (lines of code)?
      • What platform, compiler and Qt version?

      Also, did you enable parallel build? Either use ninja instead of make or add "-j NUMBER_OF_CORES" to your build settings to tell make to do as many parallel builds as your CPU has cores (replace NUMBER_OF_CORES with the number of cores in your CPU).

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

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Wasee
        wrote on 6 Dec 2021, 09:19 last edited by
        #3

        @jsulm Hi;

        *I have 762 lines in code

        • Platform Arm A-9, Compiler GCC, and Qt5.

        thanks

        J J 2 Replies Last reply 6 Dec 2021, 09:22
        0
        • W Wasee
          6 Dec 2021, 09:19

          @jsulm Hi;

          *I have 762 lines in code

          • Platform Arm A-9, Compiler GCC, and Qt5.

          thanks

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Dec 2021, 09:22 last edited by
          #4

          @Wasee said in Why Qt taking long time to building the project?:

          Platform Arm A-9, Compiler GCC, and Qt5.

          Well, seems to be rather slow hardware.
          Did you try what I suggested?

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

          1 Reply Last reply
          0
          • W Wasee
            6 Dec 2021, 09:19

            @jsulm Hi;

            *I have 762 lines in code

            • Platform Arm A-9, Compiler GCC, and Qt5.

            thanks

            J Offline
            J Offline
            JonB
            wrote on 6 Dec 2021, 09:26 last edited by
            #5

            @Wasee
            In addition to @jsulm, how long is "but its taking a long time to build", and how much free RAM do you have?

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Wasee
              wrote on 6 Dec 2021, 09:34 last edited by
              #6

              @jsulm Hi;
              I am unable to find the setting you suggested.
              thanks

              J 1 Reply Last reply 6 Dec 2021, 09:39
              0
              • W Wasee
                6 Dec 2021, 09:34

                @jsulm Hi;
                I am unable to find the setting you suggested.
                thanks

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 6 Dec 2021, 09:39 last edited by
                #7

                @Wasee In QtCreator (I assume you build in QtCreator): on the right side "Projects/Build&Run/Build/Build Steps". Do you see "make -j..." in Make step there?

                You still don't provide much information:

                • How many cores does the CPU have?
                • How much RAM does the machine have?
                • Qt5 is quite fuzzy as there are many Qt5 versions
                • Also GCC is fuzzy, as there are many different versions

                Don't expect same performance from an ARM device (except it is Apple silicon :-)) as from your PC/Laptop.

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

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  Wasee
                  wrote on 6 Dec 2021, 09:59 last edited by
                  #8

                  @jsulm @JonB Hi;
                  Architecture: ARMv7
                  Byte Order: Little Endian
                  CPU(s): 2
                  On-line CPU(s) list: 0,1
                  Thread(s) per core: 1
                  Core(s) per socket: 2
                  Socket(s): 1
                  total used free shared buff/cache available
                  Mem: 1.0G 480M 524M 10M 40M 224M
                  Swap: 0B 0B 0B
                  Qt Version:5.2.1
                  GCC version:arm-linux-gnueabihf-gcc

                  thanks

                  J 1 Reply Last reply 6 Dec 2021, 10:18
                  0
                  • W Wasee
                    6 Dec 2021, 09:59

                    @jsulm @JonB Hi;
                    Architecture: ARMv7
                    Byte Order: Little Endian
                    CPU(s): 2
                    On-line CPU(s) list: 0,1
                    Thread(s) per core: 1
                    Core(s) per socket: 2
                    Socket(s): 1
                    total used free shared buff/cache available
                    Mem: 1.0G 480M 524M 10M 40M 224M
                    Swap: 0B 0B 0B
                    Qt Version:5.2.1
                    GCC version:arm-linux-gnueabihf-gcc

                    thanks

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 6 Dec 2021, 10:18 last edited by
                    #9

                    @Wasee Make sure you use both CPU cores when compiling.
                    And again: this is rather slow hardware, don't expect fast builds (you actually still not tell us how long it takes).

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

                    1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      Wasee
                      wrote on 7 Dec 2021, 03:23 last edited by
                      #10

                      Hi everyone;
                      I build the project successfully. But I am facing the problem with running the application. When I login the application then it does not open and gives an error.
                      ASSERT failure in QList<T>:: at: "index out of range", file /usr/include/qt5/QtCore/qlitst.h/ line 472
                      The program has been unexpectedly finished.

                      thanks

                      J 1 Reply Last reply 7 Dec 2021, 06:26
                      0
                      • W Wasee
                        7 Dec 2021, 03:23

                        Hi everyone;
                        I build the project successfully. But I am facing the problem with running the application. When I login the application then it does not open and gives an error.
                        ASSERT failure in QList<T>:: at: "index out of range", file /usr/include/qt5/QtCore/qlitst.h/ line 472
                        The program has been unexpectedly finished.

                        thanks

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 7 Dec 2021, 06:26 last edited by
                        #11

                        @Wasee Answered here: https://forum.qt.io/topic/132513/run-bash-script-from-qt/10
                        Please learn to ask proper question providing needed information/code...

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

                        1 Reply Last reply
                        1

                        1/11

                        6 Dec 2021, 07:39

                        • Login

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