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.omake: arm-none-linux-gnueabi-g++: Command not foundmake: *** [hello_world_opencl.o] Error 127
What am I doing wrong? How can I fix this issue?
Thanks for your time and help,
David
Hello Myy, I ran the commands: sudo dpkg --add-architecture armhf sudo apt-get update I noticed an errors: W: Failed to fetch ppa.launchpad.net/.../Sources 404 Not Found W: Failed to fetch ppa.launchpad.net/.../Packages 404 Not Found W: Failed to fetch ppa.launchpad.net/.../Packages 404 Not Found Then when I ran this: sudo apt-get install gcc-arm-linux-gnueabihf sudo apt-get install g++-arm-linux-gnueabihf However, when I run these commands, I get an error message stating "Unable to locate package". Any advice or help? Sorry to keep bothering you with these issues. Thanks, David
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.
Still, it's just a user program available for multiple architectures, including Intel architectures.
Yes, as stated above, in order to use a Linaro pre-packaged toolset, you'll have to download the appropriate archive from linaro's HTTP repository and :
Extract the archive in a folder
Then add the folder to your path, like this:export PATH="$PATH":/path/to/gcc-linaro-arm-linux-gnueabihf-*_linux/bin/
export PATH="$PATH":/path/to/gcc-linaro-arm-linux-gnueabihf-*_linux/bin/