Problem with building libvpx fro android

306 views
Skip to first unread message

lebro...@gmail.com

unread,
Dec 15, 2017, 3:32:11 AM12/15/17
to Codec Developers
Hello! I need use vp8 encoding in my android app. So i need to compile libvpx for android with NDK. I use steps in this qiestion build vp8 on android to do that. I use android-ndk-r15c for compile. First i run configuration:

libvpx_android/jni$ ./libvpx/configure --target=armv7-android-gcc --disable-examples --sdk-path=/home/android-ndk-r15c

have output:

disabling examples
  enabling vp8_encoder
  enabling vp8_decoder
  enabling vp9_encoder
  enabling vp9_decoder
Configuring for target 'armv7-android-gcc'
  enabling armv7
  enabling neon
  enabling neon_asm
  enabling realtime_only
  enabling runtime_cpu_detect
  enabling webm_io
  enabling libyuv
Creating makefiles for armv7-android-gcc libs
Creating makefiles for armv7-android-gcc tools
Creating makefiles for armv7-android-gcc docs

then i run build with:

/home/android-ndk-r15c/ndk-build

and got error:

[armeabi-v7a] Install        : liboggJNI.so => libs/armeabi-v7a/liboggJNI.so
[armeabi-v7a] Install        : libvorbisJNI.so => libs/armeabi-v7a/libvorbisJNI.so
[armeabi-v7a] Compile arm    : vpx <= vpx_config.c
[armeabi-v7a] StaticLibrary  : libvpx.a
[armeabi-v7a] SharedLibrary  : libvpxJNI.so
[armeabi-v7a] Install        : libvpxJNI.so => libs/armeabi-v7a/libvpxJNI.so
[armeabi-v7a] Compile++ arm  : webmJNI <= Cluster.cc
/home/libvpx_android/jni/bindings/JNI/webm/mkvmuxer/Cluster.cc:73:63: error: no matching constructor for initialization of
      'mkvmuxer::Cluster'
  jlong jCluster = reinterpret_cast<jlong>(new (std::nothrow) mkvmuxer::Cluster(
                                                              ^
/home/libvpx_android/jni/bindings/JNI/libwebm/mkvmuxer/mkvmuxer.h:1387:36: note: candidate constructor not viable: requires
      1 argument, but 2 were provided
  LIBWEBM_DISALLOW_COPY_AND_ASSIGN(Cluster);
                                   ^
/home/libvpx_android/jni/bindings/JNI/libwebm/mkvmuxer/mkvmuxer.h:1203:3: note: candidate constructor not viable: requires
      at least 3 arguments, but 2 were provided
  Cluster(uint64_t timecode, int64_t cues_pos, uint64_t timecode_scale,
  ^
1 error generated.

James Zern

unread,
Dec 15, 2017, 3:29:15 PM12/15/17
to codec...@webmproject.org
Hi,

On Thu, Dec 14, 2017 at 2:22 AM, <lebro...@gmail.com> wrote:
> Hello! I need use vp8 encoding in my android app. So i need to compile
> libvpx for android with NDK. I use steps in this qiestion build vp8 on
> android to do that. I use android-ndk-r15c for compile. First i run
> configuration:
>

Thanks for the report, I filed a bug to track this:
https://bugs.chromium.org/p/webm/issues/detail?id=1480
> --
> You received this message because you are subscribed to the Google Groups
> "Codec Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codec-devel...@webmproject.org.
> To post to this group, send email to codec...@webmproject.org.
> Visit this group at
> https://groups.google.com/a/webmproject.org/group/codec-devel/.
> For more options, visit
> https://groups.google.com/a/webmproject.org/d/optout.

lebro...@gmail.com

unread,
Dec 16, 2017, 2:49:28 AM12/16/17
to Codec Developers
Thanks!
Reply all
Reply to author
Forward
0 new messages