mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rpicamsrc: fix "Could not find component vc.ril.camera" on recent raspios
Make extra sure all the required mmal libs such as libmmal_vc_client.so actually get linked and stay linked. Otherwise the above error happens it seems. buster (10.4) with meson 0.55 and pi ref 2020-05-27 pi-gen, 825107f04027269db77426046f5085475b1ea22f, stage5 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/682>
This commit is contained in:
parent
428c545e06
commit
477eba2dd7
1 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,8 @@ rpi_warn_flags = cc.get_supported_arguments([
|
||||||
'-Wno-stringop-truncation',
|
'-Wno-stringop-truncation',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
rpi_link_flags = cc.get_supported_link_arguments(['-Wl,--no-as-needed'])
|
||||||
|
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
|
|
||||||
enums = gnome.mkenums_simple('gstrpicam-enum-types',
|
enums = gnome.mkenums_simple('gstrpicam-enum-types',
|
||||||
|
@ -67,12 +69,13 @@ enums = gnome.mkenums_simple('gstrpicam-enum-types',
|
||||||
identifier_prefix: 'GstRpiCamSrc',
|
identifier_prefix: 'GstRpiCamSrc',
|
||||||
symbol_prefix: 'gst_rpi_cam_src')
|
symbol_prefix: 'gst_rpi_cam_src')
|
||||||
|
|
||||||
# we might need '-Wl,--no-as-needed' or b_asneeded=false on ubuntu, tbd
|
|
||||||
gstrpicamsrc = library('gstrpicamsrc',
|
gstrpicamsrc = library('gstrpicamsrc',
|
||||||
rpicamsrc_sources, enums,
|
rpicamsrc_sources, enums,
|
||||||
c_args: [gst_plugins_good_args, rpi_inc_args, rpi_warn_flags],
|
c_args: [gst_plugins_good_args, rpi_inc_args, rpi_warn_flags],
|
||||||
|
link_args: rpi_link_flags,
|
||||||
include_directories: [configinc, libsinc],
|
include_directories: [configinc, libsinc],
|
||||||
dependencies: [gst_dep, gstbase_dep, gstvideo_dep] + mmal_deps,
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep] + mmal_deps,
|
||||||
|
override_options: ['b_asneeded=false'],
|
||||||
install_dir: plugins_install_dir,
|
install_dir: plugins_install_dir,
|
||||||
install: true)
|
install: true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue