<?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>218042</bug_id>
          
          <creation_ts>2020-10-21 11:53:40 -0700</creation_ts>
          <short_desc>[WPE] Build error with ENABLE_VIDEO=OFF</short_desc>
          <delta_ts>2021-10-25 14:29:20 -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>Media</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>232264</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=225310</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>DoNotImportToRadar</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>fjimenez</cc>
    
    <cc>psaavedra</cc>
    
    <cc>smoley</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1700301</commentid>
    <comment_count>0</comment_count>
    <who name="Bastian Krause">bst</who>
    <bug_when>2020-10-21 11:53:40 -0700</bug_when>
    <thetext>Various errors occur when building the WPE port via:

$ cmake -DPORT=WPE -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja -DCMAKE_BUILD_TYPE=Release -DANALYZERS=OFF -DDEBUG_FISSION=OFF -DENABLE_ACCELERATED_2D_CANVAS=OFF -DENABLE_ACCESSIBILITY=OFF -DENABLE_BUBBLEWRAP_SANDBOX=OFF -DENABLE_ENCRYPTED_MEDIA=OFF -DENABLE_GTKDOC=OFF -DENABLE_MEDIA_SOURCE=OFF -DENABLE_SHAREABLE_RESOURCE=ON -DENABLE_VIDEO=OFF -DENABLE_WEBDRIVER=ON -DENABLE_WEB_AUDIO=OFF -DENABLE_WEB_CRYPTO=ON -DENABLE_WPE_QT_API=OFF -DENABLE_XSLT=ON -DGCC_OFFLINEASM_SOURCE_MAP=OFF -DSHOULD_INSTALL_JS_SHELL=OFF -DSHOW_BINDINGS_GENERATION_PROGRESS=ON -DUSE_LD_GOLD=OFF -DUSE_OPENJPEG=OFF -DUSE_SYSTEMD=OFF -DUSE_THIN_ARCHIVES=ON -DUSE_WOFF2=OFF -DWTF_CPU_ARM64_CORTEXA53=OFF
$ ninja

Source/WebCore/editing/markup.cpp: In function ‘std::unique_ptr&lt;WebCore::Page&gt; WebCore::createPageForSanitizingWebContent()’:
Source/WebCore/editing/markup.cpp:181:22: error: ‘class WebCore::Settings’ has no member named ‘setMediaEnabled’; did you mean ‘setJavaEnabled’?
     page-&gt;settings().setMediaEnabled(false);
                      ^~~~~~~~~~~~~~~
                      setJavaEnabled

Source/WebCore/platform/graphics/GraphicsContext.cpp:1283:5: error: invalid use of incomplete type ‘class WebCore::MediaPlayer’
     player.playerPrivate()-&gt;paintCurrentFrameInContext(*this, destination);

Source/WebCore/page/Page.cpp:2049:23: error: ‘class WebCore::ChromeClient’ has no member named ‘playbackControlsMediaEngineChanged’
     chrome().client().playbackControlsMediaEngineChanged();

Source/WebCore/platform/graphics/displaylists/DisplayListItems.cpp:1260:20: error: invalid use of incomplete type ‘class WebCore::MediaPlayer’
     , m_identifier(player.identifier())


I guess most of them can be fixed with #if ENABLE(VIDEO) ... #endif.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707320</commentid>
    <comment_count>1</comment_count>
    <who name="Pablo Saavedra">psaavedra</who>
    <bug_when>2020-11-13 11:15:21 -0800</bug_when>
    <thetext>I can reproduce the issue too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808589</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2021-10-25 14:29:20 -0700</bug_when>
    <thetext>Thanks for reporting!

I am doing a round of fixes for ENABLE_VIDEO=OFF in bug #232264
both for the GTK and WPE ports — let&apos;s mark this bug as duplicate.

*** This bug has been marked as a duplicate of bug 232264 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>