Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Verifying The Code In Arduino Cloud IDE #125

Open
dude363635 opened this issue Nov 2, 2024 · 4 comments
Open

Error Verifying The Code In Arduino Cloud IDE #125

dude363635 opened this issue Nov 2, 2024 · 4 comments

Comments

@dude363635
Copy link

I get an error about dependencies and how there are multiple of them when i try to verify the code in Arduino Cloud IDE. Pic below:
h
Could you please help me? I'm new to Arduino and i need this for a project.

@flybrianfly
Copy link
Member

You would need to copy and paste the entire error output, I'm not seeing any errors here.

@rizacelik
Copy link

rizacelik commented Nov 14, 2024

Arduino Version: 2.3.3 It gives the following error.

Your old library does not give this error, it works. The link is here..
https://electropeak.com/learn/wp-content/uploads/2021/02/MPU9250-master.zip

`In file included from C:\Users\rizac\AppData\Local\Temp.arduinoIDE-unsaved20241014-14024-1f13syh.09la\i2c\i2c.ino:26:0:
c:\Users\rizac\OneDrive\Belgeler\Arduino\libraries\Bolder_Flight_Systems_MPU9250\src/mpu9250.h:36:10: fatal error: cstddef: No such file or directory
#include cstddef
^~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1`

@flybrianfly
Copy link
Member

The newer versions of the library include cstddef, but use include guards so it shouldn't be used in an Arduino build:

#include "mpu9250.h"  // NOLINT
#if defined(ARDUINO)
#include <Arduino.h>
#include "Wire.h"
#include "SPI.h"
#else
#include <cstddef>
#include <cstdint>
#include <algorithm>
#include "core/core.h"
#endif

Maybe the Arduino Cloud IDE isn't including ARDUINO?

@rizacelik
Copy link

rizacelik commented Nov 14, 2024

When we install the library with Arduino IDE, the coding in the mpu9250.h file is as follows. When I look at the repository, the mpu9250.h coding is in the format you provided. Where does Arduino IDE download your library codes from? What is the reason for this difference?


#if defined(ARDUINO)
#include <Arduino.h>
#include "Wire.h"
#include "SPI.h"
#else
#include "core/core.h"
#endif
#include <cstddef>
#include <cstdint>
#include "eigen.h"  // NOLINT
#include "Eigen/Dense"


When I download the library from the repository and upload it to the Arduino IDE as a zip file, it works without any problems.
Thank you for your interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants