[FFmpeg-user] How to compile ffmpeg on Android

Mohammed Bey Ahmed Khernache mohbeyinfo at gmail.com
Fri Jul 13 19:58:26 EEST 2018


Another question: why *ffplay* is not produced?
After ./configure ...
in the output, I found:
Programms:
ffmpeg                            ffprobe

The command I run is:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
./configure --cross-prefix=../arm64-toolschains/bin/aarch64-linux-android-
--sysroot=../arm64-toolschains/sysroot/ --arch=arm64 --target-os=android
--prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static"
--extra-cflags="-I$HOME/ffmpeg_build/include -pie"
--extra-ldflags="-L$HOME/ffmpeg_build/lib -pie" --enable-ffplay
--bindir="$HOME/bin" --enable-gpl  --enable-nonfree



On Fri, Jul 13, 2018 at 6:31 PM Mohammed Bey Ahmed Khernache <
mohbeyinfo at gmail.com> wrote:

> > 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
> T
> ​hat works fine. Thank you very much.
> Of course, I added "-pie" option to allow running it on Android Lollipop.
> FFmpeg finally runs on Android.
>> ​Best regards​
>
> On Fri, Jul 13, 2018 at 1:49 PM Carl Eugen Hoyos <ceffmpeg at gmail.com>
> wrote:
>
>> 2018-07-13 7:03 GMT+02:00, Mohammed Bey Ahmed Khernache <
>> mohbeyinfo at gmail.com>:
>> > I am doing cross-compilation. I am running on Ubuntu x86_64.
>> > My target os is: android.
>> > I used the script below:
>>
>> Why didn't you start with the configure line I provided (and tested)?
>>
>> 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