[webkit-dev] build QTwebkit errors on windows

Adam Roben aroben at apple.com
Sun Aug 26 21:59:47 PDT 2007

On Aug 26, 2007, at 9:12 PM, pj_wh120 at sina.com wrote:

> hi,all
> Is there anybody knows this error :
> ./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7):  
> undefined reference
> to `_imp__PathFindFileNameW at 4'
> collect2: ld returned 1 exit status
> mingw32-make[2]: *** [..\lib\QtWebKit.dll] Error 1
> mingw32-make[2]: Leaving directory `C:/cygwin/home/en/WebKit/ 
> WebKitBuild/Release
> /WebCore'
> mingw32-make[1]: *** [release] Error 2
> mingw32-make[1]: Leaving directory `C:/cygwin/home/en/WebKit/ 
> WebKitBuild/Release
> /WebCore'
> mingw32-make: *** [sub-WebCore-make_default-ordered] Error 2
> Your vendor has not defined POSIX macro WEXITSTATUS, used at build- 
> webkit line 1
> 41
> Build Instructions for the QtWebKit build on Windows
> http://trac.webkit.org/projects/webkit/wiki/BuildingQtOnWindows

    Sounds like the build is legitimately broken. It would be great if  
you could file a bug at <http://bugs.webkit.org/>!

    I think we have two options here:

1) Make the Windows Qt build link against shlwapi.lib (the library  
that defines PathFindFileName)
2) Change the call to PathFindFileName to only be #if PLATFORM(WIN)  
(currently it's PLATFORM(WIN_OS), which includes Qt), and make a  
PLATFORM(QT) version.

    I don't know which is the better choice for the Qt build. Perhaps  
Lars or Simon have a better idea?


More information about the webkit-dev mailing list