AnsweredAssumed Answered

Where can I get libOpenCL.so and libCLC.so for android 5.0 running on sabresd board

Question asked by Gang Li on Aug 4, 2015

Hi, everyone,

     Would anyone can tell me where can I get libOpenCL.so and libCLC.so for android 5.0 running on sabresd board ?

 

     I have already tried the libOpenCL_Android.so and libCLC_Android.so from here:

     OpenCL Hello World

     When I run the example, I get this error:

     CANNOT LINK EXECUTABLE: could not load library "libOpenCL.so" needed by "./cl_sample"; caused by cannot locate symbol "gcSHADER_Destroy" referenced by "libOpenCL.so"...

 

        

     And libOpenCL.so from yocto 3.10.53, When I run the example under android-5.0, I got this error:

 

     CANNOT LINK EXECUTABLE: could not load library "libOpenCL.so" needed by "./cl_sample"; caused by empty/missing DT_HASH in "libOpenCL.so" (built with --hash-style=gnu?)

 

 

     I built the example with follow command:

     arm-linux-androideabi-gcc -o $@ cl_sample.c -L. -lGAL -lOpenCL -I. -fPIE -pie

   

     the compiler arm-linux-androideabi-gcc is from android-ndk-r10

Original Attachment has been moved to: cl_sample.zip

Original Attachment has been moved to: cl_sample.c.zip

Original Attachment has been moved to: Makefile.zip

Outcomes