It seems one of my private libraries doesnβt find the otheR.
Part(s) of build log:
LDF Modes: Finder ~ deep, Compatibility ~ soft
Ignored library C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\Adafruit_TinyUSB_Arduino
More details about "Library Compatibility Mode": https://docs.platformio.org/page/librarymanager/ldf.html#ldf-compat-mode
Found 58 compatible libraries
Scanning dependencies...
Dependency Graph
|-- TFT_eSPI @ 2.5.43 (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\.pio\libdeps\pico\TFT_eSPI)
| |-- SPI @ 1.0 (License: Unknown, Path: C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\SPI)
| |-- LittleFS @ 0.1.0 (License: Unknown, Path: C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\LittleFS)
|-- CRC32 @ 2.0.0 (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\.pio\libdeps\pico\CRC32)
|-- tft (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\lib\tft)
| |-- TFT_eSPI @ 2.5.43 (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\.pio\libdeps\pico\TFT_eSPI)
| | |-- SPI @ 1.0 (License: Unknown, Path: C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\SPI)
| | |-- LittleFS @ 0.1.0 (License: Unknown, Path: C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\LittleFS)
| |-- utils (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\lib\utils)
|-- EEPROM @ 1.0 (License: Unknown, Path: C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\EEPROM)
|-- SPI @ 1.0 (License: Unknown, Path: C:\Users\PsychoX\.platformio\packages\framework-arduinopico\libraries\SPI)
|-- utils (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\lib\utils)
|-- logging (License: Unknown, Path: D:\Projects\+embedded\picOOscilloscope\lib\logging)
Building in release mode
[...]
In file included from lib\tft\src\touch.cpp:1:
lib\tft\src\touch.hpp:4:10: fatal error: logging.hpp: No such file or directory
*******************************************************************
* Looking for logging.hpp dependency? Check our library registry!
*
* CLI > platformio lib search "header:logging.hpp"
* Web > https://registry.platformio.org/search?q=header:logging.hpp
*
*******************************************************************
4 | #include <logging.hpp>
| ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\pico\lib4ef\tft\touch.cpp.o] Error 1
[...]
I have 3 private libraries:
- The
tft
private library provides some adapting and basic UI elements over theTFT_eSPI
library (from repository). - The
logging
- another private library (maybe some day could go public), basically 2 headers that provide simple macros like LOG_ERROR etc adapting depending on platform (Pico/ESP/Arduino/AVR) - The
utils
private library, stuffed with few random utils
The tft
is only used from main code. Both the utils
and logging
should used by both main code AND tft
- problem is, the LDF only finds utils
while in tft
context.
I tried:
- adding
lib_ldf_mode = deep
toplatformio.ini
, not much changes. - adding
#include <logging.hpp>
to both hpp and cpp file from - also doesnβt help (just errors in header instead of source file due toinclude
s ordering)
Why utils
works but logging
not? Werid.