-
Notifications
You must be signed in to change notification settings - Fork 289
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
error: invalid operand in inline asm: 'adds $1, ${2:R}, ${2:Q}, lsr #31 #16
Comments
using LLVM-GCC4.2 compiler,, |
For those who came here via google: |
I now have exactly the same problem! |
Edwin- have you tried disabling asm support when configuring ffmpeg? This was sufficient to solve the issue for me, and the ffmpeg libraries still work fine without it. |
Thank you, wobbles, disabling asm does work fine. But I should mention that I want to use NEON optimization of ffmpeg, so if disable-asm, the neon support is not possible. |
Hi Edwin, any luck with this issue ? I have also the same problem with Lion and iOS 5.0. Looking for fix .... |
Well, just for a quick work, I did this:
Hope to know a more professional fix :-) |
Hi Edwin, Thanks for the fix. That error gone away but unfortunately, I got another error, libavformat/asfcrypt.o What is the ffmpeg version you are using ? Thanks |
I am using kind of old version - 0.6.1, and have disabled a lot of encoders/decoders (in my application). Anyway, what I did is only "扬汤止沸", we may all need a better fix. |
Yes, we may need a proper fix. If you don't mind, can I have the ffmpeg configure command options that you are using at terminal ? I also don't want a lot of encoders and decoders. Thanks, |
It should be all right. myconfig.sh: #!/bin/bash ./configure |
Thanks A lot :) |
Hi Edwin, Have you built librtmp with ffmpeg and arm ? I am having trouble with building ffmpeg with librtmp :( I am always getting "librtmp" not found. I set the PKG_PATH to point librtmp.c but no luck. any Idea ? Thanks |
No, I know little about using librtmp. Good luck! |
a workaround landed libav already http://git.libav.org/?p=libav.git;a=commit;h=f7de52354fe15ba7cae141b44ffdd01e560f0e47 |
I met this problem too. |
So… any update on a fix for this? |
This error is due to that current version of gnu assembler does not support 2012/2/17 David Cairns <
|
I had also this issue. How can we replace 64 bit assembly functions to 32bit ones? |
Is there meanwhile a solution for that problem? |
Yes; turn the optimizations off for your target architecture. ffmpeg runs just fine without them. |
But this will slow down the performance. Other solutions? |
I confirm it slown down performances. Impossible to decode correctly a 1080p video encoded in H264 on a iPad 2... It runs at two or three frame by seconds. Any solution? |
If you feel you must have optimizations turned on, simply disable the defines for all 64-bit inline assembly declarations, as per the instructions I linked early in the thread. Here's a diff to get you started:
|
Does anybody found a better fix? |
This has been fixed in Libav. |
Thanks mansr! |
It seems that another issue happens after applying libav fix :S I'm using this configuration ./configure --extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/system --disable-bzlib --disable-doc --enable-cross-compile --arch=arm --target-os=darwin --cc='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7' --as='gas-preprocessor.pl /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' --enable-pic --disable-zlib --disable-bzlib --enable-decoder=h264 --enable-demuxer=h264 --enable-parser=h264 Already did the Libavcodec fixes (thanks mansr) but still shows me this error (copy/paste of the last lines in console) I can only make it using --disable-asm flag, do you have any guess what could happen with this error? |
Use the following gas-preprocessor and it will work: |
Woooo! It works! |
CC libavcodec/audioconvert.o$1, $ {2:R}, ${2:Q}, lsr #31$1, $ {2:R}, asr #31
error: invalid operand in inline asm: 'adds
mvnne $1, #1<<31
eorne $0,
'
make: *** [libavcodec/audioconvert.o] Error 1
iOS5 sdk, LION-10.7.2
The text was updated successfully, but these errors were encountered: