GNOME Bugzilla – Bug 781842
gstreamer-scan.c:7:21: fatal error: gst/gst.h: No such file or directory
Last modified: 2017-04-28 20:03:26 UTC
I get this error doing a completely fresh (clean build dir, clean source dir) build of GStreamer using JHBuild: 'jhbuild build gstreamer' Building documentation for gstreamer Error in gtkdoc helper script: 'gtkdoc-scangobj' failed with status 1 gstreamer-scan.c:7:21: fatal error: gst/gst.h: No such file or directory #include <gst/gst.h> ^ compilation terminated. Traceback (most recent call last):
+ Trace 237397
sys.exit(scangobj.run(options))
res = subprocess.check_call(command, shell=True)
raise CalledProcessError(retcode, cmd)
Failed to run install script '/usr/bin/python3 /home/mcatanzaro/Projects/GNOME/install/bin/meson --internal gtkdoc --sourcedir=/home/mcatanzaro/Projects/GNOME/gstreamer --builddir=/home/mcatanzaro/.cache/jhbuild/build/gstreamer --subdir=docs/gst --headerdirs=/home/mcatanzaro/Projects/GNOME/gstreamer/docs/gst/../../gst --mainfile=gstreamer-docs.sgml --modulename=gstreamer --mode=auto --scanargs=--deprecated-guards=GST_DISABLE_DEPRECATED@@--ignore-decorators=GST_EXPORT@@--ignore-headers=gettext.h glib-compat-private.h glib-compat.h gst-i18n-app.h gst-i18n-lib.h gst_private.h gstelementdetails.h gstmacros.h grammar.tab.h grammar.tab.pre.h math-compat.h types.h --gobjects-types-file=/home/mcatanzaro/.cache/jhbuild/build/gstreamer/docs/gst/gstreamer.types --content-files=building.xml@@running.xml@@/home/mcatanzaro/.cache/jhbuild/build/gstreamer/docs/version.entities --cflags=-I@BUILD_ROOT@/. -I@SOURCE_ROOT@/. -I/home/mcatanzaro/Projects/GNOME/install/include/glib-2.0 -I/home/mcatanzaro/Projects/GNOME/install/lib/glib-2.0/include -pthread --ldflags=-lgstreamer-1.0 -L/home/mcatanzaro/.cache/jhbuild/build/gstreamer/gst -Wl,-rpath /home/mcatanzaro/.cache/jhbuild/build/gstreamer/gst -L/home/mcatanzaro/Projects/GNOME/install/lib -lgobject-2.0 -lglib-2.0 -lgmodule-2.0 -pthread -lm -ldl --cc=ccache cc --ld=ccache cc' FAILED: install '/usr/bin/python3' '/home/mcatanzaro/Projects/GNOME/install/bin/meson' '--internal' 'install' '/home/mcatanzaro/.cache/jhbuild/build/gstreamer/meson-private/install.dat' ninja: build stopped: subcommand failed.
Probably has same root cause as bug #780738 which is: https://github.com/mesonbuild/meson/issues/1681
Hitting the same error. This helped for now: 1) start shell 2) mesonconf -Ddisable_gtkdoc=true 3) rerun build
Fixed for future jhbuild users by https://git.gnome.org/browse/jhbuild/commit/?id=595267a9352cc86d14f992098770556accbcb22d
Meson 0.40.1 has just been released. It should fix this issue. Thanks for the bug report.