How can I resolve the x265 not found error when using pkg-config?

更新于
2026-10-10 09:38:35
2阅读来源:SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计171个文字,预计阅读时间需要1分钟。

How can I resolve the x265 not found error when using pkg-config?

问题:ERROR: libx264 not found /tmp/ffconf.XPnQkpVd.c:1:10: fatal error: x264.h: No such file or directory

简化内容:无法找到libx264库和头文件。

问题

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

How can I resolve the x265 not found error when using pkg-config?

本文共计171个文字,预计阅读时间需要1分钟。

How can I resolve the x265 not found error when using pkg-config?

问题:ERROR: libx264 not found /tmp/ffconf.XPnQkpVd.c:1:10: fatal error: x264.h: No such file or directory

简化内容:无法找到libx264库和头文件。

问题

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

How can I resolve the x265 not found error when using pkg-config?