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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>225310</bug_id>
          
          <creation_ts>2021-05-03 08:58:48 -0700</creation_ts>
          <short_desc>[Stable][WPE] 2.32 build Error with ENABLE_VIDEO=OFF/ENABLE_VIDEO_TRACK=OFF</short_desc>
          <delta_ts>2021-05-05 02:37:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=218042</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=196811</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bastian Krause">bst</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1756196</commentid>
    <comment_count>0</comment_count>
    <who name="Bastian Krause">bst</who>
    <bug_when>2021-05-03 08:58:48 -0700</bug_when>
    <thetext>I&apos;m building wpewebkit 2.32.0 via meta-webkit@4cedcb6 (top of main branch) with

  PACKAGECONFIG_remove = &quot;video&quot;

That means adding

  -DENABLE_VIDEO=OFF -DENABLE_VIDEO_TRACK=OFF

leads to these build failures:

In file included from [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h:30,
                 from [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp:30:
[...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/wpewebkit-2.32.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1310:39: error: &apos;MediaPlayer&apos; has not been declared
 1310 |     virtual bool copyTextureFromMedia(MediaPlayer&amp;, PlatformGLObject texture, GCGLenum target, GCGLint level, GCGLenum internalFormat, GCGLenum format, GCGLenum type, bool premultiplyAlpha, bool flipY) = 0;
      |                                       ^~~~~~~~~~~
In file included from [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp:30:
[...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h:469:10: error: &apos;bool WebCore::GraphicsContextGLOpenGL::copyTextureFromMedia(WebCore::MediaPlayer&amp;, PlatformGLObject, GCGLenum, GCGLint, GCGLenum, GCGLenum, GCGLenum, bool, bool)&apos; marked &apos;final&apos;, but is not virtual
  469 |     bool copyTextureFromMedia(MediaPlayer&amp;, PlatformGLObject texture, GCGLenum target, GCGLint level, GCGLenum internalFormat, GCGLenum format, GCGLenum type, bool premultiplyAlpha, bool flipY) final;
      |          ^~~~~~~~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756200</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-03 09:14:25 -0700</bug_when>
    <thetext>The ENABLE_VIDEO_TRACK CMake option was removed BTW. It is implied by VIDEO now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756219</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-03 10:15:51 -0700</bug_when>
    <thetext>This code was heavily updated in ToT. I don&apos;t see how the VIDEO=OFF build would fail there. Someone will need to fix this specific issue in the stable branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756619</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-05-04 12:03:37 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #2)
&gt; This code was heavily updated in ToT. I don&apos;t see how the VIDEO=OFF build
&gt; would fail there. Someone will need to fix this specific issue in the stable
&gt; branch.

Backporting the fix from bug #225316 to the 2.32 release branch fixes
the build with ENABLE_VIDEO=OFF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756622</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-04 12:08:37 -0700</bug_when>
    <thetext>(In reply to Bastian Krause from comment #0)
&gt; I&apos;m building wpewebkit 2.32.0 via meta-webkit@4cedcb6 (top of main branch)
&gt; with
&gt; 
&gt;   PACKAGECONFIG_remove = &quot;video&quot;
&gt; 
&gt; That means adding
&gt; 
&gt;   -DENABLE_VIDEO=OFF -DENABLE_VIDEO_TRACK=OFF
&gt; 
&gt; leads to these build failures:
&gt; 
&gt; In file included from
&gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; GraphicsContextGLOpenGL.h:30,
&gt;                  from
&gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; GraphicsContextGLOpenGLCommon.cpp:30:
&gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1310:
&gt; 39: error: &apos;MediaPlayer&apos; has not been declared
&gt;  1310 |     virtual bool copyTextureFromMedia(MediaPlayer&amp;, PlatformGLObject
&gt; texture, GCGLenum target, GCGLint level, GCGLenum internalFormat, GCGLenum
&gt; format, GCGLenum type, bool premultiplyAlpha, bool flipY) = 0;
&gt;       |                                       ^~~~~~~~~~~
&gt; In file included from
&gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; GraphicsContextGLOpenGLCommon.cpp:30:
&gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; GraphicsContextGLOpenGL.h:469:10: error: &apos;bool
&gt; WebCore::GraphicsContextGLOpenGL::copyTextureFromMedia(WebCore::MediaPlayer&amp;,
&gt; PlatformGLObject, GCGLenum, GCGLint, GCGLenum, GCGLenum, GCGLenum, bool,
&gt; bool)&apos; marked &apos;final&apos;, but is not virtual
&gt;   469 |     bool copyTextureFromMedia(MediaPlayer&amp;, PlatformGLObject
&gt; texture, GCGLenum target, GCGLint level, GCGLenum internalFormat, GCGLenum
&gt; format, GCGLenum type, bool premultiplyAlpha, bool flipY) final;
&gt;       |          ^~~~~~~~~~~~~~~~~~~~

But bug 225316 doesn&apos;t fix any of that ^^^
I&apos;m confused now :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756629</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-05-04 12:37:35 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #4)
&gt; (In reply to Bastian Krause from comment #0)
&gt; &gt; I&apos;m building wpewebkit 2.32.0 via meta-webkit@4cedcb6 (top of main branch)
&gt; &gt; with
&gt; &gt; 
&gt; &gt;   PACKAGECONFIG_remove = &quot;video&quot;
&gt; &gt; 
&gt; &gt; That means adding
&gt; &gt; 
&gt; &gt;   -DENABLE_VIDEO=OFF -DENABLE_VIDEO_TRACK=OFF
&gt; &gt; 
&gt; &gt; leads to these build failures:
&gt; &gt; 
&gt; &gt; In file included from
&gt; &gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; &gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; &gt; GraphicsContextGLOpenGL.h:30,
&gt; &gt;                  from
&gt; &gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; &gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; &gt; GraphicsContextGLOpenGLCommon.cpp:30:
&gt; &gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; &gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1310:
&gt; &gt; 39: error: &apos;MediaPlayer&apos; has not been declared
&gt; &gt;  1310 |     virtual bool copyTextureFromMedia(MediaPlayer&amp;, PlatformGLObject
&gt; &gt; texture, GCGLenum target, GCGLint level, GCGLenum internalFormat, GCGLenum
&gt; &gt; format, GCGLenum type, bool premultiplyAlpha, bool flipY) = 0;
&gt; &gt;       |                                       ^~~~~~~~~~~
&gt; &gt; In file included from
&gt; &gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; &gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; &gt; GraphicsContextGLOpenGLCommon.cpp:30:
&gt; &gt; [...]/build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/wpewebkit/2.32.0-r0/
&gt; &gt; wpewebkit-2.32.0/Source/WebCore/platform/graphics/opengl/
&gt; &gt; GraphicsContextGLOpenGL.h:469:10: error: &apos;bool
&gt; &gt; WebCore::GraphicsContextGLOpenGL::copyTextureFromMedia(WebCore::MediaPlayer&amp;,
&gt; &gt; PlatformGLObject, GCGLenum, GCGLint, GCGLenum, GCGLenum, GCGLenum, bool,
&gt; &gt; bool)&apos; marked &apos;final&apos;, but is not virtual
&gt; &gt;   469 |     bool copyTextureFromMedia(MediaPlayer&amp;, PlatformGLObject
&gt; &gt; texture, GCGLenum target, GCGLint level, GCGLenum internalFormat, GCGLenum
&gt; &gt; format, GCGLenum type, bool premultiplyAlpha, bool flipY) final;
&gt; &gt;       |          ^~~~~~~~~~~~~~~~~~~~
&gt; 
&gt; But bug 225316 doesn&apos;t fix any of that ^^^
&gt; I&apos;m confused now :)

The fix from bug #225316 was definitely needed for ENABLE_VIDEO=OFF,
maybe the reporter has other build options enabled that affect the
outcome. My test build was a clean done with:

  % CC=clang CXX=clang++ cmake -GNinja -DPORT=WPE \
      -DCMAKE_BUILD_TYPE=Release -DENABLE_VIDEO=OFF -S. \
      -Bbuild-wpe 
  % ninja -C build-wpe

In my case I am working on top of the release branch, which *also* has
a backport of the fix for bug #224198 — both are needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756630</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-05-04 12:39:54 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #5)

&gt; The fix from bug #225316 was definitely needed for ENABLE_VIDEO=OFF,
&gt;
&gt; […]
&gt; 
&gt; In my case I am working on top of the release branch, which *also* has
&gt; a backport of the fix for bug #224198 — both are needed.

I went ahead and merged the fix from bug #225316 as r276977 in the
release branch; this issue will be gone in 2.32.1 which will be released
later this week :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756875</commentid>
    <comment_count>7</comment_count>
    <who name="Bastian Krause">bst</who>
    <bug_when>2021-05-05 02:37:44 -0700</bug_when>
    <thetext>Awesome, thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>