acomminos / Jumble

An Android service implementation of the Mumble protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NDK build celt-0.11.0 catch Error

bi7jta opened this issue · comments

hi:
When I download celt-0.11.0 code ,build Jumble in Abdrid Studio v2.3 , I found error, anyone know what cause?
Thanks!

:libraries:Jumble:ndkBuild
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14.
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 i
n /work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
make: Entering directory `/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni'
[armeabi-v7a] Compile thumb : jnicelt11 <= bands.c

In file included from /work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/bands.c:41:
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses]
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~~~^~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: note: place parentheses around the '-' expression to silence this warning
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~^~~~~~~~~
。。。。。

/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: note: place parentheses around the '-' expression to silence this warning
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~^~~~~~~~~
1 warning generated.

[armeabi-v7a] Compile thumb : jnicelt11 <= plc.c

In file included from /work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/plc.c:34:
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses]
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~~~^~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: note: place parentheses around the '-' expression to silence this warning
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~^~~~~~~~~
1 warning generated.

[armeabi-v7a] Compile thumb : jnicelt11 <= quant_bands.c

In file included from /work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/quant_bands.c:33:
In file included from /work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/quant_bands.h:36:
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses]
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~~~^~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: note: place parentheses around the '-' expression to silence this warning
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~^~~~~~~~~
1 warning generated.

[armeabi-v7a] Compile thumb : jnicelt11 <= rate.c

/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/rate.c:498:44: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
extra_fine = IMIN(excess >> stereo+BITRES, MAX_FINE_BITS-ebits[j]);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/arch.h:68:21: note: expanded from macro 'IMIN'
#define IMIN(a,b) ((a) < (b) ? (a) : (b)) /< Minimum int value. */
^
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/rate.c:498:44: note: place parentheses around the '+' expression to silence this warning
extra_fine = IMIN(excess >> stereo+BITRES, MAX_FINE_BITS-ebits[j]);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/arch.h:68:21: note: expanded from macro 'IMIN'
#define IMIN(a,b) ((a) < (b) ? (a) : (b)) /
< Minimum int value. */
^
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/rate.c:498:44: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
extra_fine = IMIN(excess >> stereo+BITRES, MAX_FINE_BITS-ebits[j]);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/arch.h:68:33: note: expanded from macro 'IMIN'
#define IMIN(a,b) ((a) < (b) ? (a) : (b)) /< Minimum int value. */
^
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/rate.c:498:44: note: place parentheses around the '+' expression to silence this warning
extra_fine = IMIN(excess >> stereo+BITRES, MAX_FINE_BITS-ebits[j]);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/arch.h:68:33: note: expanded from macro 'IMIN'
#define IMIN(a,b) ((a) < (b) ? (a) : (b)) /
< Minimum int value. */
^
2 warnings generated.

[armeabi-v7a] Compile thumb : jnicelt11 <= vq.c

In file included from /work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/vq.c:33:
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses]
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~~~^~~~~~~~~
/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/celt-0.11.0-src/libcelt/mathops.h:155:49: note: place parentheses around the '-' expression to silence this warning
static const celt_word16 C[5] = {-6801+(1<<13-DB_SHIFT), 15746, -5217, 2545, -1401};
~~^~~~~~~~~
1 warning generated.

[armeabi-v7a] Compile++ thumb: jnicelt11 <= jnicelt11.cpp

/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/jnicelt11.cpp:1047:22: error: use of undeclared identifier 'celt_mode_info'
int rvalue = celt_mode_info((const CELTMode*)ptr0, arg1, ptr2);
^
1 error generated.
make: *** [/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/obj/local/armeabi-v7a/objs/jnicelt11//work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/jnicelt11.o] Error 1

make: Leaving directory `/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni'
:libraries:Jumble:ndkBuild FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':libraries:Jumble:ndkBuild'.

Process 'command '/Users/huanghuorong3/Library/Android/sdk/ndk-bundle/ndk-build'' finished with non-zero exit value 2

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

[armeabi-v7a] Compile++ thumb: jnicelt11 <= jnicelt11.cpp

/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/jnicelt11.cpp:1047:22: error: use of undeclared identifier 'celt_mode_info'
int rvalue = celt_mode_info((const CELTMode*)ptr0, arg1, ptr2);
^
1 error generated.
make: *** [/work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/obj/local/armeabi-v7a/objs/jnicelt11//work_studio/mumbleServer/Plumble-android/libraries/Jumble/src/main/jni/jnicelt11.o] Error 1

Hello,

Did you get solution for above error? I am also facing same error.