fatal error: linux/i2c-dev.h: No such file or directory 34 | #include
In my Ubuntu 20.4 virtual machine I have installed RIOT OS for IOT devices. I am experiencing this error when compiling the program main.c (this take place by the command make BOARD=nucleo-f401re) that should have access to a I2C sensor readings. What is wrong ?
11 Answer
Try this in terminal:
sudo apt install linux-headers-`uname -r`and try compiling again. On my system, i2c-dev.h is part of the kernel headers of the kernel that I use.
7