Bug 101961
| Summary: | [Qt] QtWebKit, when built with Qt, doesn't provide a way to avoid linking to gstreamer. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Sankel <camior> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | hausmann, menard, pnormand |
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
David Sankel
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Philippe Normand
CCing Alexis and Simon
Alexis Menard (darktears)
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.