Hello
I am having the Mali Opencl SDK v1.1.0
I want to run those samples in Android.
I am having OpenCL libraries so that s not an issue.
But i want to generate the activity files and native files for the corresponding cpp files.
Plse help me out.
Thks
Thanks Tim for ur response.
I hv actually pulled the openCL library from the Mali T-628 gpu ( Odroid-xu3) and i hv installed in my laptop.But as ur saying my lap doesnt hv a gpu so trying to run the OpenCL code will not be a good idea as the very objective of OpenCL i.e better compute wont be achieved.
So if I want to run the cpp file in the Odroid-xu3 ( there are no problems of drivers here ) what should i do ?
Is it enough if i just transfer the file to the board and then run?
Aravind
Hi Aravind,
The libOpenCL.so from your Odroid is built for ARM and Android, so it is binary incompatible with your X86 Windows/Linux laptop, regardless of GPU.
Hth,
Chris
Thks Chris.
You'll need to build a binary for your device using the NDK toolchains available, and then run that on the device. You won't be able to run the .cpp file without compiling it first and you won't be able to run any binary you've compiled with the host GCC toolchain either as this will be binary incompatible with the development platform.
Thanks Chris.
ndk-build NDK_APP_APPLICATION_MK=<file> --> rebuild, using a specific Application.mk pointed to by the NDK_APP_APPLICATION_MK command-line variable.
-------------------
Application.mk:
APP_ABI := armeabi-v7a
APP_PLATFORM := android-19
APP_STL := gnustl_static
APP_CPPFLAGS += -fexceptions -frtti.
------------------
Will this work?
Alternatively,I boot Odroid-xu3 in Ubuntu and then install Mali SDK and compile the cpp sources. Will it run?