[Libav-user] compile for iOS with assembler

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Apr 11 17:35:24 CEST 2012


Hi. I can successfully build ffmpeg libs for iOS with --disable-asm,
but i'd like to enable it and compilation fails.
Below see my (simplified) original configure&make script, and my
attempts to edit it.
Below log taken with ffmpeg.org git master 6bfb304, the most recent
44239bd behaves the same.
The same happens with libav.org git master ebbede2, although libav.org
takes slightly different configure options set (see at bottom)

18:07andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ cat ../video_capture_experimental_app/scripts/build_ffmpeg.sh
#!/bin/bash
set -e

make clean || true

SCRIPTS_DIR=`dirname $0`
export PATH=$SCRIPTS_DIR:$PATH # for gas-preprocessor.pl invocation

./configure \
--disable-vaapi \
--disable-vdpau \
--disable-hwaccels \
--disable-avx \
--disable-vis \
--disable-mmi \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-rdft \
--disable-dxva2 \
 \
--disable-asm \
--disable-yasm \
--disable-optimizations \
--disable-debug \
 \
--disable-avdevice \
--disable-devices \
--disable-indevs \
--disable-outdevs \
--disable-swscale \
--disable-swresample \
 \
--disable-protocols \
 \
--disable-demuxers \
--disable-muxers \
--disable-decoders \
--disable-encoders \
 \
--disable-filters \
 \
--disable-bsfs \
--disable-parsers \
 \
--enable-cross-compile --arch=arm --target-os=darwin \
--cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
\
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk'
\
--enable-pic

make

echo Succeed
[OK]
18:07andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ ../video_capture_experimental_app/scripts/build_ffmpeg.sh
install prefix            /usr/local
source path               .
C compiler
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
ARCH                      c (cortex-a8)
big-endian                no
runtime cpu detection     no
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             no
static                    yes
shared                    no
postprocessing support    no
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
libdxva2 enabled          no
libva enabled             no
libvdpau enabled          no
AVISynth enabled          no
frei0r enabled            no
gnutls enabled            no
libaacplus enabled        no
libass enabled            no
libcdio support           no
libcelt enabled           no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libgsm enabled            no
libmodplug enabled        no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
libpulse enabled          no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libstagefright-h264 enabled    no
libtheora enabled         no
libutvideo enabled        no
libv4l2 enabled           no
libvo-aacenc support      no
libvo-amrwbenc support    no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
openal enabled            no
openssl enabled           no
zlib enabled              no
bzlib enabled             no

Enabled decoders:

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later
Creating config.mak and config.h...
libavutil/avconfig.h is unchanged

