This will install the Kernel headers for the latest Kernel version.
If the Kernel is not the latest version then the following module build is likely to fail.
E.g.:
make -C /lib/modules/4.14.34-v7+/build SUBDIRS=/home/pi/vocalfusion-stereo-avs-setup/vocalfusion-rpi-setup/loader modules
make[1]: *** /lib/modules/4.14.34-v7+/build: No such file or directory. Stop.
Makefile:5: recipe for target 'default' failed
The solution is to upgrade the Kernel:
sudo apt-get upgrade
sudo reboot
Note: The reboot is crucial. Otherwise important links won’t be updated.
E.g. uname -r will still show the old Kernel version although the Kernel was already updated to the latest version
The script or the documentation should ensure that the above upgrade and reboot commands are executed before building the loader
setup.sh updates the Kernel Header files with: sudo apt-get install raspberrypi-kernel-headers
This will install the Kernel headers for the latest Kernel version. If the Kernel is not the latest version then the following module build is likely to fail.
E.g.: make -C /lib/modules/4.14.34-v7+/build SUBDIRS=/home/pi/vocalfusion-stereo-avs-setup/vocalfusion-rpi-setup/loader modules make[1]: *** /lib/modules/4.14.34-v7+/build: No such file or directory. Stop. Makefile:5: recipe for target 'default' failed
The solution is to upgrade the Kernel: sudo apt-get upgrade sudo reboot
Note: The reboot is crucial. Otherwise important links won’t be updated. E.g. uname -r will still show the old Kernel version although the Kernel was already updated to the latest version
The script or the documentation should ensure that the above upgrade and reboot commands are executed before building the loader