[Interest] Compile a debug build and link with release Qt
Thiago Macieira
thiago.macieira at intel.com
Tue Jan 10 19:08:17 CET 2017
Em terça-feira, 10 de janeiro de 2017, às 17:08:56 PST, Etienne Sandré-
Chardonnal escreveu:
> I might be tired but I do not see...
Don't do static linking while debugging.
> I know that if I compile manually, I can use the "-g" flag for debugging,
> and link with the release Qt library files.
>
> But, if I qmake with CONFIG+=RELEASE, qt links with the release library,
> sets -O2 and does not produce debugging info.
Right.
> This means I would need to change the mkspec files, but I still want to
> keep a true release mode
Hack: delete the *d.a files and rename the release *.a over them.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list