[Interest] Compile a debug build and link with release Qt
etienne.sandre at m4x.org
Tue Jan 10 16:38:45 CET 2017
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
> > is not interacting with the Qt API, I do not need to debug through Qt
> > 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
> own code. If you're debugging, you need to build your own code in debug
> and since the linking time is proportional to the size of your own
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest