编译x264

博客已搬家至360converter博客平台,此文链接:http://blog.360converter.com/archives/904
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
编译x264时,常常会遇到各种错误。下面是一些常见的错误及其解决方法: 1. 错误:error C2143: syntax error : missing ';' before 'type' 这个错误通常是由于缺少头文件引起的。可以尝试在源文件中添加以下头文件: ``` #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <string.h> #include <assert.h> ``` 2. 错误:error C2065: 'AV_CODEC_FLAG_GLOBAL_HEADER' : undeclared identifier 这个错误通常是由于缺少FFmpeg库引起的。可以尝试在项目属性中添加FFmpeg库的路径。 3. 错误:error C2061: syntax error : identifier 'x264_t' 这个错误通常是由于缺少头文件引起的。可以尝试在源文件中添加以下头文件: ``` #include "x264.h" ``` 4. 错误:error C1083: Cannot open include file: 'stdint.h': No such file or directory 这个错误通常是由于缺少标准C库头文件引起的。可以尝试在源文件中添加以下头文件: ``` #include <stdint.h> ``` 5. 错误:error LNK2019: unresolved external symbol _x264_param_default referenced in function _main 这个错误通常是由于缺少x264库引起的。可以尝试在项目属性中添加x264库的路径。 6. 错误:error C2039: 'b_cabac_init' : is not a member of 'x264_t' 这个错误通常是由于x264库版本不一致引起的。可以尝试升级或降级x264库版本。 7. 错误:error C2275: 'x264_picture_t' : illegal use of this type as an expression 这个错误通常是由于缺少头文件引起的。可以尝试在源文件中添加以下头文件: ``` #include "common/common.h" ``` 这些错误可能只是编译过程中的一小部分,但是通过这些例子,相信读者已经对如何解决编译x264时遇到的错误有了一定的了解。
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值