ericalbers / ICM20948_DMP_Arduino

Invensense 20948 chip working with DMP code for Arduino environment
41 stars 10 forks source link

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

Open molecule opened 4 years ago

molecule commented 4 years ago

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

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

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 commented 4 years ago

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.