Hello, I am starting to use the GY-521/mpu-6050 with the Arduino Uno, and I am trying one example I found on Github, IMU_zero.ino (mpu6050/IMU_Zero.ino at master · ElectronicCats/mpu6050 · GitHub). However, I cannot get around an "Error compiling for board Arduino/Genuino Uno" error. The IDE seems to have issues with duplicated libraries, but if I remove one or both of them I get a library not found error. The error log last lines contain a reference to a "collect2.exe", which however I cannot find anywhere. I have tried restarting the IDE and the PC, with no change, except a rather puzzling one, the list of "multiple definitions" gets every time longer. I am enclosing the complete error log as an attachment as it is rather long; this by the way is the first after a complete restart. I am using Arduino 1.8.10 on a Win7-64 PC. Does anybody have any suggestions? Thanks to you all in advance.
Multiple libraries were found for "MPU6050.h"
Used: F:\Program
Multiple libraries were found for "I2Cdev.h"
Used: F:\Program
Not used: F:\Program
Multiple libraries were found for "Wire.h"
Used: F:\Program
It seems these libraries are installed several times. But they should be installed in the folder arduino/libraries, near the folder of your sketch which should be in arduino/your_program
But is it really F:\Program or F:\Program Files (x86) ?
However, the error is linked to the folder organization you are using.
Hello, thanks for your reply. The path is actually F:\Program Files(86). I also think there must be something with my folder organization, but in the IDE everything seems OK, and I do not know what to change. I have all the Arduino files that I downloaded in F:\Program Files(86), and the sketches I write or modify in My Documents folder in C:\ . Other sketches compile OK. I also suspect that the duplicate definitions are implied by the need of both the I2Cdev and MPU6050 libraries, because MPU6050 (-002, the one I am using) includes I2Cdev.cpp and IC2dev.h.