nopnop2002 / esp-idf-ili9340

SPI TFT and XPT2046 touch screen controller driver for esp-idf
MIT License
163 stars 34 forks source link

Undefined reference when including ili9340 as component #48

Open MihaelGolob opened 3 weeks ago

MihaelGolob commented 3 weeks ago

Hello, I'm having some problems adding this library as a component to my project. What I did is simply copy the components/ili9340 directory and put it into my components directory. The project builds fine, but when I try to use one of the function e.g. spi_master_init, I get undefined reference to linking errors. If I just download the whole esp-idf-ili9340 repository I can build and flash it successfully.

nopnop2002 commented 2 weeks ago
cp -r esp-idf-ili9340 your_project
cd your_project
rm -r build
rm -r managed_components
rm dependencies.lock
cd main
vi main.c
#edit your code
cd ..
idf.py menuconfig
idf.py build