basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
40 stars 10 forks source link

Install issue: Dynamic linking to pylon not working on Debian based system #93

Open frederiksemmel opened 6 months ago

frederiksemmel commented 6 months ago

Describe the bug I followed the install instructions for pylon 7.4 and for the gst-plugin-pylon, but the gstreamer plugin failed to find the pylon libs:

gst-inspect-1.0 pylonsrc

(gst-plugin-scanner:6381): GStreamer-WARNING **: 11:07:44.922: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpylon.so': libGCBase_gcc_v3_1_Basler_pylon.so: cannot open shared object file: No such file or directory
No such element or plugin 'pylonsrc

I tried both the deb package and the tar package for pylon 7.4, same issue with both.

The fix was to set export LD_LIBRARY_PATH=/opt/pylon/lib:$LD_LIBRARY_PATH before building gst-plugin-pylon

I think a hint to the issue could be this part of the output of meson setup builddir --prefix /usr/:

Run-time dependency pylon (modules: pylon::pylon) found: YES 7.4.0
WARNING: Please do not define rpath with a linker argument, use install_rpath
or build_rpath properties instead.
This will become a hard error in a future Meson release.

To Reproduce Install pylon 7.4 and gst-plugin-pylon following the installation guides.

Expected behavior Installation should work, or, if it was my error, the missing step should be better highlighted.

Environment

thiesmoeller commented 5 months ago

... We see same issue on aarch64 Ubuntu 22 now