This is the [first] error message:
In file included from src/createAllTasks.cpp:2:0:
include/main.h:6:66: fatal error: wifiConfig.h: No such file or directory
********************************************************************
* Looking for wifiConfig.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:wifiConfig.h"
* Web > https://platformio.org/lib/search?query=header:wifiConfig.h
*
********************************************************************
In platformio.ini I have among others:
lib_extra_dirs = ../WiFi_Specs
The directory structure is:
.../WS_WebRadio/Web_Radio_04_Tasks/<project files>
.../WS_WebRadio/WiFi_Specs/<project files>
Questions:
- The last time I used similar: “lib_extra_dirs = …/WiFi_Specs”
it worked fine. Why not now?
- Why is platformio looking for:
“https://platformio.org/lib/search?query=header:wifiConfig.h”?
Actually there are only two dots in: dot dot/WiFi_Specs; this editor produces three.
lib_extra_dirs expects
A list with extra directories/storages where
You seem to have the non-found include header WiFi_Specs
library, but then lib_extra_dirs
needs the path to the folder in which the library folder is stored so that it can recognize WiFi_Specs
as a dependent library. So, lib_extra_dirs = ..
might be better. I think however it would be cleaner to create an extra directory so that nothing else in the WS_WebRadio
folder is accidentally picked up as a library, then point to that.
As for ‘why it worked fine before’, I don’t know without the other project files or project structure
Every time PlatformIO encounters a missing include header, it will auto-generate the URL of this form, helping you to find the library. Most of the time people e.g. just #include <Adafruit_GFX.h>
without declaring it as a library in lib_deps
, so PlatformIO providing them with a search link that will find the library containing Adafruit_GFX.h
with the install instructions is a convenient thing.
OK, thank you.[Do I have 20 characters now?]