Gyroscope

Hello
I am trying to build a gyroscope on the tutorial from Arvind Sanjeev : IMU Interfacing Tutorial.Get started with Arduino and the MPU6050
I loaded the MPU 6050, I2C dev and the HX8357 TFT screen (because I hope to get it on this screen, not on PC screen)
When I try to click on verify, I always have the message": error for compiling for board Arduino Mega.
I changed to UNO, but always the same error.
Has somebody an idea about this problem
This is what I already have in the sketch

#include <TFT_HX8357.h>
#include <User_Setup.h>
#include <I2Cdev.h>
#include <Wire.h>
#include <helper_3dmath.h>
#include <MPU6050.h>
#include <MPU6050_6Axis_MotionApps20.h>
#include <MPU6050_9Axis_MotionApps41.h>

Thks

This is what I already have in the sketch

Is that all of it ?

error for compiling for board Arduino Mega.

Is that the full error message ?

No, I did a copy but exceed 9000 char. Honnestly I am lost.

This a part of the errors:

Compiling sketch...

C:\Users\DEPREZ JC\Documents\Arduino\libraries\TFT_HX8357-master/TFT_HX8357.h:124:0: warning: "HX8357B" redefined

#define HX8357B 0xB

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\libraries\TFT_HX8357-master/TFT_HX8357.h:19:0,

from C:\Users\DEPREZ JC\Documents\Arduino\ars_den file included from C:\Users\DEPREZ JC\Documents\Arduino\libraries\TFT_HX8357-master/TFT_HX8357.h:19:0,

from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b\ars_dec23b.ino:1:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\TFT_HX8357-master/User_Setup.h:13:0: note: this is the location of the previous definition

#define HX8357B

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:2:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\TFT_HX8357-master/User_Setup.h:13:0: warning: "HX8357B" redefined

#define HX8357B

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:1:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\TFT_HX8357-master/TFT_HX8357.h:124:0: note: this is the location of the previous definition

#define HX8357B 0xB

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:8:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_9Axis_MotionApps41.h:107:0: warning: "MPU6050_DMP_CODE_SIZE" redefined

#define MPU6050_DMP_CODE_SIZE 1962 // dmpMemory[]

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:7:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:116:0: note: this is the location of the previous definition

#define MPU6050_DMP_CODE_SIZE 1929 // dmpMemory[]

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:8:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_9Axis_MotionApps41.h:108:0: warning: "MPU6050_DMP_CONFIG_SIZE" redefined

#define MPU6050_DMP_CONFIG_SIZE 232 // dmpConfig[]

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:7:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:117:0: note: this is the location of the previous definition

ino:8:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_9Axis_MotionApps41.h:109:0: warning: "MPU6050_DMP_UPDATES_SIZE" redefined

#define MPU6050_DMP_UPDATES_SIZE 140 // dmpUpdates[]

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:7:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:118:0: note: this is the location of the previous definition

#define MPU6050_DMP_UPDATES_SIZE 47 // dmpUpdates[]

^

In file included from C:\Users\DEPREZ JC\Documents\Arduino\ars_dec23b\ars_dec23b.ino:7:0:

C:\Users\DEPREZ JC\Documents\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:325:32: error: no 'uint8_t MPU6050::dmpInitialize()' member function declared in class 'MPU6050'

uint8_t MPU6050::dmpInitialize() {

^

You evidently have problems with multiple and/or missing copies of the library files.

You could try uninstalling and reinstalling the entire Arduino package and extra libraries, or track down each duplicated entry and delete it. Carefully follow instructions for library installation to avoid this in the future.

I think you are right. I do not know where I am doing mistakes.
How I proceed:
Download -> Unzip in (File Arduino -> Libraries) - upload in Arduino.
Thks for your reply

There are at least two "library" folders -- one in the Arduino program directory and one in the directory where you keep your personal programs. Make sure there are no duplicates anywhere.

I think you are right. I do not know where I am doing mistakes.

Which version of the IDE are you using ?
Does it have Sketch/Include Library/Add .ZIP library in its menu ?

Thks for your answers.
Yes, the IDE has "include ZIP library". When I do that, I have the message "invalid directory".
It is something I do not understand.
Do not aks how, but I succeed to write a sketch and I can read all the values on the screen of my PC. YES!
Now, I have to transfer these values in a graphic form on PC screen and then on the TFT screen.
I already tried to include in the Arduino library "processsing and Taxiclib". But I have the same problem when downloading libraries.
I tried on another PC and had the same problem. So, I am doing something wrong ??? What ??
I have to find another way to transfer these values to graphic.
Has somebody a tip for me?

Has somebody a tip for me?

Yes. Read the "How to use this forum" post and follow the directions. It gives hints on how to ask questions, so that you can expect a reasonable answer.