x264:common/opencl.c:154:19: 错误:‘x264_opencl_source_hash’未声明

来源:互联网 发布:软件解锁功能 编辑:程序博客网 时间:2024/04/27 15:52

错误信息:

common/opencl.c: 在函数‘x264_opencl_cache_load’中:common/opencl.c:154:19: 错误:‘x264_opencl_source_hash’未声明(在此函数内第一次使用)     CHECK_STRING( x264_opencl_source_hash );                   ^common/opencl.c:143:30: 附注:in definition of macro ‘CHECK_STRING’         size_t len = strlen( STR );\                              ^common/opencl.c:154:19: 附注:每个未声明的标识符在其出现的函数内只报告一次     CHECK_STRING( x264_opencl_source_hash );                   ^common/opencl.c:143:30: 附注:in definition of macro ‘CHECK_STRING’         size_t len = strlen( STR );\                              ^<span style="color:#ff0000;">common/opencl.c: 在函数‘x264_opencl_cache_save’中:common/opencl.c:204:12: 错误:‘x264_opencl_source_hash’未声明(在此函数内第一次使用)     fputs( x264_opencl_source_hash, fp );            ^common/opencl.c: 在函数‘x264_opencl_compile’中:common/opencl.c:264:43: 错误:‘x264_opencl_source’未声明(在此函数内第一次使用)         const char *strptr = (const char*)x264_opencl_source;</span>

解决方法:

加入红色部分

./configure --enable-static --disable-opencl

http://ffmpeg.org/pipermail/ffmpeg-user/2013-May/015385.html

0 0