new libx265 not found in ffmpeg configure:

Issue #212 resolved
rossi mario created an issue

new libx265 not found in ffmpeg configure:

ffmpeg config.log:

#!
check_pkg_config x265 x265.h x265_api_get
pkg-config --exists --print-errors x265
check_func_headers x265.h x265_api_get -lx265
check_ld cc -lx265
check_cc
BEGIN /tmp/ffconf.50xKqPZL.c

    1 #include <x265.h>
    2 long check_x265_api_get(void) { return (long) x265_api_get; }
    3 int main(void) { return 0; }

END /tmp/ffconf.50xKqPZL.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I../static/include -g -O3 -march=native -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -std=c99 -fomit-frame-pointer -pthread -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/freetype2 -I/usr/include/p11-kit-1 -I/usr/include/schroedinger-1.0 -I/usr/include/orc-0.4 -I/home/mc/develop-deb/ffmpeg-git/ffmpeg2/static/include -c -o /tmp/ffconf.oJ4D4RLX.o /tmp/ffconf.50xKqPZL.c
In file included from /tmp/ffconf.50xKqPZL.c:1:0:
/usr/include/x265.h:103:5: error: unknown type name 'bool'

    bool bScenecut;

ERROR: x265 not found using pkg-config

x265 changes: analysis: Dump/reuse scenecut and satdCost of lowres in analysis save and loa ​https://bitbucket.org/multicoreware/x265/commits/e2e507ffe752d6c193a219b242c433bdc55f39f7

also reported at https://trac.ffmpeg.org/ticket/5050#ticket

Comments (6)

  1. rossi mario reporter

    adding

    #!
    
    <include stdbool.h>
    

    in x265.h

    allows the configuration and compilation of ffmpeg

  2. Hendrik

    Instead of adding stdbool.h, it would seem safer to switch to simple ints for those boolean properties. stdbool.h may not be universally portable.

  3. Log in to comment