How to compile ffmpeg on Android

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

How to compile ffmpeg on Android

mohammed bey ahmed khernache
Hello,
Can someone guide me to compile FFmpeg on Android OS. I am using *adb shell*.
The commands are very restricted, no apt-get, no git ....
Your help is very appreciated.

Best regards


----------------------------------------------------------------------------
Mohammed BEY AHMED KHERNACHE
PhD student
Lab-STICC / CNRS UMR 6285
University of Southern Brittany, Lorient, France
Tel: +33-783-700-185
Email: [hidden email]
----------------------------------------------------------------------------
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Reindl Harald


Am 09.07.2018 um 11:04 schrieb Mohammed Bey Ahmed Khernache:
> Can someone guide me to compile FFmpeg on Android OS. I am using *adb shell*.
> The commands are very restricted, no apt-get, no git ....
> Your help is very appreciated

you don't
https://en.wikipedia.org/wiki/Cross_compiler
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
In reply to this post by mohammed bey ahmed khernache
2018-07-09 11:04 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:

> Can someone guide me to compile FFmpeg on Android OS.

Are you sure that there is a C compiler that runs *on* Android?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Zwanzig
On 7/10/2018 5:20 AM, Carl Eugen Hoyos wrote:
> Are you sure that there is a C compiler that runs*on*  Android?

AFAICT, pretty much all android development is done via cross-compilers.

Later,

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

mohammed bey ahmed khernache
In reply to this post by Carl Eugen Hoyos-2
>  Are you sure that there is a C compiler that runs *on* Android?
No, I am not sure. I am newbie on Android OS command line.
I am trying cross-compilation.
​​

On Tue, Jul 10, 2018 at 2:26 PM Carl Eugen Hoyos <[hidden email]> wrote:

> 2018-07-09 11:04 GMT+02:00, Mohammed Bey Ahmed Khernache <
> [hidden email]>:
>
> > Can someone guide me to compile FFmpeg on Android OS.
>
> Are you sure that there is a C compiler that runs *on* Android?
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

mohammed bey ahmed khernache
Till now, i always get the error:
C compiler test failed
So I can not compile for Android.
I am using NDK-r17b.

On Tue, Jul 10, 2018 at 7:00 PM Mohammed Bey Ahmed Khernache <
[hidden email]> wrote:

> >  Are you sure that there is a C compiler that runs *on* Android?
> No, I am not sure. I am newbie on Android OS command line.
> I am trying cross-compilation.
> ​​
>
> On Tue, Jul 10, 2018 at 2:26 PM Carl Eugen Hoyos <[hidden email]>
> wrote:
>
>> 2018-07-09 11:04 GMT+02:00, Mohammed Bey Ahmed Khernache <
>> [hidden email]>:
>>
>> > Can someone guide me to compile FFmpeg on Android OS.
>>
>> Are you sure that there is a C compiler that runs *on* Android?
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Zwanzig
On 7/10/2018 7:47 PM, Mohammed Bey Ahmed Khernache wrote:
> Till now, i always get the error:
> C compiler test failed
> So I can not compile for Android.
> I am using NDK-r17b.

I think you need to do some research on how to build applications for
android, this is not a good place to ask. Try building some other, simpler,
apps and then try ffmpeg.

You also need to stop top-posting, if you're not sure what that is, look it
up in wikipedia.

Later,

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
In reply to this post by mohammed bey ahmed khernache
2018-07-11 4:47 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:
> Till now, i always get the error:

Always?
Or did you type something specific before you get the error?

> C compiler test failed

Is this the only thing printed?

Please do not top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Taner Sener
In reply to this post by mohammed bey ahmed khernache
>
> >Till now, i always get the error:
> >C compiler test failed
> >So I can not compile for Android.
> >I am using NDK-r17b.
>

"Building Open Source Projects Using Standalone Toolchains" section in the
following official document describes necessary steps to compile an
open-source project
https://developer.android.com/ndk/guides/standalone_toolchain

If you have an error, most of the time ffbuild/config.log file includes the
details about it.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

mohammed bey ahmed khernache
In reply to this post by Carl Zwanzig
>  I think you need to do some research on how to build applications for
> android, this is not a good place to ask. Try building some other,
simpler,
> apps and then try ffmpeg.
Thank you or your reply. That makes me sure that the issue comes from the
compiler and from ffmpeg.


