Build gst-python 1.18 - linking failed - cannot open libpython shared object file?

carl hansen carlhansen1234 at gmail.com
Thu Jun 2 15:58:44 UTC 2022


On Thu, Jun 2, 2022 at 3:45 AM Joe Bacon via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
>
> Hi
> Please could someone help me... I believe this is a simple problem of a missing path environment variable but i'm at a loss...

I know the feeling.

> My environment variables seem correct from everything I've read.

Don't believe everything you read.


> Environment variables:
> export PATH=/opt/python/3.10/bin:/opt/opencv/bin:/opt/srt/bin:/opt/gstreamer/1.18/bin:$PATH
> export LD_LIBRARY_PATH=/opt/opencv/lib:/opt/srt/lib:/opt/gstreamer/1.18/lib/aarch64-linux-gnu:/opt/python/3.10/lib
> export LIBRARY_PATH=/opt/opencv/lib:/opt/srt/lib:/opt/gstreamer/1.18/lib/aarch64-linux-gnu:/opt/python/3.10/lib
> export CPPFLAGS='-I/opt/opencv/include -I/opt/srt/include -I/opt/gstreamer/1.18/include -I/home/sg/dev/environments/sg/include -I/opt/python/3.10/include'
> export PKG_CONFIG_PATH=/opt/opencv/lib/pkgconfig:/opt/srt/lib/pkgconfig:/opt/gstreamer/1.18/lib/aarch64-linux-gnu/pkgconfig:/opt/python/3.10/lib/pkgconfig
> export PYTHONPATH=~/dev/environments/sg/lib/python3.10/site-packages
> export GI_TYPELIB_PATH=/opt/gstreamer/1.18/lib/aarch64-linux-gnu/girepository-1.0
> export GST_PLUGIN_PATH=/opt/gstreamer/1.18/lib/aarch64-linux-gnu/gstreamer-1.0
>
>

......

> ninja: Entering directory `build/'
> [4/5] Installing files.
> /home/sg/dev/environments/sg/bin/python3: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory
> FAILED: meson-install

First find libpython3.10.so.1.0 on your system. Mine was in /usr/lib64/
Try adding more to those LiBRARY envs  and/or look in the venv sq ,
just a suggestion... Who knows?


More information about the gstreamer-devel mailing list