Build Error during RaspberryPi Zero. SPI.h not found
Version
No response
Describe the bug
Updated latest version of update post this while compling this in Pizero (Have got SPI enabled in setup)
$ make gcc -O3 -DNDEBUG ../../src/driver_llcc68.c ../../example/driver_llcc68_lora.c ../../test/driver_llcc68_send_receive_test.c ../../test/driver_llcc68_cad_test.c ../../test/driver_llcc68_register_test.c interface/src/spi.c interface/src/gpio.c interface/src/wire.c driver/src/raspberrypi4b_driver_llcc68_interface.c src/main.c -I ../../src/ -I ../../interface/ -I ../../example/ -I ../../test/ -I ./interface/inc/ -lm -lpthread -lgpiod -o llcc68 In file included from interface/src/spi.c:37: ./interface/inc/spi.h:40:10: fatal error: linux/spi/spi.h: No such file or directory #include <linux/spi/spi.h> ^~~~~~~~~~~~~~~~~ compilation terminated. In file included from driver/src/raspberrypi4b_driver_llcc68_interface.c:38: ./interface/inc/spi.h:40:10: fatal error: linux/spi/spi.h: No such file or directory #include <linux/spi/spi.h> ^~~~~~~~~~~~~~~~~ compilation terminated.
Reproduce
Update Pi to latest version Git clone from github go to raspbeerypi directory and make.
Expected behavior
No response
Additional context
No response
Solution : Editi spi.h file in llcc68/project/raspberrypi4b/interface/inc and change #include <linux/spi/spi.h> to #include <linux/spi/spidev.h>
OK