Bug 106085 - [Qt] Fix compilation with GStreamer 1.0
Summary: [Qt] Fix compilation with GStreamer 1.0
Status: RESOLVED DUPLICATE of bug 106669
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 106669
  Show dependency treegraph
 
Reported: 2013-01-04 04:59 PST by Sebastian Dröge (slomo)
Modified: 2013-03-01 02:49 PST (History)
14 users (show)

See Also:


Attachments
patch to fix compilation with gstreamer 1.0 (587 bytes, patch)
2013-01-04 05:01 PST, Sebastian Dröge (slomo)
no flags Details | Formatted Diff | Diff
Fix compilation with gstreamer 1.0 (1.25 KB, patch)
2013-01-04 05:25 PST, Sebastian Dröge (slomo)
no flags Details | Formatted Diff | Diff
Fix build with GStreamer 1.0 (4.85 KB, patch)
2013-01-05 07:27 PST, Sebastian Dröge (slomo)
hausmann: review-
Details | Formatted Diff | Diff
updated patch to ToT (3.57 KB, patch)
2013-01-11 06:05 PST, Csaba Osztrogonác
no flags Details | Formatted Diff | Diff
Fix QtWebKit compilation with GStreamer 1.0 (3.84 KB, patch)
2013-01-11 08:50 PST, Sebastian Dröge (slomo)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Dröge (slomo) 2013-01-04 04:59:44 PST
See attached patch, the fullscreen window stuff is not ported yet but not disabled in this header.
Comment 1 Sebastian Dröge (slomo) 2013-01-04 05:01:16 PST
Created attachment 181290 [details]
patch to fix compilation with gstreamer 1.0
Comment 2 Sebastian Dröge (slomo) 2013-01-04 05:25:51 PST
Created attachment 181292 [details]
Fix compilation with gstreamer 1.0
Comment 3 Sebastian Dröge (slomo) 2013-01-05 07:27:01 PST
Created attachment 181438 [details]
Fix build with GStreamer 1.0
Comment 4 Philippe Normand 2013-01-07 08:32:24 PST
CCing some QtWebKit folks. Simon, Alexis, would you be ok with switching to gst 1.0?
Comment 5 Simon Hausmann 2013-01-07 23:59:59 PST
Comment on attachment 181438 [details]
Fix build with GStreamer 1.0

This change needs a changelog.

Are you switching all ports over to require 1.0? If yes, do you plan to remove the old code paths at the same time? (Less ifdefs)
Comment 6 Philippe Normand 2013-01-08 00:40:53 PST
(In reply to comment #5)
> (From update of attachment 181438 [details])
> This change needs a changelog.
> 
> Are you switching all ports over to require 1.0? If yes, do you plan to remove the old code paths at the same time? (Less ifdefs)

Yes we plan to remove 0.10 support when gst 1.2 will be released.
Comment 7 Simon Hausmann 2013-01-11 04:30:39 PST
(In reply to comment #6)
> (In reply to comment #5)
> > (From update of attachment 181438 [details] [details])
> > This change needs a changelog.
> > 
> > Are you switching all ports over to require 1.0? If yes, do you plan to remove the old code paths at the same time? (Less ifdefs)
> 
> Yes we plan to remove 0.10 support when gst 1.2 will be released.

Very good. Patch looks good to me, too, but needs a ChangeLog :)
Comment 8 Sebastian Dröge (slomo) 2013-01-11 05:26:05 PST
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > (From update of attachment 181438 [details] [details] [details])
> > > This change needs a changelog.
> > > 
> > > Are you switching all ports over to require 1.0? If yes, do you plan to remove the old code paths at the same time? (Less ifdefs)
> > 
> > Yes we plan to remove 0.10 support when gst 1.2 will be released.
> 
> Very good. Patch looks good to me, too, but needs a ChangeLog :)

Will add one in a few minutes :)

Unconditionally switching to 1.0 is fine for you? Otherwise it would probably be possible to first check for 1.0, and if it isn't found fall back to 0.10... but my qmake skills are not good enough for that ;)
Comment 9 Simon Hausmann 2013-01-11 05:51:05 PST
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > (In reply to comment #5)
> > > > (From update of attachment 181438 [details] [details] [details] [details])
> > > > This change needs a changelog.
> > > > 
> > > > Are you switching all ports over to require 1.0? If yes, do you plan to remove the old code paths at the same time? (Less ifdefs)
> > > 
> > > Yes we plan to remove 0.10 support when gst 1.2 will be released.
> > 
> > Very good. Patch looks good to me, too, but needs a ChangeLog :)
> 
> Will add one in a few minutes :)
> 
> Unconditionally switching to 1.0 is fine for you? Otherwise it would probably be possible to first check for 1.0, and if it isn't found fall back to 0.10... but my qmake skills are not good enough for that ;)

