Solve platformio add library error problem
Problem: Adding TFT_eSPI library prompted that SPI.h could not be found
In file included from .pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.cpp:17:0:
.pio\libdeps\esp32dev\TFT_eSPI\TFT_eSPI.h:32:17: fatal error: SPI.h: No such file or directory
Solution: Add a sentence to the platformio.ini file
lib_ldf_mode = deep+
There may still be warnings, but no error will be reported
can be compiled successfully
Read More:
- Error lnk2038: detected “_ ITERATOR_ DEBUG_ Mismatched ‘level’ value of ‘0’
- Vscode uses /deep/ Syntax error [How to Solve]
- [Solved] C++ Compile: error LNK2019: unresolved external “XX“
- Hash_map is deprecated and will be REMOVED. Please use unordered_map.
- [Solved] error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
- [Solved] Vscode Katex Error: ParseError: KaTeX Parse Error: Can‘t Use Function ‘$‘ In Math Mode At Position …
- Filezilla Error: You appear to be behind a NAT router. Please configure the passive mode settings and …
- Error: # error PCL requires C++ 14 or above
- [Solved] QT error: the packaged exe of Enigma virtual box reports an error cannot load library qt5core.dll
- Tensorflow GPU error (4 Type Error and their Solutions)
- How to Solve “/usr/bin/ld: skipping incompatible”
- How to Solve Arxiv Upload with PDFLatex Error
- [Solved] PSPICE Error: ERROR(ORPSIM-16276): Can‘t find library
- VSCode Error: collect2.exe:error:1d returned 1 exit status [How to Solve]
- [Solved] Failed to apply plugin appears when Android studio imports a project
- Visual Studio SignTool Error: No certificates were found that met all the given criteria.
- [Solved] error “invalid command name “tcl_findLibrary““
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- [Cadence Allegro PCB Design] error: Possible pin type conflict GND/VCC Power Connected to Output
- VSCode Unable to find custom header file directory: fatal error: no such file or directory