2011/10/19 K. Frank <[email protected]>

> Hello xunxun!
>
> On Wed, Oct 19, 2011 at 11:43 AM, xunxun <[email protected]> wrote:
> > 于 2011/10/19 23:38, Morcego Vermelho 写道:
> > ...
> > If you refer to Qt build, you can modify
> >
> > mkspecs/win32-g++/qmake.conf  (similar it is, I forgot that)
> >
> > QMAKE_CFLAGS_RELEASE = -O2 -fno-keep-inline-dllexport
>
> Thank you.  I will give this a try.  In my case I am trying to build both
> the debug and release versions.  Is there a corresponding flag I should
> set for the debug version.
>
> (It appears that my "Memory exhausted" error is occurs during the
> debug part of the build process.)
>
> Am I right that to do this I edit qmake.conf by hand?  Would anyone
> know offhand whether I should be doing this before or after I run the
> initial configure step?
>

After the initial configure step, because that runs qmake on all of Qt.

On the page file size: that seems ok. I didn't modify the Windows defaults.
I'm still kind of dazzled by this, I never encountered it.

Another kind of functionality impeding workaround is to remove the "-g"
command in qmake.conf to *not* generate any debug info. This will remove the
ability to step in/through Qt functions though.

Another small thing is adding

-Wl,--no-keep-memory,--reduce-memory-overheads

to the linker command line (in qmake.conf). Legend goes it reduces ld's
memory usage by ~200MB. I haven't tried it yet.

If you're interested in binutils bugs about this, see:
http://sourceware.org/bugzilla/show_bug.cgi?id=12658
(hmm, seems there aren't any others... probably a hard problem to pinpoint
in a bug report)

Ruben



> > ...
> > Best Regards,
> > xunxun
>
> Thanks.  I appreciate your advice.
>
>
> K. Frank
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Ciosco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to