ange_li 2018-12-30 20:44 采纳率: 0%
浏览 6074

使用ubuntu编译 ffmpeg 时报错:ERROR: x265 not found using pkg-config

config.log 如下:不知道怎么弄了,望大牛指导

usr/local/include/x264.h:40:4: warning: #warning You must include stdint.h or inttypes.h before x264.h [-Wcpp]
# warning You must include stdint.h or inttypes.h before x264.h
^~~~~~~
/tmp/ffconf.hRcv9aEw/test.c:3:2: error: #error "unsatisfied condition: X264_MPEG2"
#error "unsatisfied condition: X264_MPEG2"
^~~~~
require_pkg_config libx265 x265 x265.h x265_api_get
check_pkg_config libx265 x265 x265.h x265_api_get
test_pkg_config libx265 x265 x265.h x265_api_get
pkg-config --exists --print-errors x265
check_func_headers x265.h x265_api_get -I/usr/local/include -L/usr/local/lib -lx265
test_ld cc -I/usr/local/include -L/usr/local/lib -lx265
test_cc -I/usr/local/include -L/usr/local/lib
BEGIN /tmp/ffconf.hRcv9aEw/test.c
1 #include
2 #include
3 long check_x265_api_get(void) { return (long) x265_api_get; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_x265_api_get) & 0xFFFF;
6 return ret; }
END /tmp/ffconf.hRcv9aEw/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c11 -fPIC -pthread -I/usr/local/include -I/usr/local/include -L/usr/local/lib -c -o /tmp/ffconf.hRcv9aEw/test.o /tmp/ffconf.hRcv9aEw/test.c
In file included from /tmp/ffconf.hRcv9aEw/test.c:1:0:
/usr/local/include/x265.h:673:5: error: unknown type name 'x265_param'
x265_param* zoneParam;
^~~~~~~~~~
ERROR: x265 not found using pkg-config

  • 写回答

1条回答 默认 最新

  • _ZGq 2018-12-30 13:16
    关注

    第三行 # warning You must include stdint.h or inttypes.h before x264.h
    这句话是说,你在使用< x264.h>之前必须包括< stdint.h>或< inttypes.h>。
    我估计这就直接导致了编译器报错:倒数第三行 /usr/local/include/x265.h:673:5: error: unknown type name 'x265_param' 。
    它的意思是: x265_param不是一个类型名。

    评论

报告相同问题?

悬赏问题

  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3