gas-preprocessor icon indicating copy to clipboard operation
gas-preprocessor copied to clipboard

Issue with asm

Open IronSight87 opened this issue 12 years ago • 1 comments

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 (https://github.com/yuvi/gas-preprocessor/issues/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

IronSight87 avatar Jul 21 '12 09:07 IronSight87

  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.

mansr avatar Aug 04 '12 00:08 mansr