Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error during RaspberryPi Zero. SPI.h not found #12

Open
rsramki opened this issue Dec 14, 2024 · 2 comments
Open

Build Error during RaspberryPi Zero. SPI.h not found #12

rsramki opened this issue Dec 14, 2024 · 2 comments

Comments

@rsramki
Copy link

rsramki commented Dec 14, 2024

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

@rsramki
Copy link
Author

rsramki commented Dec 15, 2024

Solution : Editi spi.h file in llcc68/project/raspberrypi4b/interface/inc and change
#include <linux/spi/spi.h> to #include <linux/spi/spidev.h>

@libdriver
Copy link
Owner

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants