buildroot/package/gstreamer1
Adam Duskett e3053f2176 package/gstreamer1/gst1-python: fix libpython-dir path
Due to the CONF_ENV options set in the gst1-python.mk file, libpython-dir
must be set manually or else the error:
"Python dynamic library path could not be determined" occurs.

Previously the libpython-dir option was set to
$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR), however, this breaks the
resulting .so because the above full path is baked into the resulting .so.
which results in the error:

Couldn't g_module_open libpython. Reason:
/full/path/to/host/lib/python3.8/libpython3.8.so: cannot open shared object
file: No such file or directory

To fix this error, set the libpython-dir to /usr/lib.
Because we provide PYTHONPATH=$(PYTHON3_PATH) in the GST1_PYTHON_CONF_ENV,
the logic in the meson file uses the above python3 provided by the PYTHONPATH
variable to determine /usr/lib/ has the proper
python$(PYTHON3_VERSION_MAJOR).so file.

Because Buildroot provides the appropriate paths, the meson file finds
the correct .so file and the resulting compiled library has the appropriate
path of /usr/lib/python3.$(PYTHON3_VERSION_MAJOR).so

This change has been tested on the following distributions:
  - Debian 9 and 10
  - Debian 9 without python3 installed on the host.
  - Centos7
  - Fedora 31

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-03-27 17:48:28 +01:00
..
gst-omx gst-omx: bump version to 1.16.2 2019-12-09 22:45:11 +01:00
gst1-imx package/gstreamer1/gst1-imx: allow to build with Waf on Python3 2020-02-05 16:46:54 +01:00
gst1-interpipe
gst1-libav gst1-libav: bump version to 1.16.2 2019-12-09 22:44:36 +01:00
gst1-plugins-bad package/gstreamer1/gst1-plugins-bad: add introspection support 2020-03-22 11:51:12 +01:00
gst1-plugins-base package/gstreamer1/gst1-plugins-base: add introspection support 2020-03-22 11:51:00 +01:00
gst1-plugins-bayer2rgb-neon remove the hook for creating the m4 directory 2020-02-04 14:11:39 +01:00
gst1-plugins-good package/gst1-plugins-good: drop QT5_VERSION_LATEST logic 2020-02-27 23:55:45 +01:00
gst1-plugins-ugly gst1-plugins-ugly: bump version to 1.16.2 2019-12-09 22:44:21 +01:00
gst1-python package/gstreamer1/gst1-python: fix libpython-dir path 2020-03-27 17:48:28 +01:00
gst1-rtsp-server package/gstreamer1/gst1-rtsp-server: add introspection support 2020-03-22 11:51:16 +01:00
gst1-shark package/gst1-shark: bump version to 0.6.1 2019-10-14 23:22:48 +02:00
gst1-vaapi gst1-vaapi: bump version to 1.16.2 2019-12-09 22:44:45 +01:00
gst1-validate package/gst1-validate: disable introspection 2020-03-07 23:41:20 +01:00
gstreamer1 package/gstreamer1/gstreamer1: add introspection support 2020-03-22 11:50:53 +01:00
gstreamer1-editing-services gstreamer1-editing-services: bump version to 1.16.2 2019-12-09 22:45:01 +01:00
gstreamer1-mm
Config.in package/gstreamer1/gst1-python: new package 2020-03-22 11:55:06 +01:00
gstreamer1.mk