WARNING: Compiler does not indicate floating-point ABI, guessing soft.
CC  libavfilter/allfilters.o
CC  libavfilter/avcodec.o
CC  libavfilter/avfilter.o
CC  libavfilter/avfiltergraph.o
CC  libavfilter/defaults.o
CC  libavfilter/drawutils.o
CC  libavfilter/formats.o
CC  libavfilter/graphdump.o
CC  libavfilter/graphparser.o
CC  libavfilter/lavfutils.o
libavfilter/lavfutils.c: In function ‘ff_load_image’:
libavfilter/lavfutils.c:83: warning: passing argument 3 of
‘av_image_copy’ from incompatible pointer type
CC  libavfilter/transform.o
CC  libavfilter/vsrc_buffer.o
AR  libavfilter/libavfilter.a
CC  libavformat/allformats.o
CC  libavformat/avio.o
libavformat/avio.c: In function ‘ffurl_write’:
libavformat/avio.c:305: warning: passing argument 2 of
‘retry_transfer_wrapper’ discards qualifiers from pointer target type
CC  libavformat/aviobuf.o
libavformat/aviobuf.c: In function ‘writeout’:
libavformat/aviobuf.c:124: warning: passing argument 2 of
‘s->write_packet’ discards qualifiers from pointer target type
libavformat/aviobuf.c: In function ‘ffio_fdopen’:
libavformat/aviobuf.c:692: warning: assignment discards qualifiers
from pointer target type
CC  libavformat/cutils.o
CC  libavformat/id3v1.o
CC  libavformat/id3v2.o
libavformat/id3v2.c: In function ‘read_ttag’:
libavformat/id3v2.c:293: warning: assignment discards qualifiers from
pointer target type
libavformat/id3v2.c: In function ‘ff_id3v2_parse’:
libavformat/id3v2.c:555: warning: unused variable ‘compressed_buffer_size’
CC  libavformat/metadata.o
CC  libavformat/network.o
CC  libavformat/options.o
CC  libavformat/os_support.o
CC  libavformat/riff.o
CC  libavformat/sdp.o
CC  libavformat/seek.o
CC  libavformat/utils.o
AR  libavformat/libavformat.a
CC  libavcodec/allcodecs.o
CC  libavcodec/audioconvert.o
CC  libavcodec/avpacket.o
libavcodec/avpacket.c: In function ‘av_dup_packet’:
libavcodec/avpacket.c:130: warning: ‘av_destruct_packet_nofree’ is
deprecated (declared at libavcodec/avpacket.c:28)
CC  libavcodec/bitstream.o
CC  libavcodec/bitstream_filter.o
libavcodec/bitstream_filter.c: In function ‘av_bitstream_filter_filter’:
libavcodec/bitstream_filter.c:62: warning: cast discards qualifiers
from pointer target type
CC  libavcodec/dsputil.o
libavcodec/dsputil.c: In function ‘diff_bytes_c’:
libavcodec/dsputil.c:1941: warning: cast discards qualifiers from
pointer target type
libavcodec/dsputil.c:1942: warning: cast discards qualifiers from
pointer target type
CC  libavcodec/faanidct.o
CC  libavcodec/fmtconvert.o
CC  libavcodec/imgconvert.o
libavcodec/imgconvert.c: In function ‘av_picture_copy’:
libavcodec/imgconvert.c:517: warning: passing argument 3 of
‘av_image_copy’ from incompatible pointer type
CC  libavcodec/inverse.o
CC  libavcodec/jrevdct.o
CC  libavcodec/options.o
In file included from libavcodec/options.c:33:
libavcodec/options_table.h:78: warning: ‘sub_id’ is deprecated
(declared at libavcodec/avcodec.h:1292)
libavcodec/options_table.h:142: warning: ‘luma_elim_threshold’ is
deprecated (declared at libavcodec/avcodec.h:1524)
libavcodec/options_table.h:143: warning: ‘chroma_elim_threshold’ is
deprecated (declared at libavcodec/avcodec.h:1531)
libavcodec/options_table.h:278: warning: ‘color_table_id’ is
deprecated (declared at libavcodec/avcodec.h:1770)
libavcodec/options_table.h:301: warning: ‘inter_threshold’ is
deprecated (declared at libavcodec/avcodec.h:1833)
libavcodec/options_table.h:306: warning: ‘quantizer_noise_shaping’ is
deprecated (declared at libavcodec/avcodec.h:1840)
libavcodec/options.c: In function ‘avcodec_get_context_defaults3’:
libavcodec/options.c:99: warning: ‘av_opt_set_defaults2’ is deprecated
(declared at ./libavutil/opt.h:370)
CC  libavcodec/parser.o
libavcodec/parser.c: In function ‘av_parser_change’:
libavcodec/parser.c:185: warning: cast discards qualifiers from
pointer target type
CC  libavcodec/pthread.o
CC  libavcodec/raw.o
CC  libavcodec/rawdec.o
libavcodec/rawdec.c: In function ‘raw_decode’:
libavcodec/rawdec.c:195: warning: passing argument 2 of
‘avpicture_fill’ discards qualifiers from pointer target type
libavcodec/rawdec.c:199: warning: assignment from incompatible pointer type
CC  libavcodec/resample.o
CC  libavcodec/resample2.o
CC  libavcodec/simple_idct.o
CC  libavcodec/codec_names.h
CC  libavcodec/utils.o
AR  libavcodec/libavcodec.a
CC  libavutil/adler32.o
CC  libavutil/aes.o
CC  libavutil/audioconvert.o
CC  libavutil/avstring.o
CC  libavutil/base64.o
CC  libavutil/bprint.o
CC  libavutil/cpu.o
CC  libavutil/crc.o
CC  libavutil/des.o
CC  libavutil/dict.o
CC  libavutil/error.o
CC  libavutil/eval.o
CC  libavutil/fifo.o
CC  libavutil/file.o
CC  libavutil/imgutils.o
CC  libavutil/intfloat_readwrite.o
CC  libavutil/inverse.o
CC  libavutil/lfg.o
CC  libavutil/lls.o
CC  libavutil/log.o
CC  libavutil/lzo.o
CC  libavutil/mathematics.o
CC  libavutil/md5.o
CC  libavutil/mem.o
CC  libavutil/opt.o
libavutil/opt.c: In function ‘av_opt_set_defaults’:
libavutil/opt.c:601: warning: ‘av_opt_set_defaults2’ is deprecated
(declared at libavutil/opt.h:370)
CC  libavutil/parseutils.o
CC  libavutil/pixdesc.o
CC  libavutil/random_seed.o
CC  libavutil/rational.o
CC  libavutil/rc4.o
CC  libavutil/samplefmt.o
CC  libavutil/sha.o
CC  libavutil/timecode.o
CC  libavutil/tree.o
CC  libavutil/utils.o
AR  libavutil/libavutil.a
Succeed
[OK]
18:08andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ Now i do --enable-asm --enable-yasm
[ERR]
18:09andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ cat ../video_capture_experimental_app/scripts/build_ffmpeg.sh
#!/bin/bash
set -e

