PDA

View Full Version : [SOLVED]building Qt using GCC 4.5.2 Mingw



simpler_efil
2nd May 2011, 13:59
Hi,

I'm trying to build QT from source code using MinGW.
The compilation and everything works fine except an error while linking :



c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: out of mem
ory allocating 133809816 bytes
collect2: ld returned 1 exit status
mingw32-make.exe[2]: *** [../../lib/QtGuid4.dll] Error 1
mingw32-make.exe[2]: Leaving directory `g:/Qt/qt-everywhere-opensource-src-4.7.2
/src/gui'
c:\MinGW\bin\mingw32-make.exe[1]: *** [debug-all] Error 2
c:\MinGW\bin\mingw32-make.exe[1]: Leaving directory `g:/Qt/qt-everywhere-opensou
rce-src-4.7.2/src/gui'
mingw32-make: *** [sub-gui-make_default-ordered] Error 2


Any suggestion according this error? my RAM is 2GB. Is that not enough for building Qt?

EDIT:
it seems Qt has large number of inline definitions of functions and methods which are also decorated using __declspec(dllexport). this seems to be the cause of bloat in object files of the library. in GCC 4.4 this was not emitted, but in 4.5 this feature is added for some reason I don't understand.
so, case closed for now.