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?
Forum Updated to NodeBB v4.3 + New Features

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.
  • WaseeW Offline
    WaseeW Offline
    Wasee
    wrote on last edited by
    #1

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

    jsulmJ 1 Reply Last reply
    0
    • WaseeW Wasee

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • WaseeW Offline
        WaseeW Offline
        Wasee
        wrote on last edited by
        #3

        @jsulm Hi;

        *I have 762 lines in code

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

        thanks

        jsulmJ JonBJ 2 Replies Last reply
        0
        • WaseeW Wasee

          @jsulm Hi;

          *I have 762 lines in code

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

          thanks

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          • WaseeW Wasee

            @jsulm Hi;

            *I have 762 lines in code

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

            thanks

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on 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
            • WaseeW Offline
              WaseeW Offline
              Wasee
              wrote on last edited by
              #6

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

              jsulmJ 1 Reply Last reply
              0
              • WaseeW Wasee

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

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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
                • WaseeW Offline
                  WaseeW Offline
                  Wasee
                  wrote on 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

                  jsulmJ 1 Reply Last reply
                  0
                  • WaseeW Wasee

                    @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

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 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
                    • WaseeW Offline
                      WaseeW Offline
                      Wasee
                      wrote on 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

                      jsulmJ 1 Reply Last reply
                      0
                      • WaseeW Wasee

                        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

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 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

                        • Login

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