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

Compile error - what is the proper directory structure? #6

Open
molecule opened this issue Aug 5, 2020 · 1 comment
Open

Compile error - what is the proper directory structure? #6

molecule opened this issue Aug 5, 2020 · 1 comment

Comments

@molecule
Copy link

molecule commented Aug 5, 2020

I've tried the following directory arrangements:

  1. ICM20948 folder and 20948_Working folder both inside Arduino --> libraries folder.
  2. ICM20948 folder and 20948_Working folder both inside Arduino-->libraries -->ICM20948_DMP_Arduino

Both have the same error, captured below.
What is the proper directory structure?

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Nano, ATmega328P"

20948_Working:2:10: fatal error: Icm20948.h: No such file or directory

#include <Icm20948.h>

      ^~~~~~~~~~~~

compilation terminated.

exit status 1

Icm20948.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@molecule
Copy link
Author

molecule commented Aug 5, 2020

I was able to get past the above compile-time error by placing all of the files inside ICM20948 inside the 20948_Working folder (see image):

image

I also changed the "includes" to have quotations instead of angle brackets:

#include "Icm20948.h"
#include "SensorTypes.h"
#include "Icm20948MPUFifoControl.h"

I'd still like to know what the 'correct' version is.

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

1 participant