Can't compile: Adafruit_I2CDevice.h: No such file or directory

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
oisisi
Normal user
Posts: 89
Joined: 06 Jul 2016, 13:47

Can't compile: Adafruit_I2CDevice.h: No such file or directory

#1 Post by oisisi » 28 Jul 2020, 11:07

I cloned the latest github version and when I try to build the normal_ESP8266_4M1M variant PlatformIO complains about a missing header/library:

Code: Select all

In file included from .pio\libdeps\normal_ESP8266_4M1M\Adafruit GFX Library\Adafruit_MonoOLED.cpp:20:0:
.pio\libdeps\normal_ESP8266_4M1M\Adafruit GFX Library\Adafruit_MonoOLED.h:30:32: fatal error: Adafruit_I2CDevice.h: No such file or directory
Via PIO I added "Adafruit BusIO" which should include Adafruit_I2CDevice.h but that didn't fix it. What am I missing?

Edit: I tried to compile the IRext flavor and noted that the dependency was actually followed, but I still get the error.

Code: Select all

Installing dependencies
Looking for Adafruit BusIO library in registry
Found: https://platformio.org/lib/show/6214/Adafruit BusIO
LibraryManager: Installing id=6214
Using cache: D:\Users\mole\.platformio\.cache\5f\22e932c816a09e6c94fc5c26d25d185f
Adafruit BusIO @ 1.4.1 has been successfully installed!

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't compile: Adafruit_I2CDevice.h: No such file or directory

#2 Post by TD-er » 28 Jul 2020, 12:12

Can you have a look at this pending pull request? https://github.com/letscontrolit/ESPEas ... 3179/files
Ctrl-F for "Adafruit"

oisisi
Normal user
Posts: 89
Joined: 06 Jul 2016, 13:47

Re: Can't compile: Adafruit_I2CDevice.h: No such file or directory

#3 Post by oisisi » 28 Jul 2020, 13:58

Yes, that checks out. Adafruit BusIO is in there. I'll wait for the inclusion of the PR.

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Can't compile: Adafruit_I2CDevice.h: No such file or directory

#4 Post by TD-er » 28 Jul 2020, 14:15

I noticed this Adafruit BusIO package was not found by PlatformIO on itself, even though it is marked as a dependency in the package description.
Maybe PlatformIO only reads the .json which is not present in that package.

I have to go through the built items in that PR as it now fails to build due to time limit exceeded.
After that I can merge it.

oisisi
Normal user
Posts: 89
Joined: 06 Jul 2016, 13:47

Re: Can't compile: Adafruit_I2CDevice.h: No such file or directory

#5 Post by oisisi » 03 Aug 2020, 12:55

Feedback: the PR has been merged, compiling works now. Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests