Android; ARM NEON; Can't compile project with "arm_neon.h";

1,661 views
Skip to first unread message

Denis Pozharskiy

unread,
Oct 3, 2011, 4:43:46 AM10/3/11
to andro...@googlegroups.com
Hi everybody.

I try to work with ARM_NEON coprocessor.
To turn on support of NEON I include "arm_neon.h" in my project. When I tryed to compile this I got error message (see below). 
I think problem connected with compilator flags. 

Could you give me advice, please. Which flags I need to use. Or any other solution?
Thanks in advance.

PS I'm using latest NDK "android-ndk-r6b" from "android.com", Platform ARM Cortex-A8.

Error message (showing only for first function, the same situation for each other function definitions).

In file included from D:/work/sdk/h264enc/src/encoder/process_row/jni/../../../opt/noOPT/preproc.c:4:
D:\android-ndk-r6\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.4.3/inc
lude/arm_neon.h: In function 'vadd_s8':
D:\android-ndk-r6\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.4.3/inc
lude/arm_neon.h:402: error: incompatible type for argument 1 of '__builtin_neon_vaddv8qi'
D:\android-ndk-r6\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.4.3/inc
lude/arm_neon.h:402: note: expected '__builtin_neon_qi __vector__' but argument is of type 'int8x8_t'
D:\android-ndk-r6\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.4.3/inc
lude/arm_neon.h:402: error: incompatible type for argument 2 of '__builtin_neon_vaddv8qi'
D:\android-ndk-r6\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.4.3/inc
lude/arm_neon.h:402: note: expected '__builtin_neon_qi __vector__' but argument is of type 'int8x8_t'
make: *** [/cygdrive/d/work/sdk/h264enc/src/encoder/process_row/obj/local/armeabi-v7a/objs/vsshencoderlib/../../../opt/n
oOPT/preproc.o] Error 1

David Turner

unread,
Oct 4, 2011, 12:06:03 PM10/4/11
to andro...@googlegroups.com
Quick question, did you follow the instructions at docs/CPU-ARM-NEON.html to enable NEON compilation too?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/eiuZbFWb_VYJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Reply all
Reply to author
Forward
0 new messages