[x265] Compiling x265 with libvmaf is broken?

John Klimek jklimek at gmail.com
Tue May 12 14:42:18 CEST 2020


I'm having problems compiling x265 on Debian with libvmaf support.

I'm using the latest Git releases of both x265 and vmaf.

The first error is:

[ 66%] Built target hdr10plus-static

/usr/local/src/x265/source/encoder/api.cpp:36:10: fatal error:
libvmaf.h: No such file or directory

 #include "libvmaf.h"

The problem is that libvmaf.h is inside libvmaf directory so the
include should be "libvmaf/libvmaf.h".

If I fix that then I get a linker error:

[ 88%] Building CXX object CMakeFiles/cli.dir/abrEncApp.cpp.o

/usr/local/src/x265/source/abrEncApp.cpp: In member function =E2=80=98virtu=
al
void x265::PassEncoder::threadMain(=E2=80=99:

/usr/local/src/x265/source/abrEncApp.cpp:817:59: error: =E2=80=98struct
x265::CLIOptions=E2=80=99 has no member named =E2=80=98argCount=E2=80=99; d=
id you mean
=E2=80=98argCnt=E2=80=99?

                 api->vmaf_encoder_log(m_encoder, m_cliopt.argCount,
m_cliopt.argString, m_cliopt.param, vmafdata);

                                                           ^~~~~~~~

                                                           argCnt

I've tried using the latest non-Git versions of both vmaf and x265 but
it has similar problems.

Can anybody help?


More information about the x265-devel mailing list