This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

android can't add the cortex a8 neon assermbly function?

Parents
  • Note: This was originally posted on 24th July 2012 at http://forums.arm.com


    E:/DSP/2d_lib//obj/local/armeabi/objs/v2d/main.o: In function `GetOneFrame(unsigned char*, unsigned char*)':
    E:/DSP/2d_lib//jni/main.cpp:239: undefined reference to `yuv422torgb888(unsigned char*, unsigned char*, void*, int)'
    collect2: ld returned 1 exit status
    make: *** [E:/DSP/2d_lib//obj/local/armeabi/libv2d.so] Error 1 How to fix this problem ?


    The problem is not due to NEON but to the assembly function declaration !

    I've written a simple assembly ADD example for Android
    If you speak french
    http://pulsar.websha.../07/13/android/

    else you can translate with google

    The interesting part for you is


       .global  Java_com_example_helloandroid_HelloAndroid_sommeAsm
       .type    Java_com_example_helloandroid_HelloAndroid_sommeAsm, %function
    Java_com_example_helloandroid_HelloAndroid_sommeAsm:
       vadd.s16    d0, d0, d0
       add      r0, r2, r3
       mov      pc, lr
       .size    Java_com_example_helloandroid_HelloAndroid_sommeAsm, .-Java_com_example_helloandroid_HelloAndroid_sommeAsm


    Give you assembly function here if you want some more explanation !
Reply
  • Note: This was originally posted on 24th July 2012 at http://forums.arm.com


    E:/DSP/2d_lib//obj/local/armeabi/objs/v2d/main.o: In function `GetOneFrame(unsigned char*, unsigned char*)':
    E:/DSP/2d_lib//jni/main.cpp:239: undefined reference to `yuv422torgb888(unsigned char*, unsigned char*, void*, int)'
    collect2: ld returned 1 exit status
    make: *** [E:/DSP/2d_lib//obj/local/armeabi/libv2d.so] Error 1 How to fix this problem ?


    The problem is not due to NEON but to the assembly function declaration !

    I've written a simple assembly ADD example for Android
    If you speak french
    http://pulsar.websha.../07/13/android/

    else you can translate with google

    The interesting part for you is


       .global  Java_com_example_helloandroid_HelloAndroid_sommeAsm
       .type    Java_com_example_helloandroid_HelloAndroid_sommeAsm, %function
    Java_com_example_helloandroid_HelloAndroid_sommeAsm:
       vadd.s16    d0, d0, d0
       add      r0, r2, r3
       mov      pc, lr
       .size    Java_com_example_helloandroid_HelloAndroid_sommeAsm, .-Java_com_example_helloandroid_HelloAndroid_sommeAsm


    Give you assembly function here if you want some more explanation !
Children
No data