On Wed, Jul 11, 2018 at 5:08 AM Carl Zwanzig <[hidden email]> wrote:

> On 7/10/2018 7:47 PM, Mohammed Bey Ahmed Khernache wrote:
> > Till now, i always get the error:
> > C compiler test failed
> > So I can not compile for Android.
> > I am using NDK-r17b.
>
> I think you need to do some research on how to build applications for
> android, this is not a good place to ask. Try building some other,
> simpler,
> apps and then try ffmpeg.
>
> You also need to stop top-posting, if you're not sure what that is, look
> it
> up in wikipedia.
>
> Later,
>
> z!
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
In reply to this post by mohammed bey ahmed khernache
2018-07-11 4:47 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:
> Till now, i always get the error:
> C compiler test failed

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

It looks as if I installed ndk version 23 for arm64 into .. some time ago.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Rafael Lima
https://github.com/bolds07/ffmpeg-for-android-for-dummies

On Wed, Jul 11, 2018 at 6:43 PM, Carl Eugen Hoyos <[hidden email]>
wrote:

> 2018-07-11 4:47 GMT+02:00, Mohammed Bey Ahmed Khernache <
> [hidden email]>:
> > Till now, i always get the error:
> > C compiler test failed
>
> 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
>
> It looks as if I installed ndk version 23 for arm64 into .. some time ago.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>



--
--
Rafael Lima
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
2018-07-12 0:01 GMT+02:00, Rafael Lima <[hidden email]>:
> https://github.com/bolds07/ffmpeg-for-android-for-dummies

Yes, apart from being outdated and broken (as every other script
I have seen so far), this one has the great advantage that it
produces binaries that you cannot legally distribute - that must
help many users...

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Rafael Lima
Are you jealous? did you at least tried to build?

it is not outdated and not broken... as I've made it few weeks ago using
the latest version from every lib i needed for my project...

if you dont need all of them it's good you can simple remove from config
file... a work that seams to hard for you to do

On Wed, Jul 11, 2018 at 7:13 PM, Carl Eugen Hoyos <[hidden email]>
wrote:

> 2018-07-12 0:01 GMT+02:00, Rafael Lima <[hidden email]>:
> > https://github.com/bolds07/ffmpeg-for-android-for-dummies
>
> Yes, apart from being outdated and broken (as every other script
> I have seen so far), this one has the great advantage that it
> produces binaries that you cannot legally distribute - that must
> help many users...
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>



--
--
Rafael Lima
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

mohammed bey ahmed khernache
I am doing cross-compilation. I am running on Ubuntu x86_64. My target os
is: android.
I used the script below:
-------------------------------------------------------------------------------------------------------------------------------
#!/bin/bash
#Change NDK to your Android NDK location

pushd .
cd ../ffmpeg
PLATFORM=$NDK/platforms/android-21/arch-arm64/
PREBUILT=$NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64

GENERAL="\
--enable-small \
--enable-cross-compile \
--extra-libs="-lgcc" \
--arch=aarch64 \
--cc=$PREBUILT/bin/aarch64-linux-android-gcc \
--cross-prefix=$PREBUILT/bin/aarch64-linux-android- \
--nm=$PREBUILT/bin/aarch64-linux-android-nm \
--extra-cflags="-I../ffmpeg-build/armeabi-v8a/include" \
--extra-ldflags="-L../ffmpeg-build/armeabi-v8a/lib" "

MODULES="\
--enable-gpl"

function build_arm64
{
  ./configure \
  --logfile=conflog.txt \
  --target-os=android \
  --prefix=$PREFIX/armeabi-v8a \
  ${GENERAL} \
  --sysroot=$PLATFORM \
  --extra-cflags="" \
  $COMMON_FLAGS \
  --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib
-nostdlib -lc -lm -ldl -llog" \
  --enable-shared \
  --disable-static \
  --disable-doc \
  ${MODULES}

  make clean
  make
  make install
}

build_arm64


echo Android ARM64v8a builds finished

popd
-------------------------------------------------------------------------------------------------------------------------------

