qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

does not compile under android NDK when WEBP_ANDROID_NEON #214

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use WEBP_ANDROID_NEON for android ndk
2.
3.

What is the expected output? What do you see instead?

I got 1>D:\work\hero\src\branches\nomarmalade\Diamond\webp\dsp\cpu.c(60,3): 
error : unknown type name 'AndroidCpuFamily'
1>     const AndroidCpuFamily cpu_family = android_getCpuFamily();

What version of the product are you using? On what operating system?
NDK R9d

also include file cpu-futures.h is placed in "machine" subdirectory of includes

Original issue reported on code.google.com by SergeySo...@gmail.com on 22 Jul 2014 at 7:27

GoogleCodeExporter commented 8 years ago
r9d works just fine for me using the Android.mk in our repository. This follows 
the recommendations in CPU-FEATURES.html [1].
How are you building the library?

[1] 
https://chromium.googlesource.com/android_tools/+/master-backup/ndk/docs/CPU-FEA
TURES.html

Original comment by jz...@google.com on 23 Jul 2014 at 12:10

GoogleCodeExporter commented 8 years ago
oh thanks. I haven't know about using this library

Original comment by SergeySo...@gmail.com on 23 Jul 2014 at 6:08

GoogleCodeExporter commented 8 years ago
for completeness the following will work within the libwebp directory:
$ ndk-build \
  NDK_PROJECT_PATH=.. \
  APP_BUILD_SCRIPT=Android.mk \
  APP_ABI=all \
  APP_OPTIM=release

alternatively you can move/symlink the directory to jni, then from the 
top-level:
$ ndk-build \
  APP_ABI=all \
  APP_OPTIM=release

Original comment by jz...@google.com on 24 Jul 2014 at 2:29