[Qt-interest] [Mingw-w64-public] "Memory exhausted" ld error when building Qt 4.8.0-rc1 with mingw-w64 4.7.0
K. Frank
kfrank29.c at gmail.com
Wed Oct 19 19:49:10 CEST 2011
Hi Ruben!
On Wed, Oct 19, 2011 at 11:18 AM, Ruben Van Boxem
<vanboxem.ruben at gmail.com> wrote:
> 2011/10/19 xunxun <xunxun1982 at gmail.com>
>>
>> 于 2011/10/19 22:32, K. Frank 写道:
>> > Hello Lists!
>> >
>> > I get the following error:
>> >
>> > ./tmp\obj\debug_shared\moc_qgraphicsanchorlayout.o: file not
>> > recognized: Memory exhausted
>> >
>> > in the build step that links QtGuid4.dll when trying to build Qt
>> > 4.8.0-rc1
>> > with mingw-w64 4.7.0
>> >
>> > Would anyone have some suggestions about how I might fix this?
>> > ...
> ...
> Strange, I can compile it without a hitch (if you forget about 1.5 hours of
> an unusable system sue to excessive paging because 4GB of Ram isn't enough).
>
> I think you might have too little RAM, and certainly your page size will be
> too small. This is a very big problem in ld, it just eats memory like
> there's no tomorrow :(
I have 4 GB of ram, and a 4 GB page file (pagefile.sys). How big is your
page file?
(Unless by "page size" you mean something other than the size bo
pagefile.sys.)
I suppose I could reboot and try to kill off any unnecessary processes,
and try the build again, but doing so would be enough of a nuisance that
I'd prefer not to do so if it's just a shot in the dark.
> If you don't need a debug Qt, just build the release DLLs:
> mingw32-make release
>
> It's the debug info that's eating all memory, for some unexplained reason.
Ah, that's interesting. I suppose I could just build the release.
But -- and correct me if I'm wrong -- isn't it the case that if I want to build
*my* code in debug mode (which, sadly, I sometimes want to do) , I have
to build it against debug version of Qt?
> Ruben
> ...
Thanks for your help.
K. Frank
More information about the Qt-interest-old
mailing list