调用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

 

 

posted @ 2014-01-03 00:42  midu  阅读(498)  评论(0编辑  收藏  举报