<?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>224089</bug_id>
          
          <creation_ts>2021-04-01 17:50:58 -0700</creation_ts>
          <short_desc>[CMake][GStremer] Fails to build if OpenH264 is not present</short_desc>
          <delta_ts>2021-04-02 10:11:43 -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 Nightly 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=202538</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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>annulen</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
    
    <cc>ryuan.choi</cc>
    
    <cc>sergio</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1746347</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-04-01 17:50:58 -0700</bug_when>
    <thetext>In r275275 optional support for using OpenH264 was added.

However, this seems to be failing to build when OpenH264 is not present because of CMake trying to link with a library that is not defined

See:

-- Enabled features:
--  ENABLE_ACCESSIBILITY .......................... ON
--  ENABLE_BUBBLEWRAP_SANDBOX                       OFF
--  ENABLE_ENCRYPTED_MEDIA ........................ ON
--  ENABLE_GTKDOC                                   OFF
--  ENABLE_MEDIA_SOURCE ........................... ON
--  ENABLE_MINIBROWSER                              ON
--  ENABLE_VIDEO .................................. ON
--  ENABLE_WEBDRIVER                                ON
--  ENABLE_WEB_AUDIO .............................. ON
--  ENABLE_WEB_CRYPTO                               ON
--  ENABLE_WPE_QT_API ............................. OFF
--  ENABLE_XSLT                                     ON
--  USE_LCMS ...................................... ON
--  USE_OPENJPEG                                    ON
--  USE_SOUP2 ..................................... ON
--  USE_SYSTEMD                                     ON
--  USE_WOFF2 ..................................... ON
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Openh264_LIBRARY (ADVANCED)
    linked by target &quot;webrtc&quot; in directory /home/buildbot/wpewebkit/nightly/wpe-linux-64-packaging-nigthly-ubuntu1804/build/Source/ThirdParty/libwebrtc
-- Configuring incomplete, errors occurred!
See also &quot;/home/buildbot/wpewebkit/nightly/wpe-linux-64-packaging-nigthly-ubuntu1804/build/WebKitBuild/Release/CMakeFiles/CMakeOutput.log&quot;.
See also &quot;/home/buildbot/wpewebkit/nightly/wpe-linux-64-packaging-nigthly-ubuntu1804/build/WebKitBuild/Release/CMakeFiles/CMakeError.log&quot;.
FAILED: build.ninja 

^^ https://build.webkit.org/#/builders/52/builds/56/steps/8/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746350</commentid>
    <comment_count>1</comment_count>
      <attachid>424970</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-04-01 17:58:52 -0700</bug_when>
    <thetext>Created attachment 424970
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746413</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-04-02 01:20:01 -0700</bug_when>
    <thetext>Committed r275409: &lt;https://commits.webkit.org/r275409&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424970.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746489</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-04-02 07:32:42 -0700</bug_when>
    <thetext>Will this still be needed in the gst-webrtc implementation?

I wonder what the goal is. It looks like it is not compatible with noopenh264, right? If it was, and if it would still be needed with gst-webrtc, then I could look into packaging noopenh264 for Fedora, to allow this to build, but that requires runtime checks in the application to make sure you&apos;re running against real OpenH264 and not noopenh264.

Why is it preferred over x264enc?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746555</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-04-02 10:11:43 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #3)
&gt; Will this still be needed in the gst-webrtc implementation?
&gt; 
&gt; I wonder what the goal is. It looks like it is not compatible with
&gt; noopenh264, right? If it was, and if it would still be needed with
&gt; gst-webrtc, then I could look into packaging noopenh264 for Fedora, to allow
&gt; this to build, but that requires runtime checks in the application to make
&gt; sure you&apos;re running against real OpenH264 and not noopenh264.
&gt; 
&gt; Why is it preferred over x264enc?

This is for libwebrtc, which is not shipped on the tarballs, so I guess is not something a distributor should worry for the moment.

I don&apos;t know why is preferred. Maybe ask on bug 202538 for that..</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>424970</attachid>
            <date>2021-04-01 17:58:52 -0700</date>
            <delta_ts>2021-04-02 01:20:03 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-224089-20210402025850.patch</filename>
            <type>text/plain</type>
            <size>1374</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</att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