欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

调用ffmpeg库编译时出现common.h:175:47: error: 'UINT64_C' was not declared in this scope

发布时间:2025/4/16 编程问答 32 豆豆
生活随笔 收集整理的这篇文章主要介绍了 调用ffmpeg库编译时出现common.h:175:47: error: 'UINT64_C' was not declared in this scope 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

解决办法

出现错误:jni/ffmpeg/libavutil/common.h:175:47: error: 'UINT64_C' was not declared in this scope

解决:在 jni/ffmpeg/libavutil/common.h中添加
// add by XXX
#ifndef UINT64_C
#define UINT64_C(value)__CONCAT(value,ULL)
#endif
//-//

最后编译通过,在目录~/workspace/ffmpeg_android/libs/armeabi-v7a/下面会生成android可执行文件ffmpeg_android (实现H264解码的demo程序) 

http://www.linuxidc.com/Linux/2013-08/88545p3.htm

 

http://blog.csdn.net/ccm_oliver/article/details/8968860 undifine

 

 

总结

以上是生活随笔为你收集整理的调用ffmpeg库编译时出现common.h:175:47: error: 'UINT64_C' was not declared in this scope的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。