Skip to content

Issue with asm #21

Description

@IronSight87

Hy guys,

there is an issue compiling ffmpeg for ios with asm and neon support.
I tried with SDK 4.3, 5.0 and 5.1, but I always get the message "error: invalid operand in inline asm".
I know this error is related to the new GNU assembler.
Disabling asm is no option, because it will slow down the performance massivly.
I already read the related post (#16), but there is no solution.

PLEASE HELP!

Here is my building script:

BASEPATH=$PWD
PLATFORMPATH="/Applications/Xcode.app/Contents/Developer/Platforms"
IOSSDK=4.3


./configure \
--cc=${PLATFORMPATH}/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 \
--as='gas-preprocessor.pl ${PLATFORMPATH}/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2'
--sysroot="${PLATFORMPATH}/iPhoneOS.platform/Developer/SDKs/iPhoneOS${IOSSDK}.sdk" \
--target-os=darwin \
--arch=arm \
--cpu=cortex-a8 \
--extra-cflags="-w -arch armv7 -mfpu=neon " \
--extra-ldflags="-L${PLATFORMPATH}/iPhoneOS.platform/Developer/SDKs/iPhoneOS${IOSSDK}.sdk/usr/lib/system -arch armv7 -mfpu=neon -isysroot ${PLATFORMPATH}/iPhoneOS.platform/Developer/SDKs/iPhoneOS${IOSSDK}.sdk" \
--extra-cxxflags='-mno-apcs-stack-check -mfpu=neon -mvectorize-with-neon-quad' \
--disable-bzlib \
--disable-yasm \
--disable-vdpau \
--disable-vaapi \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffserver \
--disable-ffprobe \
--disable-filters \
--disable-bsfs \
--disable-doc \
--disable-debug \
--disable-encoders \
--disable-muxers \
--disable-protocols \
--disable-parsers \
--disable-demuxers \
--disable-decoders \
--enable-protocol=rtp \
--enable-protocol=udp \
--enable-parser=mpegvideo \
--enable-demuxer=rawvideo \
--enable-demuxer=mpegvideo \
--enable-demuxer=rtp \
--enable-demuxer=mpegts \
--enable-decoder=rawvideo \
--enable-decoder=mpeg1video \
--enable-decoder=mpeg2video \
--enable-decoder=mpegvideo \
--enable-cross-compile \
--enable-nonfree \
--enable-gpl \
--enable-version3 \
--enable-pic \
--enable-neon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions