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 715183 - build fails with gstreamer uninstalled (1.3)
build fails with gstreamer uninstalled (1.3)
Status: RESOLVED FIXED
Product: gstreamer-vaapi
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gstreamer-vaapi maintainer(s)
gstreamer-vaapi maintainer(s)
Depends on:
Blocks: 719412 719416
 
 
Reported: 2013-11-25 17:38 UTC by Matthieu Bouron
Modified: 2013-11-27 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
WIP: Fix build with gstreamer >= 1.2 (10.40 KB, patch)
2013-11-25 23:48 UTC, Matthieu Bouron
none Details | Review
[PATCH 1/2] Fix build with gstreamer >= 1.2 (4.82 KB, patch)
2013-11-26 12:13 UTC, Matthieu Bouron
none Details | Review
[PATCH 2/2] vaapiencode: fix build with gstreamer >= 1.2 (1.95 KB, patch)
2013-11-26 12:13 UTC, Matthieu Bouron
none Details | Review
[PATCH 1/1] Fix build with gstreamer >= 1.2 (4.82 KB, patch)
2013-11-26 17:58 UTC, Matthieu Bouron
none Details | Review

Description Matthieu Bouron 2013-11-25 17:38:52 UTC
gstreamer-vaapi fails to build with gstreamer uninstalled (git). The regression seems to be related to 29270e3af6f0c145a50f26ff9fb24a0092c5dbe7.

autogen.sh (and autogen.sh --with-gstreamer-api=1.2) returns:
checking for GStreamer API version... 1.3
configure: error: unsupported GStreamer API version 1.3
Comment 1 Matthieu Bouron 2013-11-25 23:48:32 UTC
Created attachment 262798 [details] [review]
WIP: Fix build with gstreamer >= 1.2

Here is a work in progress that fix the issue while compiling against gstreamer >= 1.2. Not yet tested with 0.10 and 1.0.

Also i guess this patch should be splitted.
Comment 2 Víctor Manuel Jáquez Leal 2013-11-26 09:24:26 UTC
Review of attachment 262798 [details] [review]:

Yes, I'm my opinion this patch should be split.

::: configure.ac
@@ +210,3 @@
+    GST_PLUGINS_BASE_VERSION_REQUIRED=gst13_plugins_base_version
+    GST_PLUGINS_BAD_VERSION_REQUIRED=gst13_plugins_bad_version
+    ;;

you defined above gst14_*, not gst13_*, as you're using here

::: gst/vaapi/gstvaapidownload.c
@@ +95,2 @@
 /* GstImplementsInterface interface */
+#if !GST_CHECK_VERSION(1,0,0)

I'm not sure if gstvaapidownload and gstvaapiupload should be ported to gstreamer 1.0. AFAIK, they are not required, as they were for gstreamer 0.10
Comment 3 Víctor Manuel Jáquez Leal 2013-11-26 09:32:51 UTC
(In reply to comment #1)
> Also i guess this patch should be splitted.

Agree: one for enabling the compilation of gstvaapi with the current master of gstreamer and other for enabling the encoder plugin.
Comment 4 Matthieu Bouron 2013-11-26 11:48:49 UTC
(In reply to comment #2)
> Review of attachment 262798 [details] [review]:
> 
> Yes, I'm my opinion this patch should be split.
> 
> ::: configure.ac
> @@ +210,3 @@
> +    GST_PLUGINS_BASE_VERSION_REQUIRED=gst13_plugins_base_version
> +    GST_PLUGINS_BAD_VERSION_REQUIRED=gst13_plugins_bad_version
> +    ;;
> 
> you defined above gst14_*, not gst13_*, as you're using here

First of all, thanks for your review.
Since gst 1.3 api will not exist whereas the 1.4 will, should I declare gst14_* or gst13_* ? (and use those variables if I detect 1.3 api)

> 
> ::: gst/vaapi/gstvaapidownload.c
> @@ +95,2 @@
>  /* GstImplementsInterface interface */
> +#if !GST_CHECK_VERSION(1,0,0)
> 
> I'm not sure if gstvaapidownload and gstvaapiupload should be ported to
> gstreamer 1.0. AFAIK, they are not required, as they were for gstreamer 0.10
Comment 5 Matthieu Bouron 2013-11-26 12:13:11 UTC
Created attachment 262845 [details] [review]
[PATCH 1/2] Fix build with gstreamer >= 1.2
Comment 6 Matthieu Bouron 2013-11-26 12:13:39 UTC
Created attachment 262846 [details] [review]
[PATCH 2/2] vaapiencode: fix build with gstreamer >= 1.2
Comment 7 Matthieu Bouron 2013-11-26 17:58:05 UTC
Created attachment 262888 [details] [review]
[PATCH 1/1] Fix build with gstreamer >= 1.2

Patches rebased on master.
Comment 8 Gwenole Beauchesne 2013-11-27 12:54:33 UTC
LGTM. Thanks. Though, the changelog would mention gstreamer > 1.2 or gstreamer >= 1.3 as it works fine as gstreamer == 1.2.x (1.2 branch). :)
Comment 9 Gwenole Beauchesne 2013-11-27 14:20:04 UTC
Applied. Additional changes include gst_vaapi_lt_current to stick to 4. So that the SONAME remains libgstvaapi-1.3.so.0 [1.3], libgstvaapi-1.2.so.0 [1.2], etc.

Likewise, removed the extra AS_VERSION_COMPARE() since 1.3 case was already covered by the ">" clause for the 1.2 check, thus also yielding USE_GST_API_1_2p="yes" in that case. Should any GStreamer 1.4 specific change be needed, then we would add USE_GST_API_1_4p there.
Comment 10 Gwenole Beauchesne 2013-11-27 14:20:18 UTC
commit 76174922bc38d3e323079e6c39f838f200963618
Author: Matthieu Bouron <matthieu.bouron@collabora.com>
Date:   Tue Nov 26 12:06:07 2013 +0000

    Fix build with GStreamer >= 1.3.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=715183
    
    Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>