Gst-1.0.typelib missing when compiling from source

Nicolai von Hoyningen-Huene nico.von.huene at kinexon.com
Tue Nov 2 11:12:46 UTC 2021


Hi!

### Describe your issue

When I compile gstreamer from source (either via gst-build or the main branch of https://gitlab.freedesktop.org/gstreamer/gstreamer.git), some typelib files are not generated and installed.

#### Expected Behavior
At least `Gst-1.0.typelib` along with others should be installed to `<prefix>/usr/lib/x86_64-linux-gnu/girepository-1.0/`.

#### Observed Behavior
`Gst-1.0.typelib` is missing in install dir:
```
streamer$ find install/ -name *.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/GModule-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/win32-1.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/Vulkan-1.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/xfixes-4.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/Gio-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/xrandr-1.3.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/fontconfig-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/libxml2-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/freetype2-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/GIRepository-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/DBusGLib-1.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/GLib-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/GObject-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/xft-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/cairo-1.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/xlib-2.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/GL-1.0.typelib
install/usr/local/lib/x86_64-linux-gnu/girepository-1.0/DBus-1.0.typelib
```

Test fails:
```
630/637 gstreamer-full / python-overrides-devenv                                                   FAIL             1.22s   exit status 1
>>> MALLOC_PERTURB_=8 /home/user/gstreamer/gst-env.py --builddir=/home/user/gstreamer/builddir --gstbuilddir=/home/nico/Programming/detector/gstreamer/builddir/tests/python/../.. --srcdir=/home/user/gstreamer /home/user/gstreamer/tests/python/python-devenv-overrides.py
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
Traceback (most recent call last):
  File "/home/user/gstreamer/tests/python/python-devenv-overrides.py", line 5, in <module>
    from gi.repository import Gst
  File "/usr/lib/python3/dist-packages/gi/importer.py", line 132, in load_module
    raise ImportError('cannot import name %s, '
ImportError: cannot import name Gst, introspection typelib not found
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

```

#### Setup
- **Operating System:** Ubuntu 20.04, Linux 5.4.0-89-generic
- **Device:** Computer
- **GStreamer Version:** main branch at bc358e5827a0b04830207a96488a4b0a3baedac5 via $(git rev-parse --verify HEAD)
- **Command line:** GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
I have libgstreamer1.0-dev/focal,now 1.16.2-2 amd64 installed on the system.

### Steps to reproduce the bug

  1.  open terminal
  2.  type `git clone --recurse-submodules --branch main https://gitlab.freedesktop.org/gstreamer/gstreamer.git`
  3.  type `cd gstreamer`
  4.  type `meson -Dgst-plugins-good:dv=disabled -Dlibsoup:sysprof=disabled -Dlibdv=disabled -Denable_python=true -Denable-introspection=yes builddir`
  5.  type `ninja -C builddir`
  6.  type `DESTDIR=$PWD/install ninja install -C builddir`

### How reproducible is the bug?
The reproducibility of the bug is Always.

Please give me a hint how I can further debug / resolve this issue.

Thanks!

Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20211102/6f71bdc5/attachment-0001.htm>


More information about the gstreamer-devel mailing list