Compile the Arm Compute Library
To compile natively on your Raspberry Pi, enter the following on the command-line:
# Clone Compute Library git clone https://github.com/Arm-software/ComputeLibrary.git # Enter ComputeLibrary folder cd ComputeLibrary # Native Build the library and the examples scons Werror=1 debug=0 asserts=0 neon=1 opencl=1 examples=1 build=native –j2
Or, to cross-compile, enter the following on the command-line:
# Clone Compute Library git clone https://github.com/Arm-software/ComputeLibrary.git # Enter ComputeLibrary folder cd ComputeLibrary # Build the library and the examples scons Werror=1 debug=0 asserts=0 neon=1 opencl=1 examples=1 os=linux arch=armv7a -j4 # Copy the example and dynamic libraries on the Raspberry Pi scp build/example/graph_alexnet build/libarm_compute.so build/libarm_compute_core.so build/libarm_compute_graph.so@ :Desktop
Where:
<username_raspberrypi>
is the username used on your Raspberry Pi.<ip_addr_raspberrypi>
is the IP address of your Raspberry Pi.