lvgl / lvgl

Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.
https://lvgl.io
MIT License
16.72k stars 3.26k forks source link

Use freetype to report an error?? #2057

Closed chcmq closed 3 years ago

chcmq commented 3 years ago

I am sure I have installed freetype

================================================= libs/lv_lib_freetype/lv_freetype.h:16:22: fatal error: ft2build.h: No such file or directory


=================================================

kisvegabor commented 3 years ago

Do you link freetype with your program? See https://github.com/lvgl/lv_lib_freetype#add-freetype-to-your-project

chcmq commented 3 years ago

I used apt-get install to install it.

$apt-get install libfreetype6-dev
kisvegabor commented 3 years ago

You also need to add the library and its include path to platformio.ini.

chcmq commented 3 years ago
kisvegabor commented 3 years ago

I'm not so experienced with PIO. Maybe @puzrin can help with that.

kisvegabor commented 3 years ago

I just saw that you have opened a topic in the forum.

Let's continu there.

But in order to get help easier, please fill teh template.

puzrin commented 3 years ago

There are no freetype package in PIO registry. Since this is not lvgl-specific, it's better to search help on PIO forum.

chcmq commented 3 years ago

Thank you very much @puzrin @kisvegabor