[FFmpeg-devel] configure: ERROR: x265 not found using pkg-config

Submitted by James Almer on Nov. 12, 2017, 8:10 p.m.

Details

Message ID 32cbbe40-2338-fa53-2654-9c3e5c45a6b6@gmail.com
State New
Headers show

Commit Message

James Almer Nov. 12, 2017, 8:10 p.m.
On 11/12/2017 4:35 PM, Helmut K. C. Tessarek wrote:
> I get the following error during configure:
> 
> ERROR: x265 not found using pkg-config
> 
> My last compile run (3 days ago) worked perfectly. Somebody must have
> changed the configure script.
> 
> Cheers,
>   K. C.
> 

Does this fix it for you?


If not, you'll have to give me more info, like the config.log file, but
for that open a trac ticket.

Comments

Helmut K. C. Tessarek Nov. 12, 2017, 8:40 p.m.
On 2017-11-12 15:10, James Almer wrote:
> Does this fix it for you?

Unfortunately it did not. As requested, here the ticket:

https://trac.ffmpeg.org/ticket/6830

Cheers,
 K. C.

Patch hide | download patch | download mbox

diff --git a/configure b/configure
index 2f026c45bc..2a7b846a6d 100755
--- a/configure
+++ b/configure
@@ -1293,8 +1293,8 @@  test_pkg_config(){
 check_pkg_config(){
     log check_pkg_config "$@"
     name="$1"
-    test_pkg_config "$@" &&
-        eval add_cflags \$${name}_cflags
+    test_pkg_config "$@" || return 1
+    eval add_cflags \$${name}_cflags
 }

 check_exec(){