Well, if in the near future we're going to remove the 0.10 code path, then there's probably not much value in exercising your qmake skills like that ;)
Comment 10 Csaba Osztrogonác 2013-01-11 06:03:58 PST
I managed to make this patch work on Ubuntu 12.04 with installing
gstreamer1.0 libgstreamer-plugins-base1.0-dev packages from here:
https://launchpad.net/~gstreamer-developers/+archive/ppa

But installing gstreamer on our Debian Squeeze and Ubuntu 11.10 bots (and on
all developers' machine) isn't trivial thing ... It is simpler to make everyone
migrate to 12.04 and then do the switch. But it needs weeks.
Comment 11 Csaba Osztrogonác 2013-01-11 06:05:28 PST
Created attachment 182329 [details]
updated patch to ToT
Comment 12 Simon Hausmann 2013-01-11 06:54:54 PST
(In reply to comment #10)
> I managed to make this patch work on Ubuntu 12.04 with installing
> gstreamer1.0 libgstreamer-plugins-base1.0-dev packages from here:
> https://launchpad.net/~gstreamer-developers/+archive/ppa
> 
> But installing gstreamer on our Debian Squeeze and Ubuntu 11.10 bots (and on
> all developers' machine) isn't trivial thing ... It is simpler to make everyone
> migrate to 12.04 and then do the switch. But it needs weeks.

Ok, good points!

Ossy, what is a good time frame for you? How can we meet in the middle with the Gstreamer folks?
Comment 13 Sebastian Dröge (slomo) 2013-01-11 08:50:14 PST
Created attachment 182350 [details]
Fix QtWebKit compilation with GStreamer 1.0

What about this patch then? I'll put the qmake project file changes into a new bug for moving QtWebKit to GStreamer 1.0

Note that you can use the GStreamer 1.0 packages from Debian unstable on squeeze/wheezy just fine, and the same for Ubuntu.
Comment 14 WebKit Review Bot 2013-01-11 08:53:47 PST
Attachment 182350 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebKit/qt/ChangeLog:12:  Line contains tab character.  [whitespace/tab] [5]
Source/WebKit/qt/ChangeLog:13:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:10:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 4 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Early Warning System Bot 2013-01-11 08:55:10 PST
Comment on attachment 182350 [details]
Fix QtWebKit compilation with GStreamer 1.0

Attachment 182350 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/15801494
Comment 16 Early Warning System Bot 2013-01-11 08:56:20 PST
Comment on attachment 182350 [details]
Fix QtWebKit compilation with GStreamer 1.0

Attachment 182350 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/15803464
Comment 17 Csaba Osztrogonác 2013-01-14 04:55:40 PST
(In reply to comment #13)
> Created an attachment (id=182350) [details]
> Fix QtWebKit compilation with GStreamer 1.0
> 
> What about this patch then? I'll put the qmake project file changes into a new bug for moving QtWebKit to GStreamer 1.0
> 
> Note that you can use the GStreamer 1.0 packages from Debian unstable on squeeze/wheezy just fine, and the same for Ubuntu.

Thanks for the idea, I'll check it soon.
Comment 18 Csaba Osztrogonác 2013-01-15 04:21:27 PST
Comment on attachment 182350 [details]
Fix QtWebKit compilation with GStreamer 1.0

Defining GST_API_VERSION_1 is necessary to fix the build.
(I can't find in gstreamer1.0 any definition of GST_API_VERSION_1.)
Comment 19 Philippe Normand 2013-01-15 04:28:10 PST
(In reply to comment #18)
> (From update of attachment 182350 [details])
> Defining GST_API_VERSION_1 is necessary to fix the build.
> (I can't find in gstreamer1.0 any definition of GST_API_VERSION_1.)

Yes it's a macro internal to webkit, we use it to differenciate 0.10 vs 1.0 gst code paths
Comment 20 Csaba Osztrogonác 2013-02-05 07:23:45 PST
We don't need 2 bug report for this bug. :)

*** This bug has been marked as a duplicate of bug 106669 ***
Comment 21 Csaba Osztrogonác 2013-02-05 07:24:53 PST
(In reply to comment #12)
> (In reply to comment #10)
> > I managed to make this patch work on Ubuntu 12.04 with installing
> > gstreamer1.0 libgstreamer-plugins-base1.0-dev packages from here:
> > https://launchpad.net/~gstreamer-developers/+archive/ppa
> > 
> > But installing gstreamer on our Debian Squeeze and Ubuntu 11.10 bots (and on
> > all developers' machine) isn't trivial thing ... It is simpler to make everyone
> > migrate to 12.04 and then do the switch. But it needs weeks.
> 
> Ok, good points!
> 
> Ossy, what is a good time frame for you? How can we meet in the middle with the Gstreamer folks?

Upgrade is coming soon, Ádám will send a heads-up mail 
this week about the schedule.
Comment 22 Eric Seidel (no email) 2013-03-01 02:49:49 PST
Comment on attachment 182350 [details]
Fix QtWebKit compilation with GStreamer 1.0

Cleared review? from attachment 182350 [details] so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).