Error on Make

Hi all,

I’m trying to compile a lirc software but when I type “make” command get this error:

hw_i2cuser.c:55:27: error: linux/i2c-dev.h: Arquivo ou diretório não encontrado
hw_i2cuser.c: In function ‘i2cuser_init’:
hw_i2cuser.c:189: error: ‘I2C_SLAVE’ undeclared (first use in this function)
hw_i2cuser.c:189: error: (Each undeclared identifier is reported only once
hw_i2cuser.c:189: error: for each function it appears in.)
make[3]: ** [hw_i2cuser.o] Erro 1

How to solve this?

*sry my englishi is little.

install kernel headers and sources

Headers and Sources are installed.

Install i2c-tools and libsensors4-devel

Make runs fine, tks u.