I started a project to provide cow mooing sounds when a person walks in front of a proximity sensor.
I am using Pltformio core 5.2.5 home 3.4.1 in VSC 1.64.2 on Linux Mint 20.3
I started by searching for an audio component and cam across Earle Philhower’s library. After installing it and assign it to my project whose platformio.ini conatins:
[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps = earlephilhower/ESP8266Audio@^1.9.4
The main.cpp just to start: #include <Arduino.h> #include “AudioGeneratorAAC.h” #include “AudioOutputI2S.h” #include “AudioFileSourcePROGMEM.h”
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
The compilation fails:
Looking for ESP8266HTTPClient.h dependency? Check our library registry!
It looks like ESP8266HTTPClient.h is missing, I believe its supposed to be in an Arduino lib.
I tried the exact same code same board in an Adruino IDE v 1.8.20 and it compiled.
What am I missing in setting up the project?
Not really I’ve been trying to understand the compilation process. There’s a directory .platformio/packages/framework-arduinoespressif8266/libraries/ that has the “missing” library component. Unfortunately that file somehow isn’t seen in the build sequence, the why is what I’m trying to work out. I’ve simply put the file in the /home/dbristow/PlatformIO/Projects/CowSound/.pio/libdeps/nodemcuv2/ESP8266Audio/src directory, but then another dependence issue arises. If I figure it out I’ll be sure to post the solution.