loboris / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
553 stars 219 forks source link

How to integrate to a project properly? #42

Open janoist1 opened 6 years ago

janoist1 commented 6 years ago

Hi, Can you help me how to integrate it as a component into an ESP-IDF project? I cloned the lib into the components folder but unable to compile the demo app, complaining about missing tft files... If I only merge the components folder into my project I can use it... But that way I need to manually merge the contents of the Kconfig.projbuild too. Not sure which way is the correct one. Thanks

sukeshak commented 6 years ago

Folders inside the component folder is all you need for integration. For menuconfig options you just need to copy Kconfig.projbuild from main folder to your main folder. If you are using SPIFF storage then partitions_example.csv file also need to be copied.

jeremyjh commented 4 years ago

I've addressed this in my fork (for the latest build system in esp-idf 4). All the menuconfig is moved into the TFT components. You just need to add a couple of lines in your CMake files, its all documented here: https://github.com/jeremyjh/ESP32_TFT_library#installing-as-library