Questions related to the Android NDK are best asked on the [android-ndk] Google Group.
On Tue, Sep 27, 2011 at 4:20 AM, Denis Pozharskiy <[email protected]> wrote: > 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 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

