How to create libvpx as a static library

In my jni directory, I run the following command:

$ ./libvpx/configure --target=armv7-android-gcc --disable-examples --sdk-path=/home/peter/adt/android-ndk-r9/

This leads to the generation of Android.mk in the libvpx / build / make directory

Then I create Android.mk in the jni directory:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
include libvpx/build/make/Android.mk

When I run ndk-build, it creates libvpx.so.

However, I would really like to create a static library.

I started all over and completed the configuration with an additional flag:

$ ./libvpx/configure --target=armv7-android-gcc --disable-examples --sdk-path=/home/peter/adt/android-ndk-r9/ --enable-static

However, running ndk-build still leads to the creation of libvpx.so.

Does anyone know how I can configure libvpx to create a static library? Thank you in advance for your help.

+4
source share
1 answer

, Android, libvpx .

, Android.mk script, , -, . , configure :

$ make clean
$ ./configure --target=armv7-android-gcc --disable-examples --sdk-path=/home/me/android-ndk-r9b/
$ make

, , , .

libvpx.a libvpx_g.a.

+1

All Articles