RESOLVED INVALID 101961
[Qt] QtWebKit, when built with Qt, doesn't provide a way to avoid linking to gstreamer.
https://bugs.webkit.org/show_bug.cgi?id=101961
Summary [Qt] QtWebKit, when built with Qt, doesn't provide a way to avoid linking to ...
David Sankel
Reported 2012-11-12 11:54:32 PST
When Qt is configured to not build QtMultimedia, QtWebKit will still try to use gstreamer if it is available on the system. This is fine, except that there is no way to disable this. We ran into this when making a custom Qt build where we wanted to control all libraries used in compilation. The gstreamer link that was created linked into the system-wide zlib which conflicted with the one we wanted to use with our Qt build. A workaround was to comment out the following in Source/JavaScriptCore/wtf/wtf.pri: {code} !contains(QT_CONFIG, no-pkg-config):system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): { DEFINES += ENABLE_GLIB_SUPPORT=1 PKGCONFIG += glib-2.0 gio-2.0 CONFIG += link_pkgconfig } {code} and the following in Source/WebCore/features.pri: {code} !contains(QT_CONFIG, no-pkg-config):system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): { DEFINES -= ENABLE_VIDEO=0 DEFINES += ENABLE_VIDEO=1 DEFINES += WTF_USE_GSTREAMER=1 DEFINES -= WTF_USE_GSTREAMER=0 } else { message("Disabling video due the lack of GLib/Gio/GStreamer.") DEFINES -= ENABLE_VIDEO=1 DEFINES += ENABLE_VIDEO=0 } {code}
Attachments
Philippe Normand
Comment 1 2012-11-15 02:55:49 PST
CCing Alexis and Simon
Alexis Menard (darktears)
Comment 2 2012-11-15 05:14:58 PST
Just disable the video support by passing --no-video to build-webkit. Video support comes with either QtMultimedia or Gstreamer on Linux. If you don't want to link to gstreamer neither QtMultimedia then you must deactivate video support.
Note You need to log in before you can comment on or make changes to this bug.