<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10567</bug_id>
          
          <creation_ts>2016-11-01 19:10:26 +0000</creation_ts>
          <short_desc>Unable to build gstreamer1.0-plugins-bad without X11 and Wayland for RaspberryPi3 Machine</short_desc>
          <delta_ts>2016-11-03 15:12:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>multimedia</component>
          <version>2.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karim">karim_atiki</reporter>
          <assigned_to name="Jussi Kukkonen">jku</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67829</commentid>
    <comment_count>0</comment_count>
    <who name="Karim">karim_atiki</who>
    <bug_when>2016-11-01 19:10:26 +0000</bug_when>
    <thetext>Hi,

I&apos;m facing an issue with Poky (both Krogoth and Master) and using a RaspberryPi3 as target machine.
Using a fresh minimal checkout, I just tried to build &quot;gstreamer1.0-plugins-bad&quot; without X11 and Wayland.
So in my local.conf:

DISTRO_FEATURES_remove = &quot; X11 wayland&quot;

Wich is a very common configuration for Rpi when using Qt based applications...

Build Configuration:

BB_VERSION        = &quot;1.32.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Debian-8.2&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;raspberrypi3&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.2&quot;
TUNE_FEATURES     = &quot;arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7&quot;
TARGET_FPU        = &quot;hard&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;master:ef627ab364d52fe19994c94c1a78fbe21620a32c&quot;
meta-raspberrypi  = &quot;master:de016ceef63028f5578191785c50529695f76a1a&quot;
meta-oe           
meta-multimedia   = &quot;master:8ba31c9ba214802b1305aabbc0be0353cba0bc3e


I simply launched:

bitbake -k  gstreamer1.0-plugins-bad

I always get a failure during the do_compile() task:

undefined reference to graphics_get_display_size().


graphics_get_display_size() is a function from libbcm_host, but this library is detected and installed with USERLAND.

I posted this issue in yocto mailing list and it appears that:

the do_configure log for gstreamer1.0-plugins-bad does contain:

configure: WARNING: X or Wayland is required for OpenGL support

configure.ac in gst-plugins-bad-1.8.3 contains:

    dnl EGL
    if test &quot;x$HAVE_EGL&quot; = &quot;xno&quot;; then
      if test &quot;x$HAVE_GL&quot; = &quot;xno&quot;; then
        AC_MSG_WARN([Building requires either EGL or GLX for OpenGL support])
      fi
    else
      if test &quot;x$NEED_EGL&quot; != &quot;xno&quot;; then
        if test &quot;x$HAVE_WINDOW_WAYLAND&quot; = &quot;xyes&quot; -o &quot;x$HAVE_WINDOW_X11&quot; = &quot;xyes&quot; -o &quot;x$HAVE_WINDOW_DISPMANX&quot; = &quot;xyes&quot;; then
          GL_LIBS=&quot;$GL_LIBS -lEGL $EGL_LIBS&quot;
          GL_CFLAGS=&quot;$GL_CFLAGS $EGL_CFLAGS&quot;
          USE_EGL=yes
        fi
      fi
    fi
    ;;

In config.status EGL_LIBS contains &quot;-lbcm_host -lvcos
-lvchiq_arm&quot;, however GL_LIBS only contains &quot;-lGLESv2&quot;. So I&apos;d say
EGL_LIBS is not being included in to GL_LIBS because
HAVE_WINDOW_WAYLAND, HAVE_WINDOW_X11 and HAVE_WINDOW_DISPMAX are all
false.


I&apos;ve always built images on Rpi2 (and Fido) without X11 and Wayland.
I don&apos;t understand whiy it fails now.

Karim</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67908</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-11-03 15:12:03 +0000</bug_when>
    <thetext>This seems to be a meta-raspberry bug and that layer does not use this bugzilla so I&apos;m closing this. The layer README should mention a bug reporting place. Please reopen if I&apos;ve misunderstood.


Also Khem seems to have a fix on the yocto list:
https://www.mail-archive.com/yocto@yoctoproject.org/msg32052.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>