Thank you for your help.
If I use the TDM build of mongw-w64, will my QT lib be 32bit version or 64bit version? I need a 32bit version QT lib.

2011/12/3 Alex Biddulph <bidski@iinet.net.au>
I seem to remember having a similar bug to this when I was trying to
build wxWidgets. If you search for this bug on google in relation to
wxWidgets you should find it.

I seem to remember there being talk about Windows having a 2 GB memory
limit for any process and ld.exe would easily surpass this limit trying
to link the wxWidgets library. The solution that I found was to use the
TDM build of mongw-w64.

Hope that is of some help.

Bidski

On 03/12/11 10:04, K. Frank wrote:
> Hello cat fa!
>
> I have seen a similar error building Qt 4.8.0-rc1 with mingw-w64 4.7.0
> (a 64-bit g++), but I did get it to work.  Some details below.
>
> (Note that mingw-w64 is a separate project from mingw and it has its
> own mailing list.)
>
> On Fri, Dec 2, 2011 at 3:35 AM, cat fa<boost.subscribing@gmail.com>  wrote:
>> I decided to build qt with mingw on my own.
>> But I encounterd an error while building libQtGuid4.a
>> information is as follow:
>>
>> g++ -mthreads -shared
>> ...
>> c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: out of
>> memory allocating 125660256 bytes
>> collect2: ld returned 1 exit status
>> ...
> I have seen a similar out-of-memory error building qt
>
>> I have 4G ram and closed as many applications as possible. Is this a bug?
>>
>> My mingw included gcc 4.6.1. I’m using windows7 64bit
> I was also running on a 4 GB 64-bit windows 7 machine.
>
> As I noted above, I had the problem building with the 64-bit g++ from
> the mingw-w64 project (a project separate from mingw).
>
> It turned out for me that 4 GB was just on the edge of being enough to
> complete the build.  After starting with a clean reboot I went through task
> manager and killed off anything I thought might not be essential.  By doing
> this I was able to get about 3 GB shown as free by task manager.  This
> was enough for me to complete the build.
>
> (It looked like 2 GB free wasn't enough but that 3 GB was.)
>
> You've been given some suggestions as to how you might reduce the
> memory required by ld (the linker).  I was also given some similar
> suggestions.  In my case it turned out that I didn't need to use those
> suggestions to modify the build process -- after freeing up some memory
> I had enough to run the "out-of-the-box" qt build.
>
> (Of course your case -- different compiler / linker, different version of
> qt -- may be different, and you may have to use some of the options
> suggested for reducing memory usage.)
>
> (Just to note, I have been able to compile various versions of qt with
> various versions of the 32-bit mingw-project g++ on my 4 GB windows
> 7 machine.)
>
> More details can be found in the original thread in either the mingw-w64
> archives:
>
>     http://sourceforge.net/mailarchive/message.php?msg_id=28251694
>
> or the qt-interest archives:
>
>     http://lists.qt.nokia.com/pipermail/qt-interest/2011-October/036459.html
>
>
> Good luck.
>
>
> K. Frank
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe