Search found 1 match

by Orange_Murker
Tue Oct 15, 2024 12:56 pm
Forum: ESP-IDF
Topic: How can lvgl and freetype components added with IDF component manager work together?
Replies: 1
Views: 577

Re: How can lvgl and freetype components added with IDF component manager work together?

Hi. To do that you can link FreeType to LVGL in your CMakeLists.txt like so:

Code: Select all

idf_component_get_property(lvgl_lib lvgl__lvgl COMPONENT_LIB)
idf_component_get_property(freetype_lib espressif__freetype COMPONENT_LIB)
target_link_libraries(${lvgl_lib} PUBLIC ${freetype_lib})