I redid the exercise to build webkit from scratch under windows on a fresh installed windows XP.
I installed visual studio 2005, QT 4.3.1 (commercial edition) and the tools from the gnuwin32 project as mentioned on the wiki.
Next step was execute
perl WebKitToolsScriptsbuild-webkit
from the webkit directory.
First problem I encountered was:
../../../WebCore/loader/FTPDirectoryDocument.cpp(233) : error C3861: 'localtime_r': identifier not found.
I modified the line into the following lines:
#if PLATFORM(WIN_OS)
localtime_s(&now, &now_t);
#else
localtime_r(&now_t, &now);
#endif
Next compilation error was:
../../../WebCore/loader/FTPDirectoryParser.cpp(138) : error C3861: 'gmtime_r': identifier not found
Same error occurs on lines 1108 and 1548.
Modify these lines into:
#if PLATFORM(WIN_OS)
gmtime_s(&result.modifiedTime, &t);
#else
gmtime_r(&t, &result.modifiedTime);
#endif
The last error I encounter was:
../../../JavaScriptCore/wtf/MathExtras.h(117) : error C3861: 'rand_s': identifier not found
While rand_s is defined in stdlib.h I still had problems compiling it, so I commented out from line 106 till 122 and modified line 123 into
#endif
(ofcourse remove line 137). In this way you are not using the rand_s function but srand and rand functions.
After this it is waiting until the compilation ends and then you can start the QtLauncher without any problem.
Greetings
Peter