November 27, 2011

facat facat
Lab Rat
8 posts

[help]building qt 4.7.4 in mingw

 

I decided to build qt with mingw on my own.
But I encounterd an error while building libQtGuid4.a
information is as follow:

  1. g++ -mthreads -shared -Wl,--out-implib,f:\qt-everywhere-opensource-src-4.7.4\qt-
  2. everywhere-opensource-src-4.7.4\lib\libQtGuid4.a -o ..\..\lib\QtGuid4.dll object
  3. _script.QtGuid.Debug  -L"f:\qt-everywhere-opensource-src-4.7.4\qt-everywhere-ope
  4. nsource-src-4.7.4\lib" -L"f:\qt-everywhere-opensource-src-4.7.4\qt-everywhere-op
  5. ensource-src-4.7.4\lib" -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool
  6.  -lws2_32 -lole32 -luuid -luser32 -ladvapi32 tmp\obj\debug_shared\QtGuid_resourc
  7. e_res.o -lmsimg32 -lshell32 -lQtCored4
  8.  
  9. c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: out of mem
  10. ory allocating 125660256 bytes
  11. collect2: ld returned 1 exit status
  12. mingw32-make[2]: *** [..\..\lib\QtGuid4.dll] Error 1
  13. mingw32-make[2]: Leaving directory `F:/qt-everywhere-opensource-src-4.7.4/qt-eve
  14. rywhere-opensource-src-4.7.4/src/gui'
  15. mingw32-make[1]: *** [debug-all] Error 2
  16. mingw32-make[1]: Leaving directory `F:/qt-everywhere-opensource-src-4.7.4/qt-eve
  17. rywhere-opensource-src-4.7.4/src/gui'
  18. mingw32-make: *** [sub-gui-make_default-ordered] Error 2

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

1 reply

March 26, 2012

njuFerret njuFerret
Lab Rat
4 posts

I have the same problem, but after google, all works fine now.

you can see here. [moderncpp.dyndns.org]

 
  ‹‹ [Solved] Qt Maintenance QtSDK bug?      Loading the OCI driver on the MAC ››

You must log in to post a reply. Not a member yet? Register here!