[FFmpeg-trac] #3569(avdevice:new): "initializer element is not constant" compiling bug in libavdevice/avfoundation.m
FFmpeg
trac at avcodec.org
Thu Apr 17 09:11:58 CEST 2014
#3569: "initializer element is not constant" compiling bug in
libavdevice/avfoundation.m
------------------------------------+------------------------------------
Reporter: xnohat | Owner:
Type: defect | Status: new
Priority: important | Component: avdevice
Version: git-master | Resolution:
Keywords: osx | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by xnohat):
hi ceboyos,
This is output you need
{{{
$ ./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-
libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxvid --enable-indev=avfoundation
$ make V=1
gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-DPIC -DHAVE_AV_CONFIG_H -std=c99 -mdynamic-no-pic -fomit-frame-pointer
-fPIC -pthread -I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include -I/opt/local/include/fribidi
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/freetype2 -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_THREAD_SAFE -g -Wdeclaration-after-statement -Wall -Wdisabled-
optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wundef
-Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-
body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-
sign -O3 -fno-math-errno -mllvm -stack-alignment=16 -MMD -MF
libavdevice/avfoundation.d -MT libavdevice/avfoundation.o -c -o
libavdevice/avfoundation.o libavdevice/avfoundation.m
libavdevice/avfoundation.m:43: error: initializer element is not constant
libavdevice/avfoundation.m:43: error: (near initialization for
‘avf_time_base_q.den’)
libavdevice/avfoundation.m: In function ‘avf_read_header’:
libavdevice/avfoundation.m:152: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:162: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:207: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:213: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:244: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:253: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:273: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:281: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m: In function ‘avf_read_packet’:
libavdevice/avfoundation.m:310: warning: ISO C90 forbids mixed
declarations and code
libavdevice/avfoundation.m:325: warning: ISO C90 forbids mixed
declarations and code
make: *** [libavdevice/avfoundation.o] Error 1
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3569#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list