I try to use the following scripts (see attached) to build libvpx using libvpx/build/make/Android.mk. Followings are the observation.
1. In order to generate all the xxx_rtcd.h etc files, I must include the 'make' process; when running the gen_abimk4vpx.sh.
I must also 'export BUILD_PFX=' with null parameter. Other values if specified will cause weired problems.
However following warnings are seen during the gen_abimk4vpx.sh build e.g.
a. vpx_dsp/x86/highbd_variance_sse2.c:171:1: warning: no previous prototype for function 'vpx_highbd_10_variance64x64_sse2' [-Wmissing-prototypes] etc...
b. opt/android/android-sdk/ndk/22.1.7171670//toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android-strip: Unable to recognise the format of the input file `libvpxrc_g.a(vp9_iht4x4_add_neon.c.o)' etc
In jni/Andorid.mk, I specified to run the jni/vpx/Android_ndk.mk. When I do a gradle sync, following error is reported
i.e. make: *** No rule to make target 'vpx_config.h', needed by 'vpx_config.asm'. Stop.
So I am unable to proceed with the jin/Android.mk build.
During configure preparation for the xxx.so buid, I have to move all the generated
libx-xxx.mk files to vpx/ directory as libvpx/build/make/Android.mk
makes referece to these files in the vpx/ location.
Actually my intention to use libvpx/build/make/Android.mk, so that aTalk will build the jnlibvpx.so file in a single step.
Currently aTalk use 2 steps process to build the jblibvpx.so library; using the previous enclosed scripts file i.e. running scripts in jin/static_library_built/vpx/.
Look like the current libvpx/build/make/Android.mk also needs 2 steps build process, little gain on migrating to this process.
If you refer to aTalk jni/opus build, it is a simple single step to build the jnopus.so library. This is what I am hoping for libvpx build.