<div dir="ltr">Hi<br>Please could someone help me... I believe this is a simple problem of a missing path environment variable but i'm at a loss...<div>My environment variables seem correct from everything I've read. The meson output looks good too - appearing to find all the python dependencies correctly. <br>I am using a 'built from source' Python 3.10 and subsequent virtual environment (called 'sg') - this all appears to be working correctly (have been using with opencv)</div><div>I am working on an nVidia Jetson Xavier NX, Ubuntu 18.04. (system python is 3.6, system gstreamer is 1.14)</div><div>I generally build my main dependencies from source and install to /opt/ to keep everything self contained and away from system versions. </div><div><div><b><div><b><br></b></div>Environment variables:</b><br><font face="monospace">export PATH=/opt/python/3.10/bin:/opt/opencv/bin:/opt/srt/bin:/opt/gstreamer/1.18/bin:$PATH<br>export LD_LIBRARY_PATH=/opt/opencv/lib:/opt/srt/lib:/opt/gstreamer/1.18/lib/aarch64-linux-gnu:/opt/python/3.10/lib<br>export LIBRARY_PATH=/opt/opencv/lib:/opt/srt/lib:/opt/gstreamer/1.18/lib/aarch64-linux-gnu:/opt/python/3.10/lib<br>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'<br>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<br>export PYTHONPATH=~/dev/environments/sg/lib/python3.10/site-packages<br>export GI_TYPELIB_PATH=/opt/gstreamer/1.18/lib/aarch64-linux-gnu/girepository-1.0<br>export GST_PLUGIN_PATH=/opt/gstreamer/1.18/lib/aarch64-linux-gnu/gstreamer-1.0</font><br><br><b><br></b><div><b>CLI output:</b><br><font face="monospace">(sg) sg@sg-cortex:~/dev/gstreamer/gst-python$ meson build/ -D buildtype=release -D prefix=/opt/gstreamer/1.18/<br>The Meson build system<br>Version: 0.62.1<br>Source dir: /home/sg/dev/gstreamer/gst-python<br>Build dir: /home/sg/dev/gstreamer/gst-python/build<br>Build type: native build<br>Project name: gst-python<br>Project version: 1.18.6.1<br>C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0")<br>C linker for the host machine: cc ld.bfd 2.30<br>C++ compiler for the host machine: c++ (gcc 7.5.0 "c++ (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0")<br>C++ linker for the host machine: c++ ld.bfd 2.30<br>Host machine cpu family: aarch64<br>Host machine cpu: aarch64<br>Found pkg-config: /usr/bin/pkg-config (0.29.1)<br>Run-time dependency gstreamer-1.0 found: YES 1.18.6.1<br>Run-time dependency gstreamer-base-1.0 found: YES 1.18.6.1<br>Run-time dependency gmodule-2.0 found: YES 2.56.4<br>Run-time dependency pygobject-3.0 found: YES 3.26.1<br>Program python3 found: YES (/home/sg/dev/environments/sg/bin/python3)<br>Run-time dependency python-3.10-embed found: YES 3.10<br>WARNING: You should add the boolean check kwarg to the run_command call.<br>         It currently defaults to false,<br>         but it will default to true in future releases of meson.<br>         See also: <a href="https://github.com/mesonbuild/meson/issues/9300">https://github.com/mesonbuild/meson/issues/9300</a><br>Message: pylib_loc = /opt/python/3.10/lib<br>Message: python_abi_flags =<br>Message: pylib_loc = /opt/python/3.10/lib<br>Message: pygobject overrides directory = /opt/gstreamer/1.18/lib/python3.10/site-packages/gi/overrides<br>Configuring config.h using configuration<br>Program pkg-config found: YES (/usr/bin/pkg-config)<br>Run-time dependency gstreamer-plugins-base-1.0 found: YES 1.18.6.1<br>Build targets in project: 2<br>NOTICE: Future-deprecated features used:<br> * 0.56.0: {'meson.build_root', 'dependency.get_pkgconfig_variable'}<br><br>gst-python 1.18.6.1<br><br>  User defined options<br>    buildtype: release<br>    prefix   : /opt/gstreamer/1.18/<br><br>Found ninja-1.8.2 at /usr/bin/ninja<br>(sg) sg@sg-cortex:~/dev/gstreamer/gst-python$ sudo ninja -C build/ install<br>[sudo] password for sg:<br>ninja: Entering directory `build/'<br>[4/5] Installing files.<br>/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<br>FAILED: meson-install<br>/home/sg/dev/environments/sg/bin/meson install --no-rebuild<br>ninja: build stopped: subcommand failed.</font><br></div></div></div></div>