L2Cdev lib installation not working

I added the L2Cdev lib together with MPU6050 to my arduino library (pretty sure nothing went wrong there and I even re did it a couple times)
From here: GitHub - jrowberg/i2cdevlib: I2C device library collection for AVR/Arduino or other C++-based MCUs

When I run the MPU6050_DMP.ino example I get the error code

Arduino: 1.5.4 (Linux), Board: "Arduino Leonardo"

/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:14:17: error: I2C.h: Datei oder Verzeichnis nicht gefunden
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c: In function ‘I2C_masterInit’:
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: ‘I2C_PxSEL’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: (Each undeclared identifier is reported only once
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: for each function it appears in.)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: ‘SDA_PIN’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: ‘SCL_PIN’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:51: error: ‘UCB1CTL1’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:51: error: ‘UCSWRST’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCB1CTL0’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCMST’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCMODE_3’ undeclared (first use in this function)

It is not finding I2C.h. I thought this is included by standard. Nevertheless I tried installing it manually.

But after that I get this error :frowning: :

Arduino: 1.5.4 (Linux), Board: "Arduino Leonardo"

In file included from /home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:14:
/home/jan/Tools/arduino-1.5.4/libraries/MPU6050/I2C.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘I2C’
/home/jan/Tools/arduino-1.5.4/libraries/MPU6050/I2C.h:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘I2c’
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c: In function ‘I2C_masterInit’:
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: ‘I2C_PxSEL’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: (Each undeclared identifier is reported only once
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: for each function it appears in.)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: ‘SDA_PIN’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:50: error: ‘SCL_PIN’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:51: error: ‘UCB1CTL1’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:51: error: ‘UCSWRST’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCB1CTL0’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCMST’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCMODE_3’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:52: error: ‘UCSYNC’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:53: error: ‘UCSSEL_2’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:54: error: ‘UCB1BR0’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:54: error: ‘I2C_PRESCALE’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:55: error: ‘UCB1BR1’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c: In function ‘I2C_enable’:
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:73: error: ‘UCB1CTL1’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:73: error: ‘UCSWRST’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c: In function ‘I2C_disable’:
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:91: error: ‘UCB1CTL1’ undeclared (first use in this function)
/home/jan/Tools/arduino-1.5.4/libraries/I2Cdev/msp430_i2c.c:91: error: ‘UCSWRST’ undeclared (first use in this function)

I am kinda clueless what to do now. Help would be much appreciated :slight_smile: