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

#9153
Mark Williams
Keymaster

Mmmm… strange.
do you have this file?
/usr/include/linux/i2c-dev.h

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
wget ozzmaker.com/downloads/i2c-dev.h
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 --OzzMaker.com --

Blip, blop, bloop…