Details
-
Suggestion
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.0.1
-
None
-
Windows XP (32bit), Visual Studio 2008
Description
I finally got Qt5 ( qt-everywhere-opensource-src-5.0.1.zip ) building with my VS2008(32bit).
As I couldn't find the workaround tracked here, I wanted to share my knowledge.
The issue comes from VS2008 "Lib"- and "Link"-Tools don't handle allocations in nice way. If they don't have enough memory for the output they try to double the allocation. By holding old and new allocation at the same time it could hardly go above 1gb.
The workaround is to specify initial allocation big enough. I took 1.5gb and this was enough to build the 1.2gb big WebCored.lib.
I did it by adding this snippet to "qtwebkit\Source\WebCore\WebCore.pri" (below the other msvc-workaround-block):
win32-msvc2005|win32-msvc2008:{ CONFIG(debug, debug|release) { # workaround for getting webcored.lib build with vs2008 QMAKE_LIB += "/expectedoutputsize:1500000000" # ... and this should fix similar issue with Qt5WebKitd.dll linking QMAKE_LFLAGS_DEBUG += "/expectedoutputsize:1500000000" } }
Btw. I saw that someone build a similar workaround for WebKit-CMake-Builds ( https://bugs.webkit.org/show_bug.cgi?id=110416 ) ... but the expected-size he suggested in the patch didn't work for me.