configure: gstreamer-1.0 base plugins 32-bit development files not found

Questions about Wine on Linux
Locked
lawlist
Level 2
Level 2
Posts: 17
Joined: Wed Sep 07, 2022 3:56 pm

configure: gstreamer-1.0 base plugins 32-bit development files not found

Post by lawlist »

I am running Ubuntu 20.04 LTS. I followed the `gstreamer` tutorial for installation on Ubuntu:

https://gstreamer.freedesktop.org/docum ... language=c

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

Wine's 64-bit configure script (when building from source) was satisfied -- i.e., nothing is missing.

I added the suffix `:i386` to each of the packages set forth above and installed them as follows:

sudo apt install libgstreamer1.0-dev:i386 libgstreamer-plugins-base1.0-dev:i386 libgstreamer-plugins-bad1.0-dev:i386 gstreamer1.0-plugins-base:i386 gstreamer1.0-plugins-good:i386 gstreamer1.0-plugins-bad:i386 gstreamer1.0-plugins-ugly:i386 gstreamer1.0-libav:i386 gstreamer1.0-doc:i386 gstreamer1.0-tools:i386 gstreamer1.0-x:i386 gstreamer1.0-alsa:i386 gstreamer1.0-gl:i386 gstreamer1.0-gtk3:i386 gstreamer1.0-qt5:i386 gstreamer1.0-pulseaudio:i386

The installation of all packages with `apt` using the `:i386` suffix was successful. However, Wine's 32-bit configure script (when building from source) was unsatisfied and complained as follows:

configure: gstreamer-1.0 base plugins 32-bit development files not found, GStreamer won't be supported.

As to `gstreamer`, how can I satisfy Wines 32-bit configure script (when building from source)?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: configure: gstreamer-1.0 base plugins 32-bit development files not found

Post by jkfloris »

You are probably running into the problem described on the WineHQ Wiki.
Glib2 and gstreamer have different header files for 32 and 64 bit, so when compiling 32 bit Wine with gstreamer support on a 64 bit system it is necessary to use PKG_CONFIG_PATH=/path/to/pkgconfig to point to the location of the 32 bit files when running ./configure. Without that, ./configure will find the 64 bit development files instead of the 32 bit ones and disable gstreamer support. (See https://www.winehq.org/pipermail/wine-d ... 11245.html)
lawlist
Level 2
Level 2
Posts: 17
Joined: Wed Sep 07, 2022 3:56 pm

Re: configure: gstreamer-1.0 base plugins 32-bit development files not found

Post by lawlist »

@jkfloris -- yes, that was it -- thank you! Using the following path permits Wine's 32-bit configure script to find the needed files:

PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig

I had erroneously been using:

PKG_CONFIG_PATH=/usr/lib/pkgconfig

Using the tests mentioned in the linked thread of the previous post, I have the following outputs:

$ pkg-config --cflags gstreamer-1.0

-pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

$ PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig pkg-config --cflags gstreamer-1.0

-pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
Locked