Budius
Budius

Reputation: 39846

Having problems compiling ffmpeg for Android

I'm trying to compile ffmpeg for Android using this guy script (https://github.com/guardianproject/android-ffmpeg) because it looked like the simplest and the whole NDK is really not my area of expertise.

So let's see what I've done so far:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install build-essential

$ gcc -v

$ make -v

it mostly goes well until it says:

arm-linux-androideabi-gcc is unable to create an executable file C compiler test failed

If you think configure made a mistake,.. blaah blahh blaah

I'm not sure what it means or where to go from here. from this I did some chmod 777 on the folders to make sure stuff can be execute.

also from this I tried his script but without any luck.

help?

Upvotes: 2

Views: 989

Answers (1)

Robert Rowntree
Robert Rowntree

Reputation: 6289

decompose what the script 'config_make_everything' is doing.. and run one step at a time...

https://github.com/guardianproject/android-ffmpeg/blob/master/configure_make_everything.sh

each step will create a file like 'config.log' where you can go to the tail and find more details about what went wrong finding the compiler.

When u start using the NDK, IMO, invest a bit of learn curve time going thru its ./doc directory and making sure that you have it integrated correctly. With NDK install, there are some samples. Build a few from CLI just to make sure that the ENV is correct and that the install is good, and that u have at least some idea of the build as a repeatable process. That will prove that you can do good 'cross compiles' with the build tools. Then you can return to guardian.ffmpeg stuff.

IMO - there is alot going on with an NDK build of this project and getting it all to build without understanding any of the underlying configuration / build stack would require lots of luck.

Upvotes: 2

Related Questions