make clean || true

SCRIPTS_DIR=`dirname $0`
export PATH=$SCRIPTS_DIR:$PATH # for gas-preprocessor.pl invocation

./configure \
--disable-vaapi \
--disable-vdpau \
--disable-hwaccels \
--disable-avx \
--disable-vis \
--disable-mmi \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-rdft \
--disable-dxva2 \
 \
--enable-asm \
--enable-yasm \
--disable-optimizations \
--disable-debug \
 \
--disable-avdevice \
--disable-devices \
--disable-indevs \
--disable-outdevs \
--disable-swscale \
--disable-swresample \
 \
--disable-protocols \
 \
--disable-demuxers \
--disable-muxers \
--disable-decoders \
--disable-encoders \
 \
--disable-filters \
 \
--disable-bsfs \
--disable-parsers \
 \
--enable-cross-compile --arch=arm --target-os=darwin \
--cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
\
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk'
\
--enable-pic

make

echo Succeed
[OK]
18:09andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ ../video_capture_experimental_app/scripts/build_ffmpeg.sh
install prefix            /usr/local
source path               .
C compiler
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
ARCH                      arm (cortex-a8)
big-endian                no
runtime cpu detection     no
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
ARM VFP enabled           yes
NEON enabled              yes
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             no
static                    yes
shared                    no
postprocessing support    no
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
libdxva2 enabled          no
libva enabled             no
libvdpau enabled          no
AVISynth enabled          no
frei0r enabled            no
gnutls enabled            no
libaacplus enabled        no
libass enabled            no
libcdio support           no
libcelt enabled           no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libgsm enabled            no
libmodplug enabled        no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
libpulse enabled          no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libstagefright-h264 enabled    no
libtheora enabled         no
libutvideo enabled        no
libv4l2 enabled           no
libvo-aacenc support      no
libvo-amrwbenc support    no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
openal enabled            no
openssl enabled           no
zlib enabled              no
bzlib enabled             no

