Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [help]building qt 4.7.4 in mingw
Qt 6.11 is out! See what's new in the release blog

[help]building qt 4.7.4 in mingw

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    facat
    wrote on last edited by
    #1

    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 -Wl,--out-implib,f:\qt-everywhere-opensource-src-4.7.4\qt-
    everywhere-opensource-src-4.7.4\lib\libQtGuid4.a -o ....\lib\QtGuid4.dll object
    _script.QtGuid.Debug -L"f:\qt-everywhere-opensource-src-4.7.4\qt-everywhere-ope
    nsource-src-4.7.4\lib" -L"f:\qt-everywhere-opensource-src-4.7.4\qt-everywhere-op
    ensource-src-4.7.4\lib" -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool
    -lws2_32 -lole32 -luuid -luser32 -ladvapi32 tmp\obj\debug_shared\QtGuid_resourc
    e_res.o -lmsimg32 -lshell32 -lQtCored4

    c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: out of mem
    ory allocating 125660256 bytes
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [....\lib\QtGuid4.dll] Error 1
    mingw32-make[2]: Leaving directory F:/qt-everywhere-opensource-src-4.7.4/qt-eve rywhere-opensource-src-4.7.4/src/gui' mingw32-make[1]: *** [debug-all] Error 2 mingw32-make[1]: Leaving directory F:/qt-everywhere-opensource-src-4.7.4/qt-eve
    rywhere-opensource-src-4.7.4/src/gui'
    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 Last reply
    0
    • N Offline
      N Offline
      njuFerret
      wrote on last edited by
      #2

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

      you can see "here.":http://moderncpp.dyndns.org/viewtopic.php?f=4&t=20&sid=7f612f2db5dd6e7f824b4075237dff8a

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved