Bug 102924 - [Qt] MinGW: Linking of QtWebkitWidgets fails if Qt has been configured with ANGLE
Summary: [Qt] MinGW: Linking of QtWebkitWidgets fails if Qt has been configured with A...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 76773
  Show dependency treegraph
 
Reported: 2012-11-21 05:10 PST by Kai Koehne
Modified: 2012-11-21 07:59 PST (History)
4 users (show)

See Also:


Attachments
Patch for fixing MinGW compilation (2.40 KB, patch)
2012-11-21 05:32 PST, Kai Koehne
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Koehne 2012-11-21 05:10:26 PST
When trying to do a build qt 5 with mingw-builds qtwebkit fails:

mingw32-make -f Makefile.api.Debug all
mingw32-make[1]: Entering directory 'D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source'
g++ -shared -Wl,--out-implib,..\lib\libQt5WebKitWidgetsd.a -o ..\lib\Qt5WebKitWidgetsd.dll   -LD:\dev\icu-49\dist\mingw-32\lib -LD:\dev\openssl-1.0.1c\dist\mingw-32\lib -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Widgetsd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Networkd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Guid -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Cored -llibEGL -llibGLESv2 -lgdi32 -luser32 obj\debug\Qt5WebKitWidgetsd_resource_res.o -Wl,-whole-archive -lWebKit1d -Wl,-no-whole-archive -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebKit/debug -lglu32 -lopengl32 -lgdi32 -luser32 -Wl,-whole-archive -lWebKit2d -Wl,-no-whole-archive -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebKit2/debug -Wl,-whole-archive -lWebCored -Wl,-no-whole-archive -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug -ladvapi32 -lgdi32 -lshell32 -lshlwapi -luser32 -lversion -lgdi32 -lole32 -luser32 -Wl,-whole-archive -lANGLEd -Wl,-no-whole-archive -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/ThirdParty/ANGLE/debug -Wl,-whole-archive -lJavaScriptCored -Wl,-no-whole-archive -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/JavaScriptCore/debug -lwinmm -Wl,-whole-archive -lWTFd -Wl,-no-whole-archive -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WTF/debug -licuin -licuuc -licudt -lwinmm -lgdi32 -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Quickd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5MultimediaWidgetsd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5OpenGLd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5PrintSupportd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Qmld -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Multimediad -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Widgetsd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Sqld -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Networkd -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Guid -LD:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtbase/lib -lQt5Cored
Warning: resolving _cti_vm_throw by linking to @cti_vm_throw@4
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xd): undefined reference to `_imp__glCreateShader@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x3e): undefined reference to `_imp__glShaderSource@16'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x4a): undefined reference to `_imp__glCompileShader@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x66): undefined reference to `_imp__glGetShaderiv@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x7c): undefined reference to `_imp__glDeleteShader@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x165): undefined reference to `_imp__eglCreatePbufferFromClientBuffer@20'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x187): undefined reference to `_imp__glGenTextures@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x197): undefined reference to `_imp__glActiveTexture@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x1ae): undefined reference to `_imp__glBindTexture@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x1cc): undefined reference to `_imp__eglBindTexImage@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x1d2): undefined reference to `_imp__glTexParameteri@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x252): undefined reference to `_imp__eglGetCurrentDisplay@0'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x35c): undefined reference to `_imp__eglGetCurrentContext@0'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x362): undefined reference to `_imp__eglGetCurrentSurface@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x386): undefined reference to `_imp__eglMakeCurrent@16'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x3c9): undefined reference to `_imp__glBindFramebuffer@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x3d8): undefined reference to `_imp__glUseProgram@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x3f0): undefined reference to `_imp__glBindBuffer@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x3f6): undefined reference to `_imp__glBindTexture@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x413): undefined reference to `_imp__glTexParameteri@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x489): undefined reference to `_imp__glVertexAttribPointer@24'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x586): undefined reference to `_imp__glUniform1i@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x58f): undefined reference to `_imp__glEnableVertexAttribArray@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x5c2): undefined reference to `_imp__glDrawArrays@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x5cb): undefined reference to `_imp__glDisableVertexAttribArray@4'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x5fb): undefined reference to `_imp__glFinish@0'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x827): undefined reference to `_imp__eglReleaseTexImage@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x83e): undefined reference to `_imp__glDeleteTextures@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0x85f): undefined reference to `_imp__eglDestroySurface@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xe88): undefined reference to `_imp__eglDestroySurface@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xea9): undefined reference to `_imp__eglDestroySurface@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xed5): undefined reference to `_imp__eglDestroyContext@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xf08): undefined reference to `_imp__eglReleaseTexImage@12'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xf1f): undefined reference to `_imp__glDeleteTextures@8'
D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o):GraphicsSurfaceWin.cpp:(.text+0xf37): undefined reference to `_imp__glDeleteProgram@4'
c:/mingw-builds-32-4.7.2-posix-sjlj-rev1/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source/WebCore/debug/libWebCored.a(GraphicsSurfaceWin.o): bad reloc address 0x4 in section `.text$_ZN7WebCore22GraphicsSurfacePrivateC1EP14QOpenGLContextRKNS_7IntSizeEi[__ZN7WebCore22GraphicsSurfacePrivateC1EP14QOpenGLContextRKNS_7IntSizeEi]'
collect2.exe: error: ld returned 1 exit status
Makefile.api.Debug:75: recipe for target '..\lib\Qt5WebKitWidgetsd.dll' failed
mingw32-make[1]: *** [..\lib\Qt5WebKitWidgetsd.dll] Error 1
mingw32-make[1]: Leaving directory 'D:/dev/qt-5-sdk-mingw-builds-gcc-4.7.2-32/qtwebkit/Source'
Makefile.api:37: recipe for target 'debug-all' failed
mingw32-make: *** [debug-all] Error 2
Comment 1 Kai Koehne 2012-11-21 05:32:48 PST
Created attachment 175417 [details]
Patch for fixing MinGW compilation
Comment 2 Simon Hausmann 2012-11-21 07:52:28 PST
Comment on attachment 175417 [details]
Patch for fixing MinGW compilation

Thanks! r=me
Comment 3 WebKit Review Bot 2012-11-21 07:59:36 PST
Comment on attachment 175417 [details]
Patch for fixing MinGW compilation

Clearing flags on attachment: 175417

Committed r135407: <http://trac.webkit.org/changeset/135407>
Comment 4 WebKit Review Bot 2012-11-21 07:59:39 PST
All reviewed patches have been landed.  Closing bug.