Skip to content

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

Description

@rsramki

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions