Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with asm #21

Open
IronSight87 opened this issue Jul 21, 2012 · 1 comment
Open

Issue with asm #21

IronSight87 opened this issue Jul 21, 2012 · 1 comment

Comments

@IronSight87
Copy link

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
@mansr
Copy link
Contributor

mansr commented Aug 4, 2012

  1. It would help if you quoted the exact, full error message you're getting.
  2. Inline asm is not handled by this preprocessor.
  3. Try the latest Libav revision, there are some recent fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants