c++ - FFMPEG 库的 libavutil 文件未在 iOS Xcode 项目中编译
问题描述
我在我的 xcode 项目中使用了 FFMPEG 库的一些文件。当我尝试运行应用程序时,我收到以下错误:
#if !HAVE_CBRT
static av_always_inline double cbrt(double x)
{
return x < 0 ? -pow(-x, 1.0 / 3.0) : pow(x, 1.0 / 3.0);
}
#endif /* HAVE_CBRT */
#if !HAVE_CBRTF
static av_always_inline float cbrtf(float x)
{
return x < 0 ? -powf(-x, 1.0 / 3.0) : powf(x, 1.0 / 3.0);
}
#endif /* HAVE_CBRTF */
#if !HAVE_COPYSIGN
static av_always_inline double copysign(double x, double y)
{
uint64_t vx = av_double2int(x);
uint64_t vy = av_double2int(y);
return av_int2double((vx & UINT64_C(0x7fffffffffffffff)) | (vy & UINT64_C(0x8000000000000000)));
}
#endif /* HAVE_COPYSIGN */
Error: Static declaration of 'cbrt' follows non-static declaration
Error: Static declaration of 'cbrtf' follows non-static declaration
Error: Static declaration of 'copysign' follows non-static declaration
我在FFMPEG的libavutil库的limb.h文件中得到这些错误。
解决方案
推荐阅读
- angular - Angular2 或最新的日期范围管道
- java - 如何遍历所有 cookie 并删除它们 Java
- cucumber - 通过电子邮件发布 Karate-Cucumber html 报告
- ruby-on-rails - 设计令牌验证另一个用户登录
- java - AsyncContext 和 I/O 错误创建 CLOSE_WAIT
- java - 如何在Windows的同一目录中复制给定不同名称的文件
- google-maps - Xamarin.Forms.Map 显示什么?
- angular - 使用 Angular 4 打开新的浏览器选项卡使父选项卡无响应
- javascript - 下一页打不开。分页问题
- machine-learning - 从时间序列数据中学习以预测时间序列(不是预测)