On Wed, Mar 13, 2019 at 3:51 AM ChongMeng Eng <
cmen...@gmail.com> wrote:
> I am trying to build libvpx (v1.8.0) library for abi arm64-v8a to be used in aTalk. It seems that the configure option for arm64-android-gcc picks up the incorrect gcc for arch64 library build.
This target is built every night:
https://build.webmproject.org/jenkins/view/libvpx%20nightly/job/libvpx__compile_android/APP_ABI=arm64-v8a,APP_OPTIM=release,APP_STL=c++_static,NDK_TOOLCHAIN_VERSION=clang,build_type=ndk,shared=0/897/console
> Below is the configure option specified i.e:
> ./configure --sdk-path=/opt/android/android-ndk-r17c --prefix=/home/cmeng/workspace/ndk/ffmpeg-android/android/arm64-v8a --target=arm64-android-gcc --cpu=cortex-a57 --as=yasm --enable-static --disable-docs --disable-examples --disable-tools --disable-runtime-cpu-detect --enable-realtime-only --enable-vp8 --enable-vp9 --enable-vp9-postproc --enable-vp9-highbitdepth --extra-cflags=-isystem /opt/android/android-ndk-r17c/sysroot/usr/include/aarch64-linux-android -isystem /opt/android/android-ndk-r17c/sysroot/usr/include --disable-webm-io
Try:
./libvpx/configure --target=arm64-android-gcc --disable-docs
--sdk-path=/opt/android-ndk-r18/ --enable-external-build
ndk-build APP_BUILD_SCRIPT=./libvpx/test/android/Android.mk
APP_ABI=arm64-v8a APP_PLATFORM=android-21 APP_OPTIM=release
APP_STL=c++_static NDK_TOOLCHAIN_VERSION=clang ENABLE_SHARED=0
> However the generated
lib-arm64-android-gcc.mk specifies an incorrect gcc for use (see attached) e.g. arm-linux-androideabi-gcc instead of aarch64-linux-android-gcc
I don't think ndk-build uses the CC specified there.
> Actually the build scripts exported the CC etc parameters for use, but seems to be ignored by libvpx configure.
>
> Please refer to the following site for more info (note: local script changes yet to be push to online repository, I have attached herewith the latest main updated files:):
>
https://github.com/cmeng-git/ffmpeg-android
>
> Would appreciate if you can provide a quick patch for the observed problem:
>
> --
> You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
webm-discuss...@webmproject.org.
> To post to this group, send email to
webm-d...@webmproject.org.
> Visit this group at
https://groups.google.com/a/webmproject.org/group/webm-discuss/.
> For more options, visit
https://groups.google.com/a/webmproject.org/d/optout.