Results 1 to 1 of 1

Thread: [SOLVED]building Qt using GCC 4.5.2 Mingw

  1. #1
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default [SOLVED]building Qt using GCC 4.5.2 Mingw

    Hi,

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

    Qt Code:
    1. c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: out of mem
    2. ory allocating 133809816 bytes
    3. collect2: ld returned 1 exit status
    4. mingw32-make.exe[2]: *** [../../lib/QtGuid4.dll] Error 1
    5. mingw32-make.exe[2]: Leaving directory `g:/Qt/qt-everywhere-opensource-src-4.7.2
    6. /src/gui'
    7. c:\MinGW\bin\mingw32-make.exe[1]: *** [debug-all] Error 2
    8. c:\MinGW\bin\mingw32-make.exe[1]: Leaving directory `g:/Qt/qt-everywhere-opensou
    9. rce-src-4.7.2/src/gui'
    10. mingw32-make: *** [sub-gui-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    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.
    Last edited by simpler_efil; 2nd May 2011 at 15:45.

Similar Threads

  1. Building QT Staticly - QT 4.7.0 + WinXP + MinGW
    By slava in forum Installation and Deployment
    Replies: 4
    Last Post: 4th August 2010, 18:58
  2. Problem building Qwt 5.2.0 with MinGW
    By spatten in forum Qwt
    Replies: 6
    Last Post: 19th March 2010, 12:09
  3. Building PythonQt with MinGW
    By givemeaname in forum Qt Programming
    Replies: 6
    Last Post: 9th March 2010, 09:20
  4. Building Qt with MinGW - strange dependencies
    By gluke in forum Installation and Deployment
    Replies: 2
    Last Post: 20th October 2008, 12:50
  5. Building Qt 4.3.4 on Win Vista & MinGW
    By Sirow in forum Installation and Deployment
    Replies: 2
    Last Post: 28th April 2008, 19:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.