[Qt-creator] speed up Build process

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Sat Jan 10 02:41:55 CET 2009


On Sat, Jan 10, 2009 at 12:37:44AM +0100, Piotr Rak wrote:
> 2009/1/9 Zine eddine Bendjaballah <zineeddine.b at hotmail.com>:
> > I'm new with qt, I'm using qt creator since recently. It takes more time to
> > build and run a program.
> > And when I run in debug mode,the running time takes several seconds.
> >
> > I'm used to RAD environment, like Delphi, and the time to compile and run a
> > program is insignificant.
> >
> > Is it proper to Qt programs, or is there some configurations to do to
> > accelerate the build and debug process.
> 
> I assume below, that you run linux, or atleast use gnu toolchain.

Unlikely, as he mentions Delphi ;-}

Of course, trying to make comparisions is hard in this case.

> If it is not case, I really don't know how to help you. Maybe someone
> else knows.
> 
> To compile faster, you might try setting up ccache (http://ccache.samba.org/).
> Also adding -jN argument to 'make' command might help, where N usually
> is number of your processor cores +1, like -j3 for dual core. Hmm,
> maybe Qt-creator could do something like this out of box?

This has been discussed a while ago, and I still don't think it's
a good idea. People using build farms want more than that, and there
are several possible solution outside Qt Creator like using the 
MAKEARGS environment variable.

> About startup time of your code, well...
> maybe checkout http://en.wikipedia.org/wiki/Prelinking, I never tried
> that for development though. For debugging you could use striped from
> debugging symbols versions of some libraries (those you know you don't
> really need/want to debug). Please check 'man strip' for more info.

Almost all of the debugger startup time is indeed due to the loading
of debug symbols.

Regards,
Andre'



More information about the Qt-creator-old mailing list