We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,Guys,
When I using NDK to build the Mali OpenCL SDK v1.1.0.0a36a7 for Windows to get libOpenCL.so. I got an error:attributes are not allowed on a function-definition. The whole error log as follows:
F:\Mali OpenCL SDK v1.1.0\lib>make
E:/software/android-ndk-r8e-windows-x86_64/android-ndk-r8e/toolchains/arm-linux-
androideabi-4.7/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -fpic -sha
red -I../include/ -IE:/software/android-ndk-r8e-windows-x86_64/android-ndk-r8e/p
latforms/android-14/arch-arm/usr/include -I E:/software/android-ndk-r8e-windows-
x86_64/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include -I E:/software/
android-ndk-r8e-windows-x86_64/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7
/libs/armeabi/include -o libOpenCL.so opencl_stubs.c
opencl_stubs.c:132:3: error: attributes are not allowed on a function-definition
make: *** [libOpenCL.so] Error 1
I needs some help .
Thanks .
I'll try and repro this later on, but offhand have you tried with a more recent NDK?
Chris
Hi phenix
The OpenCL SDK doesnt support building for Android. It is only targetted for Linux on ARM.
Kind Regards,
Michael McGeagh