PDA

View Full Version : Problem in building QT webkit in debug mode



sm38098
31st March 2009, 05:23
Hi,
I am trying to build webkit application on QT port in debug mode. Compilation works fine but while linking, ld.exe takes a lot of memory and ultimately exits with an error code saying out of memory. However, everything works fine if I do these steps for release mode. (I am using QT4.5.0). Given below is the error log:


g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,h:\Webkit\WebKit\WebKitBuild\Debug\lib\libQ tWebKit4.a -o ..\lib\QtWebKit4.dll object_script.QtWebKit.Debug -L"c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\." -L"c:\Qt\2009.01\qt\lib" tmp\QtWebKit_resource_res.o -lwinmm -lgdi32 -luser32 -lwinmm -ladvapi32 -lgdi32 -lshell32 -lshlwapi -luser32 -lversion -lQtGuid4 -lQtNetworkd4 -QtCored4

c:\Qt\2009.01\mingw\bin\..\lib\gcc\mingw32\3.4.5\. .\..\..\..\mingw32\bin\ld.exe:
out of memory allocating 27720 bytes
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\lib\QtWebKit4.dll] Error 1
mingw32-make[2]: Leaving directory `H:/WebKit/WebKit/WebKitBuild/Debug/WebCore'
mingw32-make[1]: *** [debug] Error 2
mingw32-make[1]: Leaving directory `H:/WebKit/WebKit/WebKitBuild/Debug/WebCore'
mingw32-make: *** [sub-WebCore-make_default-ordered] Error 2


Please suggest a solution or a workaround for this.
Thanks,
Shashank