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 797347 - camerabin2 fails to build on Ubuntu 18.04
camerabin2 fails to build on Ubuntu 18.04
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-10-28 11:31 UTC by Xavier Claessens
Modified: 2018-10-28 12:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier Claessens 2018-10-28 11:31:40 UTC
../subprojects/gst-plugins-bad/gst/camerabin2/gstwrappercamerabinsrc.c: In function ‘check_and_replace_src’:
../subprojects/gst-plugins-bad/gst/camerabin2/gstwrappercamerabinsrc.c:488:50: error: ‘DEFAULT_VIDEOSRC’ undeclared (first use in this function); did you mean ‘DEFAULT_WIDTH’?
               self->app_vid_src, "autovideosrc", DEFAULT_VIDEOSRC,
                                                  ^~~~~~~~~~~~~~~~
                                                  DEFAULT_WIDTH
../subprojects/gst-plugins-bad/gst/camerabin2/gstwrappercamerabinsrc.c:488:50: note: each undeclared identifier is reported only once for each function it appears in
Comment 1 Tim-Philipp Müller 2018-10-28 12:00:58 UTC
So weird. Why does this happen for you?

I have:

$ rg DEFAULT_VIDEOSRC /tmp/gb/
/tmp/gb/subprojects/gst-plugins-bad/config.h
8:#define DEFAULT_VIDEOSRC "v4l2src"

and configinc is in include_directories in gst/camerabin2/meson.build
and there's an #include "config.h" in the gstwrappercamerabinsrc.c
and -DHAVE_CONFIG_H is set via c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
Comment 2 Tim-Philipp Müller 2018-10-28 12:01:42 UTC
What's the full compiler line from ninja -v for you?
Comment 3 Xavier Claessens 2018-10-28 12:32:11 UTC
Ok, I understood, that's a huge bug in Meson actually. The problem is I had a local change in gst-plugins-bad that makes its configure fails in the middle, and since for gst-build the subproject gst-plugins-bad is optional, that doesn't make the whole configuration fail, it just ignore the error and should not build -bad at all. But all build targets from -bad that where generated before the error are kept by meson and will still be built. That means that the camerabin2 and curl targets are built but the config.h didn't get generated because the configure in -bad failed sooner.