Re: Can't build latest FFmpeg for Android-x86

617 views
Skip to first unread message

Rohit Choudhary

unread,
Jun 20, 2012, 3:11:01 PM6/20/12
to andro...@googlegroups.com
Hi Kim, 

I am not sure what the purpose is, ffmpeg and ffserver both are quite unstable at this point in time. Depending upon what you want to use it for, I would recommend that you look out at the forums and see if the functionality you want to use it for is working. 

My guess is that you are trying to create a library and then use it directly in an app, if thats the case there are a few pre-build ndk's, on lublic gits. Please reuse them, it may save a lot of time for you. 

Thanks. 

On Wed, Jun 20, 2012 at 9:09 PM, J.H. Kim <bleu...@gmail.com> wrote:
Hello there, 

I'm trying to build ffmpeg for Android-x86.
but gcc always fails while compiling x86 inline assembly codes with following errors:
- error: can't find a register in class `GENERAL_REGS' while reloading `asm' 
- error: 'asm' operand has impossible constraints 

I've tested gcc 4.4.3 from Google NDK r8 and gcc 4.6.3 from crystax NDK r7 (http://www.crystax.net/en/android/ndk/7). both gcc are not working.

To reproduce error:

1. download latest ffmpeg.
2. run attached file. (some path should be changed)
3. make

Does anyone succeed building latest ffmpeg or have patched gcc ?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/Gvfnv1jW9TcJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.

mariuz

unread,
Jun 20, 2012, 5:08:04 PM6/20/12
to andro...@googlegroups.com


On Wednesday, June 20, 2012 6:39:44 PM UTC+3, J.H. Kim wrote:
Hello there, 

I'm trying to build ffmpeg for Android-x86.
but gcc always fails while compiling x86 inline assembly codes with following errors:
- error: can't find a register in class `GENERAL_REGS' while reloading `asm' 
- error: 'asm' operand has impossible constraints 


you need to disable asm 
--disable-asm --disable-yasm 

saw the configure option on this script 

J.H. Kim

unread,
Jun 20, 2012, 7:48:27 PM6/20/12
to andro...@googlegroups.com
Hi mariuz, 

Thanks for suggestion. but I've already tried --dsiable-asm but some inline assembly codes are still used even with this option,
Furthermore, most SIMD optimization codes was written in assembly. thus it impact performance a lot.
I'm making an Android video player and performance is most important factor.

J.H. Kim

unread,
Jun 20, 2012, 7:59:50 PM6/20/12
to andro...@googlegroups.com
Hi RC,

I'm making an Android video player and it was successful on ARM architecture. I'm now trying to support Android-x86.

Performance is most important factor for me, thus options like --dsiable-asm or --disable-optimizations can't be used since most SIMD codes are written in assembly, 

And can't find any working example yet.

Thanks.
Reply all
Reply to author
Forward
0 new messages