Enabled decoders:

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later
Creating config.mak and config.h...
config.asm is unchanged
libavutil/avconfig.h is unchanged

WARNING: Compiler does not indicate floating-point ABI, guessing soft.
CC  libavfilter/allfilters.o
cc1: error in backend: Invalid operand for inline asm constraint 'i'!
make: *** [libavfilter/allfilters.o] Error 1
[ERR]
18:10andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ Now --enable-asm --disable-yasm
[ERR]
18:11andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ cat ../video_capture_experimental_app/scripts/build_ffmpeg.sh
#!/bin/bash
set -e

make clean || true

SCRIPTS_DIR=`dirname $0`
export PATH=$SCRIPTS_DIR:$PATH # for gas-preprocessor.pl invocation

./configure \
--disable-vaapi \
--disable-vdpau \
--disable-hwaccels \
--disable-avx \
--disable-vis \
--disable-mmi \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-rdft \
--disable-dxva2 \
 \
--enable-asm \
--disable-yasm \
--disable-optimizations \
--disable-debug \
 \
--disable-avdevice \
--disable-devices \
--disable-indevs \
--disable-outdevs \
--disable-swscale \
--disable-swresample \
 \
--disable-protocols \
 \
--disable-demuxers \
--disable-muxers \
--disable-decoders \
--disable-encoders \
 \
--disable-filters \
 \
--disable-bsfs \
--disable-parsers \
 \
--enable-cross-compile --arch=arm --target-os=darwin \
--cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
\
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk'
\
--enable-pic

make

echo Succeed
[OK]
18:11andrey.utkin at kharchevin-macbook ~/ffmpeg
 $ ../video_capture_experimental_app/scripts/build_ffmpeg.sh
install prefix            /usr/local
source path               .
C compiler
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
ARCH                      arm (cortex-a8)
big-endian                no
runtime cpu detection     no
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
ARM VFP enabled           yes
NEON enabled              yes
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             no
static                    yes
shared                    no
postprocessing support    no
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
libdxva2 enabled          no
libva enabled             no
libvdpau enabled          no
AVISynth enabled          no
frei0r enabled            no
gnutls enabled            no
libaacplus enabled        no
libass enabled            no
libcdio support           no
libcelt enabled           no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libgsm enabled            no
libmodplug enabled        no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
libpulse enabled          no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libstagefright-h264 enabled    no
libtheora enabled         no
libutvideo enabled        no
libv4l2 enabled           no
libvo-aacenc support      no
libvo-amrwbenc support    no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
openal enabled            no
openssl enabled           no
zlib enabled              no
bzlib enabled             no

Enabled decoders:

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later
Creating config.mak and config.h...
libavutil/avconfig.h is unchanged

WARNING: Compiler does not indicate floating-point ABI, guessing soft.
CC  libavfilter/allfilters.o
cc1: error in backend: Invalid operand for inline asm constraint 'i'!
make: *** [libavfilter/allfilters.o] Error 1
[ERR]
18:12andrey.utkin at kharchevin-macbook ~/ffmpeg
 $


=================================================
Same with libav.org
=================================================

 $ cat ../video_capture_experimental_app/scripts/build_libav.sh
#!/bin/bash
set -e

make clean || true

SCRIPTS_DIR=`dirname $0`
export PATH=$SCRIPTS_DIR:$PATH # for gas-preprocessor.pl invocation

./configure \
--disable-vaapi \
--disable-vdpau \
--disable-hwaccels \
--disable-avx \
--disable-vis \
--disable-mmi \
--disable-doc \
--disable-avconv \
--disable-avplay \
--disable-avprobe \
--disable-avserver \
--disable-rdft \
--disable-dxva2 \
 \
--disable-asm \
--disable-yasm \
--disable-optimizations \
--disable-debug \
 \
--disable-avdevice \
--disable-devices \
--disable-indevs \
--disable-outdevs \
--disable-swscale \
 \
--disable-protocols \
 \
--disable-demuxers \
--disable-muxers \
--disable-decoders \
--disable-encoders \
 \
--disable-filters \
 \
--disable-bsfs \
--disable-parsers \
 \
--enable-cross-compile --arch=arm --target-os=darwin \
--cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
\
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk'
\
--enable-pic

make

echo Succeed
[OK]
18:30andrey.utkin at kharchevin-macbook ~/libav_ios
 $ ../video_capture_experimental_app/scripts/build_libav.sh
install prefix            /usr/local
source path               .
C compiler
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
ARCH                      c (cortex-a8)
big-endian                no
runtime cpu detection     no
debug symbols             no
optimize for size         no
optimizations             no
static                    yes
shared                    no
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
libdxva2 enabled          no
libva enabled             no
libvdpau enabled          no
AVISynth enabled          no
frei0r enabled            no
gnutls enabled            no
libcdio support           no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libgsm enabled            no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
libpulse enabled          no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libtheora enabled         no
libvo-aacenc support      no
libvo-amrwbenc support    no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
openssl enabled           no
zlib enabled              no
bzlib enabled             no

Enabled decoders:

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later
Creating config.mak and config.h...
config.h is unchanged
libavutil/avconfig.h is unchanged

WARNING: Compiler does not indicate floating-point ABI, guessing soft.
CC  libavfilter/allfilters.o
CC  libavfilter/avfilter.o
CC  libavfilter/avfiltergraph.o
CC  libavfilter/defaults.o
CC  libavfilter/drawutils.o
CC  libavfilter/formats.o
CC  libavfilter/graphparser.o
CC  libavfilter/vsrc_buffer.o
libavfilter/vsrc_buffer.c: In function ‘av_vsrc_buffer_add_frame’:
libavfilter/vsrc_buffer.c:63: warning: passing argument 3 of
‘av_image_copy’ from incompatible pointer type
AR  libavfilter/libavfilter.a
CC  libavformat/allformats.o
CC  libavformat/avio.o
libavformat/avio.c: In function ‘avio_enum_protocols’:
libavformat/avio.c:89: warning: initialization from incompatible pointer type
libavformat/avio.c: In function ‘ffurl_write’:
libavformat/avio.c:274: warning: passing argument 2 of
‘retry_transfer_wrapper’ discards qualifiers from pointer target type
libavformat/avio.c:274: warning: passing argument 5 of
‘retry_transfer_wrapper’ from incompatible pointer type
CC  libavformat/aviobuf.o
libavformat/aviobuf.c: In function ‘ffio_fdopen’:
libavformat/aviobuf.c:652: warning: passing argument 5 of
‘avio_alloc_context’ from incompatible pointer type
libavformat/aviobuf.c:652: warning: passing argument 6 of
‘avio_alloc_context’ from incompatible pointer type
libavformat/aviobuf.c:652: warning: passing argument 7 of
‘avio_alloc_context’ from incompatible pointer type
libavformat/aviobuf.c:663: warning: assignment discards qualifiers
from pointer target type
CC  libavformat/cutils.o
CC  libavformat/id3v1.o
CC  libavformat/id3v2.o
libavformat/id3v2.c: In function ‘read_ttag’:
libavformat/id3v2.c:280: warning: assignment discards qualifiers from
pointer target type
CC  libavformat/metadata.o
CC  libavformat/network.o
CC  libavformat/options.o
CC  libavformat/os_support.o
CC  libavformat/riff.o
CC  libavformat/sdp.o
CC  libavformat/seek.o
CC  libavformat/utils.o
AR  libavformat/libavformat.a
CC  libavcodec/allcodecs.o
CC  libavcodec/audioconvert.o
CC  libavcodec/avpacket.o
libavcodec/avpacket.c: In function ‘av_dup_packet’:
libavcodec/avpacket.c:125: warning: ‘av_destruct_packet_nofree’ is
deprecated (declared at libavcodec/avpacket.c:27)
CC  libavcodec/bitstream.o
CC  libavcodec/bitstream_filter.o
libavcodec/bitstream_filter.c: In function ‘av_bitstream_filter_filter’:
libavcodec/bitstream_filter.c:62: warning: cast discards qualifiers
from pointer target type
CC  libavcodec/dsputil.o
CC  libavcodec/faanidct.o
CC  libavcodec/fmtconvert.o
CC  libavcodec/imgconvert.o
libavcodec/imgconvert.c: In function ‘av_picture_copy’:
libavcodec/imgconvert.c:654: warning: passing argument 3 of
‘av_image_copy’ from incompatible pointer type
CC  libavcodec/inverse.o
CC  libavcodec/jrevdct.o
CC  libavcodec/options.o
In file included from libavcodec/options.c:33:
libavcodec/options_table.h:73: warning: ‘sub_id’ is deprecated
(declared at libavcodec/avcodec.h:1268)
libavcodec/options_table.h:137: warning: ‘luma_elim_threshold’ is
deprecated (declared at libavcodec/avcodec.h:1497)
libavcodec/options_table.h:138: warning: ‘chroma_elim_threshold’ is
deprecated (declared at libavcodec/avcodec.h:1504)
libavcodec/options_table.h:270: warning: ‘color_table_id’ is
deprecated (declared at libavcodec/avcodec.h:1743)
libavcodec/options_table.h:293: warning: ‘inter_threshold’ is
deprecated (declared at libavcodec/avcodec.h:1806)
libavcodec/options_table.h:298: warning: ‘quantizer_noise_shaping’ is
deprecated (declared at libavcodec/avcodec.h:1813)
CC  libavcodec/parser.o
libavcodec/parser.c: In function ‘av_parser_change’:
libavcodec/parser.c:187: warning: cast discards qualifiers from
pointer target type
CC  libavcodec/pthread.o
CC  libavcodec/raw.o
CC  libavcodec/resample.o
CC  libavcodec/resample2.o
CC  libavcodec/simple_idct.o
CC  libavcodec/utils.o
libavcodec/utils.c: In function ‘avcodec_fill_audio_frame’:
libavcodec/utils.c:274: warning: passing argument 3 of
‘av_samples_fill_arrays’ discards qualifiers from pointer target type
libavcodec/utils.c: In function ‘avcodec_open2’:
libavcodec/utils.c:680: warning: assignment discards qualifiers from
pointer target type
libavcodec/utils.c: In function ‘avcodec_encode_audio’:
libavcodec/utils.c:1036: warning: passing argument 4 of
‘avcodec_fill_audio_frame’ from incompatible pointer type
libavcodec/utils.c: In function ‘avcodec_encode_subtitle’:
libavcodec/utils.c:1161: warning: passing argument 4 of
‘avctx->codec->encode’ discards qualifiers from pointer target type
AR  libavcodec/libavcodec.a
CC  libavutil/adler32.o
CC  libavutil/aes.o
CC  libavutil/audioconvert.o
CC  libavutil/avstring.o
libavutil/avstring.c: In function ‘av_stristr’:
libavutil/avstring.c:54: warning: return discards qualifiers from
pointer target type
libavutil/avstring.c:58: warning: return discards qualifiers from
pointer target type
CC  libavutil/base64.o
CC  libavutil/cpu.o
CC  libavutil/crc.o
CC  libavutil/des.o
CC  libavutil/dict.o
libavutil/dict.c: In function ‘av_dict_set’:
libavutil/dict.c:77: warning: assignment discards qualifiers from
pointer target type
libavutil/dict.c:81: warning: assignment discards qualifiers from
pointer target type
CC  libavutil/error.o
CC  libavutil/eval.o
CC  libavutil/fifo.o
CC  libavutil/file.o
CC  libavutil/imgutils.o
CC  libavutil/intfloat_readwrite.o
CC  libavutil/inverse.o
CC  libavutil/lfg.o
CC  libavutil/lls.o
CC  libavutil/log.o
CC  libavutil/lzo.o
CC  libavutil/mathematics.o
CC  libavutil/md5.o
CC  libavutil/mem.o
CC  libavutil/opt.o
libavutil/opt.c: In function ‘av_opt_set_defaults’:
libavutil/opt.c:599: warning: ‘av_opt_set_defaults2’ is deprecated
(declared at libavutil/opt.h:370)
CC  libavutil/parseutils.o
libavutil/parseutils.c: In function ‘av_parse_video_size’:
libavutil/parseutils.c:110: warning: assignment discards qualifiers
from pointer target type
libavutil/parseutils.c: In function ‘av_parse_time’:
libavutil/parseutils.c:561: warning: cast discards qualifiers from
pointer target type
CC  libavutil/pixdesc.o
CC  libavutil/random_seed.o
CC  libavutil/rational.o
CC  libavutil/rc4.o
CC  libavutil/samplefmt.o
CC  libavutil/sha.o
CC  libavutil/tree.o
CC  libavutil/utils.o
AR  libavutil/libavutil.a
Succeed
[OK]
18:30andrey.utkin at kharchevin-macbook ~/libav_ios
 $ vim ../video_capture_experimental_app/scripts/build_libav.sh
[OK]
18:31andrey.utkin at kharchevin-macbook ~/libav_ios
 $ cat ../video_capture_experimental_app/scripts/build_libav.sh
#!/bin/bash
set -e

make clean || true

SCRIPTS_DIR=`dirname $0`
export PATH=$SCRIPTS_DIR:$PATH # for gas-preprocessor.pl invocation

./configure \
--disable-vaapi \
--disable-vdpau \
--disable-hwaccels \
--disable-avx \
--disable-vis \
--disable-mmi \
--disable-doc \
--disable-avconv \
--disable-avplay \
--disable-avprobe \
--disable-avserver \
--disable-rdft \
--disable-dxva2 \
 \
--enable-asm \
--enable-yasm \
--disable-optimizations \
--disable-debug \
 \
--disable-avdevice \
--disable-devices \
--disable-indevs \
--disable-outdevs \
--disable-swscale \
 \
--disable-protocols \
 \
--disable-demuxers \
--disable-muxers \
--disable-decoders \
--disable-encoders \
 \
--disable-filters \
 \
--disable-bsfs \
--disable-parsers \
 \
--enable-cross-compile --arch=arm --target-os=darwin \
--cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
\
--cpu=cortex-a8 \
--extra-cflags='-arch armv7' \
--extra-ldflags='-arch armv7 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk'
\
--enable-pic

make

echo Succeed
[OK]
18:31andrey.utkin at kharchevin-macbook ~/libav_ios
 $ ../video_capture_experimental_app/scripts/build_libav.sh
install prefix            /usr/local
source path               .
C compiler
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
ARCH                      arm (cortex-a8)
big-endian                no
runtime cpu detection     no
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
ARM VFP enabled           yes
NEON enabled              yes
debug symbols             no
optimize for size         no
optimizations             no
static                    yes
shared                    no
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
libdxva2 enabled          no
libva enabled             no
libvdpau enabled          no
AVISynth enabled          no
frei0r enabled            no
gnutls enabled            no
libcdio support           no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libgsm enabled            no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
libpulse enabled          no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libtheora enabled         no
libvo-aacenc support      no
libvo-amrwbenc support    no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
openssl enabled           no
zlib enabled              no
bzlib enabled             no

Enabled decoders:

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later
Creating config.mak and config.h...
libavutil/avconfig.h is unchanged

WARNING: Compiler does not indicate floating-point ABI, guessing soft.
CC  libavfilter/allfilters.o
cc1: error in backend: Invalid operand for inline asm constraint 'i'!
make: *** [libavfilter/allfilters.o] Error 1

-- 
Andrey Utkin


More information about the Libav-user mailing list