Hi all,
The build error "fatal error: arm_compute/runtime/NEON/NEFunctions.h: No such file or directory" suggests that the ARM_COMPUTELIB environment variable may be incorrectly set.
This may perhaps be if you have setup the envrionment variables at the end of the ~/.bashrc script instead of the beginning.
In order to execute commands non-interactively, such as the codegen command from MATLAB on a host to compile on the Raspberry Pi, the environment variables need to be setup inside the
case $- in
*i*) ;;
*)
...
return;;
esac
block in the ~/.bashrc script. This section can be found in the first few lines of the ~/.bashrc script for non-interactive,non-login shells. Here is how it is setup for me for reference
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively
case $- in
*i*) ;;
*) export ARM_COMPUTELIB=~/ComputeLibrary
export PATH=${PATH}:~/ComputeLibrary
export LD_LIBRARY_PATH=~/opencv-3.2.0/build/lib:~/ComputeLibrary/lib:$LD_LIBRARY_PATH
return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
Alternatively, you can setup environment variables in the first few lines of the ~/.bashrc before the return;; statement
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
export ARM_COMPUTELIB=~/ComputeLibrary
export PATH=${PATH}:~/ComputeLibrary
export LD_LIBRARY_PATH=~/opencv-3.2.0/build/lib:~/ComputeLibrary/lib:$LD_LIBRARY_PATH
# If not running interactively
case $- in
*i*) ;;
*)
return;;
esac