After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767671 - waylandsink: update from scaler protocol to viewporter protocol
waylandsink: update from scaler protocol to viewporter protocol
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: 1.9.90
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 711155
 
 
Reported: 2016-06-14 23:52 UTC by Scott D Phillips
Modified: 2016-09-30 07:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] wayland: Update from scaler to viewporter protocol (17.27 KB, patch)
2016-06-14 23:53 UTC, Scott D Phillips
committed Details | Review

Description Scott D Phillips 2016-06-14 23:52:10 UTC
The scaler protocol from weston got moved to wayland-protcols and renamed to viewporter.
Comment 1 Scott D Phillips 2016-06-14 23:53:22 UTC
Created attachment 329828 [details] [review]
[PATCH] wayland: Update from scaler to viewporter protocol
Comment 2 Olivier Crête 2016-06-15 20:38:52 UTC
Review of attachment 329828 [details] [review]:

This looks fine to me.
Comment 3 Olivier Crête 2016-06-15 20:41:02 UTC
Review of attachment 329828 [details] [review]:

This looks fine to me.
Comment 4 Vincent Abriou 2016-08-02 09:46:07 UTC
Review of attachment 329828 [details] [review]:

::: configure.ac
@@ +2185,3 @@
+      if test "x$wayland_scanner" != "x"; then
+        HAVE_WAYLAND="yes"
+        AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, `$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)

I test your patch and I faced an issue while building into OpenEmbedded environment.
To get rid of this I have updated configure.ac in order to specify the PKG_CONFIG_SYSROOT_DIR while retrieving WAYLAND_PROTOCOLS_DATADIR.

AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, ${PKG_CONFIG_SYSROOT_DIR}`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
Comment 5 Scott D Phillips 2016-08-02 20:51:02 UTC
(In reply to Vincent Abriou from comment #4)
> Review of attachment 329828 [details] [review] [review]:
> 
> ::: configure.ac
> @@ +2185,3 @@
> +      if test "x$wayland_scanner" != "x"; then
> +        HAVE_WAYLAND="yes"
> +        AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, `$PKG_CONFIG
> --variable=pkgdatadir wayland-protocols`)
> 
> I test your patch and I faced an issue while building into OpenEmbedded
> environment.
> To get rid of this I have updated configure.ac in order to specify the
> PKG_CONFIG_SYSROOT_DIR while retrieving WAYLAND_PROTOCOLS_DATADIR.
> 
> AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, ${PKG_CONFIG_SYSROOT_DIR}`$PKG_CONFIG
> --variable=pkgdatadir wayland-protocols`)

Hmm, it seems that nowhere in any of the rest of the configure.ac's is that incantation used, so it's surprising to me that this is the only place that is broken for you.

Maybe it would be better to have your build script passed the --with-pkg-config-path argument to set pkg-config dirs, or maybe set the PKG_CONFIG variable to point to your desired copy of pkg-config.
Comment 6 Vincent Abriou 2016-08-03 08:21:54 UTC
Hi Scott,
 
My pkg-config-path is well define. While the configure phase, everything is going well. The pkgdatadir variable of wayland-protocol.pc file is well retrieve:
/user/share/wayland-protocols

Adding PKG_CONFIG_SYSROOT_DIR will specify the full path for OpenEmbedded cross compilation environment. without that, there is no way to generate viewporter-client-protocol.h because the path to viewporter.xml is incomplete.

PKG_CONFIG_SYSROOT_DIR is also used to configure Opencv plugins.

BR
Vincent
Comment 7 Vincent Abriou 2016-08-22 13:37:35 UTC
Hi Scott,

Have you any comments regarding my previous comment?

Here is the patch done in openembedded to be able to build weston 1.11 with the wayland-protocol:
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/wayland/weston/0001-configure.ac-Fix-wayland-protocols-path.patch

I think it could be great to be able to support openembedded build for gstreamer-plugins-bad too... 

Anyway, if you don't feel confident with my proposal, it is still interesting to have you initial patch merged as soon as possible. It is the starting point to go further on wayland-protocol with gstreamer.

BR
Vinceny
Comment 8 Nicolas Dufresne (ndufresne) 2016-09-15 14:59:10 UTC
Let's be honest, the weston patch this depends on looks like weird to me. Let's mere this, please file a seperate bug for build issues. We'll work with you to find a better suited solution.
Comment 9 Vincent Abriou 2016-09-15 15:09:12 UTC
Hi Nicolas,

As already wrote in my previous comment, this is fine to merge the patch as it is.
I will open a new ticket for openembedded build issue.

Br
Vincent
Comment 10 Nicolas Dufresne (ndufresne) 2016-09-15 16:11:58 UTC
I do think we should make the scaling optional though.