Search code examples
androidffmpegndk-build

How can I build .a files with ffmpeg?


I followed this tutorial and build ffmpeg.

But, it only build .so files and include folder.

I want to build .a files. My build files.

How can I build .a files with ffmpeg?


Solution

  • The tutorial you followed had you use --disable-static which disables the creation of static libraries. Remove it and re-compile.

    You only need to add --enable-static if you also include --enable-shared: this combination will provide both static and shared libraries. Without --enable-shared the static libraries will be created by default.

    Options                                         Resulting libraries
    ./configure                                     static
    ./configure --enable-static                     static
    ./configure --enable-shared                     shared
    ./configure --enable-shared --enable-static     shared and static