Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Failed to load libmmal.so from rpi-userland package via buildroot toolchain on raspberry pi 4
@ 2020-03-28  7:09 iman ahmadvand
  2020-03-28 10:31 ` Peter Seiderer
  0 siblings, 1 reply; 10+ messages in thread
From: iman ahmadvand @ 2020-03-28  7:09 UTC (permalink / raw)
  To: buildroot

Hi everyone.
It seems that loading the MMAL interface shared libraries from rpi-userland
package via simple dlopen is not possible, or more specific, the packages
or binaries such as VLC or VLC codec plugin (libavcodec_plugin) could not
load the libavcodec from FFmpeg which in turn depends on libmmal*.so

The steps to reproduce(with BR2_PACKAGE_RPI_USERLAND enabled,
BR2_STRIP_strip disabled, BR2_OPTIMIZE_0 enabled):
git clone git://git.busybox.net/buildroot buildroot && cd buildroot && git
checkout 2019.11.01
make raspberrypi4_defconfig && make all

Then in this image try to run a simple c routine with dlopen(), if you do
so, for example, ./dltest /usr/lib/libmmal.so you will end up with:

symbol 'mmal_port_payload_alloc': can't resolve symbol
symbol 'mmal_port_payload_free': can't resolve symbol
symbol 'mmal_port_log_category': can't resolve symbol

Or for another proof of the issue, you can run VLC with X11 to play an
MPEG-4 video, and you will  end up with VLC could not load the codec module
because of the same thing:

main debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
main warning: cannot read /usr/lib/vlc/plugins/plugins.dat: No such
file or directory
main debug: recursively browsing `/usr/lib/vlc/plugins'
main warning: cannot load module
`/usr/lib/vlc/plugins/codec/libavcodec_plugin.so' ((null)

Any idea about this?

Best Regards.
IMAN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200328/edb4f076/attachment.html>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-07 13:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-28  7:09 [Buildroot] Failed to load libmmal.so from rpi-userland package via buildroot toolchain on raspberry pi 4 iman ahmadvand
2020-03-28 10:31 ` Peter Seiderer
2020-03-28 11:05   ` daggs
2020-03-28 14:28     ` Peter Seiderer
2020-03-28 17:04       ` daggs
2020-03-28 18:56         ` Peter Seiderer
2020-03-28 21:26           ` Peter Seiderer
2020-03-28 12:44   ` iman ahmadvand
2020-03-28 14:34     ` Peter Seiderer
2020-04-07 13:14       ` iman ahmadvand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox