[webkit-qt] [Qt] QtWebKit-2.3 tries to link against Xrender on OpenGLES2 platform

Cedric Hombourger chombourger at mvista.com
Mon Nov 5 15:03:44 PST 2012


Hello all,

Raised https://bugs.webkit.org/show_bug.cgi?id=101260 for a build issue
using abd77b3f85375632aa313934e8eb9ae89f2bbf2e from the qtwebkit-2.3 repo

Was trying to do an ARM build for an embedded Linux platform having Qt 4.8.1 + OpenGL ES2.

Found the issue to be from Source/WebCore/WebCore.pri and in particular:
contains(DEFINES, WTF_USE_3D_GRAPHICS=1) {
    contains(QT_CONFIG, opengles2):!win32: LIBS += -lEGL
    mac: LIBS += -framework IOSurface -framework CoreFoundation
    linux-*: {
        contains(DEFINES, HAVE_XCOMPOSITE=1): LIBS += -lXcomposite
        LIBS += -lXrender
        CONFIG *= x11
    }
    haveQt(4): QT *= opengl
}
which I believe could be changed to:
contains(DEFINES, WTF_USE_3D_GRAPHICS=1) {
    contains(QT_CONFIG, opengles2):!win32: LIBS += -lEGL
    mac: LIBS += -framework IOSurface -framework CoreFoundation
    linux-*: {
        xlibAvailable() {
            contains(DEFINES, HAVE_XCOMPOSITE=1): LIBS += -lXcomposite
            LIBS += -lXrender
            CONFIG *= x11
        }
    }
    haveQt(4): QT *= opengl
}
How does that sound?

Thanks
Cedric

PS: to get as far as the link, please note that the patch from https://bugs.webkit.org/show_bug.cgi?id=101249 is needed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20121106/96193258/attachment.html>


More information about the webkit-qt mailing list