The error I got is below:
-------------------------------------------------------------------------------------------------------------------------------
WARNING:
/home/mohammedbey/Desktop/ffmpeg_sources/android-ndk-r17b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-pkg-config
not found, library detection may fail.
config.h is unchanged
libavutil/avconfig.h is unchanged
libavfilter/filter_list.c is unchanged
libavcodec/codec_list.c is unchanged
libavcodec/parser_list.c is unchanged
libavcodec/bsf_list.c is unchanged
libavformat/demuxer_list.c is unchanged
libavformat/muxer_list.c is unchanged
libavdevice/indev_list.c is unchanged
libavdevice/outdev_list.c is unchanged
libavformat/protocol_list.c is unchanged
ffbuild/config.sh is unchanged
GEN libavutil/libavutil.version
GEN libswscale/libswscale.version
GEN libswresample/libswresample.version
GEN libpostproc/libpostproc.version
GEN libavcodec/libavcodec.version
GEN libavformat/libavformat.version
GEN libavfilter/libavfilter.version
GEN libavdevice/libavdevice.version
CC libavdevice/alldevices.o
In file included from ./libavformat/internal.h:24:0,
                 from libavdevice/alldevices.c:23:
/home/mohammedbey/Desktop/ffmpeg_sources/android-ndk-r17b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/include/stdint.h:9:26:
fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
ffbuild/common.mak:60: recipe for target 'libavdevice/alldevices.o' failed
make: *** [libavdevice/alldevices.o] Error 1
CC libavdevice/alldevices.o
In file included from ./libavformat/internal.h:24:0,
                 from libavdevice/alldevices.c:23:
/home/mohammedbey/Desktop/ffmpeg_sources/android-ndk-r17b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/include/stdint.h:9:26:
fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
ffbuild/common.mak:60: recipe for target 'libavdevice/alldevices.o' failed
make: *** [libavdevice/alldevices.o] Error 1
Android ARM64v8a builds finished
/home/mohammedbey/Desktop/ffmpeg4Android-master/ffmpeg-build-script
-------------------------------------------------------------------------------------------------------------------------------



----------------------------------------------------------------------------
Mohammed BEY AHMED KHERNACHE
PhD student
Lab-STICC / CNRS UMR 6285
University of Southern Brittany, Lorient, France
Tel: +33-783-700-185
Email: [hidden email]
----------------------------------------------------------------------------



On Thu, Jul 12, 2018 at 12:33 AM Rafael Lima <[hidden email]> wrote:

> Are you jealous? did you at least tried to build?
>
> it is not outdated and not broken... as I've made it few weeks ago using
> the latest version from every lib i needed for my project...
>
> if you dont need all of them it's good you can simple remove from config
> file... a work that seams to hard for you to do
>
> On Wed, Jul 11, 2018 at 7:13 PM, Carl Eugen Hoyos <[hidden email]>
> wrote:
>
> > 2018-07-12 0:01 GMT+02:00, Rafael Lima <[hidden email]>:
> > > https://github.com/bolds07/ffmpeg-for-android-for-dummies
> >
> > Yes, apart from being outdated and broken (as every other script
> > I have seen so far), this one has the great advantage that it
> > produces binaries that you cannot legally distribute - that must
> > help many users...
> >
> > Carl Eugen
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
> >
>
>
>
> --
> --
> Rafael Lima
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
2018-07-13 7:03 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

mohammed bey ahmed khernache
> 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 <[hidden email]> wrote:

> 2018-07-13 7:03 GMT+02:00, Mohammed Bey Ahmed Khernache <
> [hidden email]>:
> > 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

mohammed bey ahmed khernache
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 <
[hidden email]> 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 <[hidden email]>
> wrote:
>
>> 2018-07-13 7:03 GMT+02:00, Mohammed Bey Ahmed Khernache <
>> [hidden email]>:
>> > 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
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
In reply to this post by mohammed bey ahmed khernache
2018-07-13 18:31 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:
>> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to compile ffmpeg on Android

Carl Eugen Hoyos-2
In reply to this post by mohammed bey ahmed khernache
2018-07-13 18:58 GMT+02:00, Mohammed Bey Ahmed Khernache <[hidden email]>:

> 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

(As said, please do not top-post here.)

Since you are not the first one this week:
Why are you using "--enable-nonfree"?

I know that "pkg-config-flags" can be helpful but I wonder which
difference it makes for the given configure line, same for the
include and lib directories.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
12