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...
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 ?
1 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.