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

Joe Bacon joejbacon at gmail.com
Thu Jun 2 17:10:36 UTC 2022


Hi

libpython3.10.so.1.0 exists and is in /opt/python/3.10/lib as expected - it
is exactly where I specified it to be built when I built python. And i am
able to spawn new VMs from this version of python.
I have tried adding this path to all my search paths.
I use meson to build gst-python and i have also tried configuring it to
explicitly use that path i.e. -D libpython-dir=/opt/python/3.10/lib  (see
meson_options.txt)
I have also tried adding my env. variables 'exports' to bashrc and then
profile. no difference.
If I run python from my environment I can query the lib path and it
correctly points to /opt/python/3.10/lib
I've gone through the meson build files and ninja build files.
I can't find anything wrong. It feels so close to working!



On Thu, 2 Jun 2022 at 16:58, carl hansen <carlhansen1234 at gmail.com> wrote:

> 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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220602/9257b531/attachment.htm>


More information about the gstreamer-devel mailing list