[FFmpeg-user] How to compile ffmpeg on Android

Mohammed Bey Ahmed Khernache mohbeyinfo at gmail.com
Fri Jul 13 22:10:17 EEST 2018


 > Could you elaborate?
> The compiler by default generates binaries that do not run
> on Android?
Yes, by default the compiler does not generate binaries that run on
Android. That's why I added in  --cross-prefix=.. . I gave the path of the
Android compiler, using Android NDK.
>  --enable-nonfree
I cannot use --enable-gpl option without --enable-nonfree. Sincerely, I
don't know why.
>  As said, please do not top-post here
Could you explain to me? I am not really a good english speaker.

Best regards.

On Fri, Jul 13, 2018 at 8:14 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2018-07-13 18:31 GMT+02:00, Mohammed Bey Ahmed Khernache <
> mohbeyinfo at gmail.com>:
> >> Why didn't you start with the configure line I provided (and tested)?
> >>>The following configure line works fine here:
> >>> $ ./configure --cross-prefix=../ndk-arm64-23/bin/aarch64-linux-android-
> >>> --sysroot=../ndk-arm64-23/sysroot --arch=arm64 --target-os=android
> > That works fine. Thank you very much.
>
> > Of course, I added "-pie" option to allow running it on Android Lollipop.
>
> Could you elaborate?
> The compiler by default generates binaries that do not run
> on Android?
>
> Please cut your quotes, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list