build QTwebkit errors on windows
hi,all Is there anybody knows this error : ./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7): undefined reference to `_imp__PathFindFileNameW@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 thanks! Jeff ------------------------------------------------------------------- 彩铃制作全过程大揭秘!( http://d1.sina.com.cn/sina/limeng3/mail_zhuiyu/2007/mail_zhuiyu_20070820.htm... ) =================================================================== 注册新浪2G免费邮箱(http://mail.sina.com.cn/)
On Aug 26, 2007, at 9:12 PM, pj_wh120@sina.com wrote:
hi,all Is there anybody knows this error :
./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7): undefined reference to `_imp__PathFindFileNameW@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? -Adam
On Monday 27 August 2007 06:59:47 Adam Roben wrote:
On Aug 26, 2007, at 9:12 PM, pj_wh120@sina.com wrote:
hi,all Is there anybody knows this error :
./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7): undefined reference to `_imp__PathFindFileNameW@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?
I like the latter idea :) Simon
On 8/27/07 11:09 AM, "Simon Hausmann" <hausmann@kde.org> wrote:
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?
I like the latter idea :)
Perhaps it would make sense to keep it PLATFORM(WIN_OS), but add a PLATFORM(QT) case above it then - this way, other possible Windows ports wouldn't get the default Unix code path. - WBR, Alexey Proskuryakov
hi,all Is there anybody knows this error : ./tmp\HTMLFormElement.o:HTMLFormElement.cpp:(.text+0x41d7): undefined reference to `_imp__PathFindFileNameW@4'
Sounds like "you" just forgot to link to shlwapi.lib. See http://msdn2.microsoft.com/en-us/library/ms628559.aspx for more details.
participants (5)
-
Adam Roben
-
Alexey Proskuryakov
-
pj_wh120@sina.com
-
Silex
-
Simon Hausmann