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

使用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 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