[Interest] Compile a debug build and link with release Qt

Thiago Macieira thiago.macieira at intel.com
Tue Jan 10 16:31:51 CET 2017


Em terça-feira, 10 de janeiro de 2017, às 14:22:45 PST, Etienne Sandré-
Chardonnal escreveu:
> Hi,
> 
> What is the most simple way with QtCreator/qmake to set up a target for
> debugging a project while linking with a release Qt ?
> 
> I have a project which takes forever to link in debug mode, and the
> executable is 600MB large. Since 95% of the time I am debugging code which
> is not interacting with the Qt API, I do not need to debug through Qt code.
> 
> The RELEASE qmake flag basically switches everything.

I'm guessing you're talking about Windows, which has different and 
incompatible builds of debug and release libraries. Actually, that applies 
only to Visual Studio -- the MinGW DLLs are compatible with each other.

But your question does not make sense. The linking time applies only to your 
own code. If you're debugging, you need to build your own code in debug mode 
and since the linking time is proportional to the size of your own codebase, 
it'll be as slow as it needs to be.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list