[FFmpeg-devel] fail to build ffmpeg with icc 14
wm4
nfxjfg at googlemail.com
Fri Feb 2 17:04:46 EET 2018
On Fri, 2 Feb 2018 21:50:00 +0800 (CST)
qw <applemax82 at 163.com> wrote:
> Hi,
>
>
> I use the following command to build ffmpeg:
>
>
> ./configure --cc=/opt/intel/bin/icc --enable-version3 --enable-asm --enable-avfilter --disable-static --enable-shared --enable-gpl --enable-nonfree --prefix=/usr/local/ --extra-cflags='-I/usr/local/include --extra-ldflags='-L/usr/local/lib --enable-stripping
> make
>
>
> But I fail to compile ffmpeg, and error message is shown as below:
>
>
> icc: command line warning #10121: overriding '-std=gnu99' with '-std=c99'
> libavutil/cpu.c(48): error: identifier "ATOMIC_VAR_INIT" is undefined
> static atomic_int cpu_flags = ATOMIC_VAR_INIT(-1);
> ^
Maybe we need to force c11? Could you try to add -std=c11 or -std=gnu11
to CFLAGS?
More information about the ffmpeg-devel
mailing list