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

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Tue Jan 10 16:38:45 CET 2017


Hi Thiago,

I am using MinGW, but I link Qt statically. This perfectly makes sense! But
I forgot to mention it...

2017-01-10 16:31 GMT+01:00 Thiago Macieira <thiago.macieira at intel.com>:

> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170110/d4d39d06/attachment.html>


More information about the Interest mailing list