Qt 5.0.2 + Mingw-builds (4.8.1) webkit链接错误



我正在尝试用Mingw-builds(4.8.1)构建Qt 5.0.2,但在webkit构建期间,我有链接错误:

C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/release/libWebKit1.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x143): undefined reference to `WebCore::HTMLMediaElement::platformMedia() const'
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/release/libWebKit1.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x19e): undefined reference to `WebCore::HTMLMediaElement::platformMedia() const'
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/release/libWebKit1.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0xe5): undefined reference to `WebCore::HTMLMediaElement::exitFullscreen()'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/release/libWebKit1.a(FullScreenVideoQt.o): bad reloc address 0x0 in section `.pdata'
collect2.exe: error: ld returned 1 exit status
Makefile.api.Release:81: recipe for target '..libQt5WebKit.dll' failed
mingw32-make[4]: *** [..libQt5WebKit.dll] Error 1
mingw32-make[4]: Leaving directory 'c:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source'
Makefile.api:52: recipe for target 'release-all' failed
mingw32-make[3]: *** [release-all] Error 2
mingw32-make[3]: *** Waiting for unfinished jobs....
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/debug/libWebKit1d.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x94): undefined reference to `WebCore::ChromeClientQt::createFullScreenVideoHandler()'
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/debug/libWebKit1d.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x163): undefined reference to `WebCore::HTMLMediaElement::platformMedia() const'
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/debug/libWebKit1d.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x1c7): undefined reference to `WebCore::HTMLMediaElement::platformMedia() const'
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/debug/libWebKit1d.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x293): undefined reference to `WebCore::HTMLMediaElement::platformMedia() const'
C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/debug/libWebKit1d.a(FullScreenVideoQt.o):FullScreenVideoQt.cpp:(.text+0x122): undefined reference to `WebCore::HTMLMediaElement::exitFullscreen()'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/debug/libWebKit1d.a(FullScreenVideoQt.o): bad reloc address 0x0 in section `.pdata'
collect2.exe: error: ld returned 1 exit status
Makefile.api.Debug:81: recipe for target '..libQt5WebKitd.dll' failed
mingw32-make[4]: *** [..libQt5WebKitd.dll] Error 1
mingw32-make[4]: Leaving directory 'c:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source'
Makefile.api:38: recipe for target 'debug-all' failed
mingw32-make[3]: *** [debug-all] Error 2
mingw32-make[3]: Leaving directory 'c:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source'
Makefile.QtWebKit:43: recipe for target 'sub-api-pri-all-ordered' failed
mingw32-make[2]: *** [sub-api-pri-all-ordered] Error 2
mingw32-make[2]: Leaving directory 'c:/qt-everywhere-opensource-src-5.0.2/qtwebkit/Source'
Makefile:221: recipe for target 'sub-Source-QtWebKit-pro-all-ordered' failed
mingw32-make[1]: *** [sub-Source-QtWebKit-pro-all-ordered] Error 2
mingw32-make[1]: Leaving directory 'c:/qt-everywhere-opensource-src-5.0.2/qtwebkit'
Makefile:233: recipe for target 'module-qtwebkit-all' failed
mingw32-make: *** [module-qtwebkit-all] Error 2

所以,有人知道我如何修复这个错误,是否有可能在windows上使用MinGW构建Qt 5.0.2 ?

注:配置命令:

>configure.bat -debug-and-release -developer-build -opensource -icu -opengl desktop -platform win32-g++ -c++11 -shared -nomake examples -nomake demos -nomake tests -prefix C:LibsQt

这听起来很奇怪,但是当我在另一个目录中使用另一个前缀选项"配置"脚本构建成功完成时…问题结束了吗?谢谢大家的回复…

相关内容

  • 没有找到相关文章

最新更新