agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
540 stars 414 forks source link

Raspi 4B Compile VLC with MMAL #978

Closed EasyIP2023 closed 2 years ago

EasyIP2023 commented 2 years ago

Description Got VLC compiled with userland libs, but when I go to execute VLC on the pi4 mmal seems to not exists after running vlc --list | grep mmal. Is there something that I am missing?

Steps to reproduce the issue:

  1. added DISABLE_VC4GRAPHICS = "1" somewhere in a config
  2. Create a libsdl2_%.bbappend recipe
    
    DEPENDS_append_raspberrypi4 = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'userland', d)}"
    PACKAGECONFIG_append_raspberrypi4 = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'gles2', d)}"
    PACKAGECONFIG_remove_raspberrypi4 = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'x11 wayland opengl', d)}"

CONFIGURE_FLAGS = "--disable-video-wayland --disable-video-x11 --disable-video-opengl" EXTRA_OECONF_append_raspberrypi4 = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', '${CONFIGURE_FLAGS}', d)}"

3. Create the ``vlc_%.bbappend`` recipe

PACKAGECONFIG_remove = "\ notify dvdread x264 \ dc1394 dv1394 live555 \ freetype fontconfig fluidsynth \ "

PACKAGECONFIG_append_raspberrypi4 = " mmal"


**Describe the results you received:**
I am able to compile VLC using [userland ](https://github.com/raspberrypi/userland) libs. VLC however does not contain the mmal flags that I need.

**Describe the results you expected:**
I expect to be able to start VLC with flags as such, but they don't exists.

--vout=mmal_vout --mmal-resize --mmal-isp --mmal-display=hdmi-2

EasyIP2023 commented 2 years ago

Nevermind figured it out. Ended up compiling from source on image, but these are the configure flags I used.

./configure --prefix=/usr --disable-mad --disable-a52 --disable-lua --enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-mmal --enable-gles2 --enable-run-as-root --enable-avcodec --disable-ogg

mmal-working