Reply To: error: ‘I2C_SMBUS_BLOCK_MAX’ undeclared

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU error: ‘I2C_SMBUS_BLOCK_MAX’ undeclared Reply To: error: ‘I2C_SMBUS_BLOCK_MAX’ undeclared

Mark Williams

Mmmm… strange.
do you have this file?

can you show me the output of this command
dpkg -l libi2c-dev

Also try this header file..
1. go into the directory where the code is
2. download this older header file
3. open IMU.c and change this line;
#include "linux/i2c-dev.h"
to this
#include "i2c-dev.h"
4. try to compile again

Mark --

Blip, blop, bloop…