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

Create Android activity file for Mali OpenCL Samples

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

Parents Reply Children
  • 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.

    Hth,

    Chris

  • 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?