Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why Qt taking long time to building the project?
I am building the Qt widget application but its taking a long time to build why?
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).
*I have 762 lines in code
- Platform Arm A-9, Compiler GCC, and Qt5.
Platform Arm A-9, Compiler GCC, and Qt5.
Well, seems to be rather slow hardware.
Did you try what I suggested?
JonB last edited by
I am unable to find the setting you suggested.
@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.
@jsulm @JonB Hi;
Byte Order: Little Endian
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
total used free shared buff/cache available
Mem: 1.0G 480M 524M 10M 40M 224M
Swap: 0B 0B 0B
@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).
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.
@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...