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

Mali OpenCL SDK compile problem

Hello,

I am trying to run the 'hello_world_opencl' sample program from the Mali OpenCL SDK on an Android platform (version 5.0.1). Using my Linux desktop with the terminal, I unzipped the Mali OpenCL SDK Linux download .tgz file. Following the ARM Mali OpenCL tutorials from the website, I changed directories to the hello_world_opencl directory and I tried to run the command 'make install' however I got the following error:

arm-none-linux-gnueabi-g++ -c -Wall -I../../include -I../../common -I. hello_world_opencl.cpp -o hello_world_opencl.o
make: arm-none-linux-gnueabi-g++: Command not found
make: *** [hello_world_opencl.o] Error 127

What am I doing wrong? How can I fix this issue?

Thanks for your time and help,

David

Parents
  • Yes you can. Cross-compiling is mainly done on x86(-64) machines anyway.

    The only big difference between a compiler and a cross-compiler is the machine code it outputs.

    • A compiler will output machine code for machine architecture it was invoked on. (e.g. x86 compiler program outputs x86 machine code)
    • A cross-compiler will output machine code for another type of architecture. (e.g. x86 cross-compiler program outputs ARM machine code)

    Still, it's just a user program available for multiple architectures, including Intel architectures.

Reply
  • Yes you can. Cross-compiling is mainly done on x86(-64) machines anyway.

    The only big difference between a compiler and a cross-compiler is the machine code it outputs.

    • A compiler will output machine code for machine architecture it was invoked on. (e.g. x86 compiler program outputs x86 machine code)
    • A cross-compiler will output machine code for another type of architecture. (e.g. x86 cross-compiler program outputs ARM machine code)

    Still, it's just a user program available for multiple architectures, including Intel architectures.

Children