[FFmpeg-devel] Can't compile

Masaru Nomiya nomiya at galaxy.dti.ne.jp
Sat May 10 08:49:34 CEST 2014


Hello,

I got the very latest git of ffmpeg, but can't compile;

[...]
In file included from /opt/AMDAPP/include/CL/cl.h:30:0,
                 from libavutil/opencl.h:37,
                 from libavutil/opencl.c:24:
/opt/AMDAPP/include/CL/cl_platform.h:101:11: warning: "_WIN32" is not defined [-Wundef]
CC      libavutil/opencl_internal.o
In file included from /opt/AMDAPP/include/CL/cl.h:30:0,
                 from libavutil/opencl.h:37,
                 from libavutil/opencl_internal.h:23,
                 from libavutil/opencl_internal.c:23:
/opt/AMDAPP/include/CL/cl_platform.h:101:11: warning: "_WIN32" is not defined [-Wundef]
CC      libavutil/opt.o
libavutil/opencl.c:329:12: error: no previous prototype for 'init_opencl_mtx' [-Werror=missing-prototypes]
libavutil/opencl.c: In function 'init_opencl_mtx':
libavutil/opencl.c:341:9: warning: passing argument 1 of 'atomic_ptr_cas_gcc' from incompatible pointer type [enabled by default]
In file included from libavutil/atomic.h:29:0,
                 from libavutil/opencl.c:38:
libavutil/atomic_gcc.h:49:21: note: expected 'void * volatile*' but argument is of type 'union pthread_mutex_t **'
libavutil/opencl.c: At top level:
libavutil/opencl.c:341:36: warning: 'atomic_opencl_lock' is static but used in inline function 'init_opencl_mtx' which is not static [enabled by default]
libavutil/opencl.c:341:13: warning: 'atomic_ptr_cas_gcc' is static but used in inline function 'init_opencl_mtx' which is not static [enabled by default]
libavutil/opencl.c:332:10: warning: 'atomic_opencl_lock' is static but used in inline function 'init_opencl_mtx' which is not static [enabled by default]
cc1: some warnings being treated as errors
make: *** [libavutil/opencl.o] Error 1
make: *** Waiting for unfinished jobs....
CC      libavutil/parseutils.o
libavutil/opt.c: In function 'av_find_opt':
libavutil/opt.c:49:5: warning: 'av_next_option' is deprecated (declared at libavutil/opt.h:437) [-Wdeprecated-declarations]
libavutil/opt.c: In function 'av_opt_set_defaults':
libavutil/opt.c:1148:5: warning: 'av_opt_set_defaults2' is deprecated (declared at libavutil/opt.h:460) [-Wdeprecated-declarations]

Thanks,

---
┏━━┓彡 Masaru Nomiya             mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
          Not with Me!"
         "No..., with money."


More information about the ffmpeg-devel mailing list