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

2017-01-10 Thread Thiago Macieira
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. >

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

2017-01-10 Thread Etienne Sandré-Chardonnal
I might be tired but I do not see... 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. This means I would

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

2017-01-10 Thread Thiago Macieira
On terça-feira, 10 de janeiro de 2017 16:38:45 PST Etienne Sandré-Chardonnal wrote: > Hi Thiago, > > I am using MinGW, but I link Qt statically. This perfectly makes sense! But > I forgot to mention it... And your answer lies right there. -- Thiago Macieira - thiago.macieira (AT) intel.com

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

2017-01-10 Thread Etienne Sandré-Chardonnal
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 : > Em terça-feira, 10 de janeiro de 2017, às 14:22:45 PST, Etienne Sandré- > Chardonnal escreveu: > > Hi, > > >

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

2017-01-10 Thread Thiago Macieira
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,

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

2017-01-10 Thread Jean-Michaël Celerier
On Tue, Jan 10, 2017 at 2:22 PM, Etienne Sandré-Chardonnal < etienne.san...@m4x.org> wrote: > and the executable is 600MB large If you're on linux, you could try debug fission, it makes for a much better experience : https://gcc.gnu.org/wiki/DebugFission