当前位置:网站首页>Some introduction and transplantation of lvgl

Some introduction and transplantation of lvgl

2022-06-22 01:17:00 Passing bear~

brief introduction

LVGL Is an open source graphics library , Provides you with the ability to create embedded GUI Everything you need , With easy to use graphic elements , Beautiful visual effects and low memory consumption .

Source access address

Address :https://github.com/lvgl
From here, you can get the embedded end 、Linux and Windows Given lvgl Source code demo

transplant

Because I want to be lazy , So I will lvgl Migration to Linux Do some porting and run validation
Source code of personal transplantation GitHub The address is : Address https://github.com/xdh16/lv_port_pc_vscode
Sure git clone https://github.com/xdh16/lv_port_pc_vscode

In addition, because the libraries in the source code are not merged together , therefore freetype、lvgl and lvgl_drivers The folder is empty , So you have to download the relevant libraries , Unzip it and put it in the corresponding three folders ,3 The source code paths of the libraries are all placed in GitHub in
The following errors will appear in the official source code
cc: error: unrecognized command line option ‘-Wshift-negative-value’
Therefore, the makefile Make changes
 Insert picture description here
Delete this line
 Insert picture description here
Last make Compile
 Insert picture description here
function demo, give the result as follows :
 Insert picture description here
The basic functions have been completed , Later, I will discuss how to use LVGL Interface and some precautions in use .

原网站

版权声明
本文为[Passing bear~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206212354123578.html