TrueOpenVR / TrueOpenVR-DIY

DIY VR devices
97 stars 10 forks source link

Compilation error in controllers #20

Closed karizr45 closed 1 year ago

karizr45 commented 1 year ago

Hello, i am got a problem, here error code:

In file included from C:\Users\kariz\Downloads\Controller_MPU6050_DMP6\Controller_MPU6050_DMP6.ino:49:

c:\Users\kariz\OneDrive\���������\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:62:24: error: conflicting declaration 'typedef int8_t prog_int8_t' typedef int8_t prog_int8_t; ^~~ In file included from C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/WString.h:26, from C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:176, from C:\Users\kariz\AppData\Local\Temp\arduino\sketches\368557359FA7D808902C97596CB3DB70\sketch\Controller_MPU6050_DMP6.ino.cpp:1: C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/pgmspace.h:25:14: note: previous declaration as 'typedef char prog_int8_t' typedef char prog_int8_t; ^~~ In file included from C:\Users\kariz\Downloads\Controller_MPU6050_DMP6\Controller_MPU6050_DMP6.ino:49: c:\Users\kariz\OneDrive\���������\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:66:25: error: conflicting declaration 'typedef int32_t prog_int32_t' typedef int32_t prog_int32_t; ^~~~ In file included from C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/WString.h:26, from C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:176, from C:\Users\kariz\AppData\Local\Temp\arduino\sketches\368557359FA7D808902C97596CB3DB70\sketch\Controller_MPU6050_DMP6.ino.cpp:1: C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/pgmspace.h:29:14: note: previous declaration as 'typedef long int prog_int32_t' typedef long prog_int32_t; ^~~~ In file included from C:\Users\kariz\Downloads\Controller_MPU6050_DMP6\Controller_MPU6050_DMP6.ino:49: c:\Users\kariz\OneDrive\���������\Arduino\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:67:26: error: conflicting declaration 'typedef uint32_t prog_uint32_t' typedef uint32_t prog_uint32_t; ^~~~~ In file included from C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/WString.h:26, from C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:176, from C:\Users\kariz\AppData\Local\Temp\arduino\sketches\368557359FA7D808902C97596CB3DB70\sketch\Controller_MPU6050_DMP6.ino.cpp:1: C:\Users\kariz\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/pgmspace.h:30:23: note: previous declaration as 'typedef long unsigned int prog_uint32_t' typedef unsigned long prog_uint32_t; ^~~~~

exit status 1

Compilation error: exit status 1

it's happening when i attemping to compile file with name "Controller_MPU6050_DMP6"

please help me

karizr45 commented 1 year ago

Btw i'm using ESP32 without any code changes just changed pins (interrupt pin too)

karizr45 commented 1 year ago

ok i'm solved it alone