ocaml-ffmpeg icon indicating copy to clipboard operation
ocaml-ffmpeg copied to clipboard

Unable to install ocaml-ffmpeg 0.4.1

Open luisogandob opened this issue 4 years ago • 0 comments

Hello,

I have made several test trying to install ocaml-ffmpeg with updated copies of ffmpeg and ffmpeg-devel (not the one included in Centos) and this error appears.

### output ###
# [...]
# /usr/include/string.h:42:14: note: expected ‘void * __restrict__’ but argument is of type ‘const char *’
#  extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
#               ^
# swresample_stubs.c: In function ‘convert_to_planar_float_array’:
# swresample_stubs.c:339:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
#      for(int i = 0; i < swr->out.nb_channels; i++) {
#      ^
# make[2]: *** [swresample_stubs.o] Error 2
# make[2]: Leaving directory `/home/centos/.opam/4.10.0/.opam-switch/build/ffmpeg.0.4.1/src'
# make[1]: *** [byte-code-library] Error 2
# make[1]: Leaving directory `/home/centos/.opam/4.10.0/.opam-switch/build/ffmpeg.0.4.1/src'
# make: *** [all] Error 2

luisogandob avatar Apr 13 '20 22:04 luisogandob