当前位置 : 主页 > 编程语言 > c语言 >

ERROR: x265 not found using pkg-config

来源:互联网 收集:自由互联 发布时间:2023-08-25
问题 ERROR: libx264 not found /tmp/ffconf.XPnQkpVd.c:1:10: fatal error: x264.h: No such file or directory 1 | #include x264.h | ^~~~~~~~compilation terminated. ERROR: x265 not found using pkg-config error: #error "unsatisfied condition: X

问题

ERROR: libx264 not found

/tmp/ffconf.XPnQkpVd.c:1:10: fatal error: x264.h: No such file or directory
    1 | #include <x264.h>
      |          ^~~~~~~~
compilation terminated.

ERROR: x265 not found using pkg-config

 error: #error "unsatisfied condition: X264_MPEG2"
    3 | #error "unsatisfied condition: X264_MPEG2"
      |  ^~~~~
check_pkg_config x265 x265.h x265_api_get
pkg-config --exists --print-errors x265
Package x265 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x265.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x265', required by 'virtual:world', not found
ERROR: x265 not found using pkg-config

解决

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

将x264和x265的pkgconfig文件位置添加到环境变量中,重新编译FFmpeg

上一篇:Switch语句使用方法和注意点
下一篇:没有了
网友评论