您尚未登录。

楼主 #1 2019-05-28 16:23:28

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Ubuntu Framebuffer 编译运行 LittleVGL

项目地址: https://github.com/littlevgl/linux_frame_buffer

###递归克隆###
git clone --recursive https://github.com/littlevgl/linux_frame_buffer.git

cd linux_frame_buffer

###所有模块更新到主分支(master)最新版本###
git submodule foreach 'git checkout master; git pull'


修改 lv_conf.h :

#define LV_COLOR_DEPTH     24

改为

#define LV_COLOR_DEPTH     32

不会写Makefile, 就用命令行直接编译吧:

gcc -o demo                                                        \
-I./                                                               \
-Ilvgl                                                             \
-Ilvgl/lv_fonts/                                                   \
-Ilvgl/lv_themes/                                                  \
-Ilvgl/lv_misc/                                                    \
-Ilvgl/lv_draw/                                                    \
-Ilvgl/lv_hal/                                                     \
-Ilvgl/lv_core/                                                    \
-Ilvgl/lv_objx/                                                    \
main.c                                                             \
./lv_examples/lv_apps/demo/demo.c                                  \
./lv_examples/lv_apps/demo/img_bubble_pattern.c                    \
./lvgl/lv_fonts/lv_font_dejavu_10_latin_sup.c                      \
./lvgl/lv_fonts/lv_font_dejavu_40_cyrillic.c                       \
./lvgl/lv_fonts/lv_font_dejavu_30_cyrillic.c                       \
./lvgl/lv_fonts/lv_font_dejavu_10_cyrillic.c                       \
./lvgl/lv_fonts/lv_font_dejavu_40_latin_sup.c                      \
./lvgl/lv_fonts/lv_font_dejavu_30.c                                \
./lvgl/lv_fonts/lv_font_dejavu_40.c                                \
./lvgl/lv_fonts/lv_font_builtin.c                                  \
./lvgl/lv_fonts/lv_font_symbol_10.c                                \
./lvgl/lv_fonts/lv_font_monospace_8.c                              \
./lvgl/lv_fonts/lv_font_dejavu_10.c                                \
./lvgl/lv_fonts/lv_font_symbol_20.c                                \
./lvgl/lv_fonts/lv_font_symbol_30.c                                \
./lvgl/lv_fonts/lv_font_dejavu_20.c                                \
./lvgl/lv_fonts/lv_font_dejavu_20_cyrillic.c                       \
./lvgl/lv_fonts/lv_font_symbol_40.c                                \
./lvgl/lv_fonts/lv_font_dejavu_30_latin_sup.c                      \
./lvgl/lv_fonts/lv_font_dejavu_20_latin_sup.c                      \
./lvgl/lv_themes/lv_theme_default.c                                \
./lvgl/lv_themes/lv_theme_zen.c                                    \
./lvgl/lv_themes/lv_theme_night.c                                  \
./lvgl/lv_themes/lv_theme_nemo.c                                   \
./lvgl/lv_themes/lv_theme.c                                        \
./lvgl/lv_themes/lv_theme_mono.c                                   \
./lvgl/lv_themes/lv_theme_templ.c                                  \
./lvgl/lv_themes/lv_theme_material.c                               \
./lvgl/lv_themes/lv_theme_alien.c                                  \
./lvgl/lv_misc/lv_txt.c                                            \
./lvgl/lv_misc/lv_ufs.c                                            \
./lvgl/lv_misc/lv_gc.c                                             \
./lvgl/lv_misc/lv_area.c                                           \
./lvgl/lv_misc/lv_math.c                                           \
./lvgl/lv_misc/lv_font.c                                           \
./lvgl/lv_misc/lv_color.c                                          \
./lvgl/lv_misc/lv_log.c                                            \
./lvgl/lv_misc/lv_mem.c                                            \
./lvgl/lv_misc/lv_ll.c                                             \
./lvgl/lv_misc/lv_anim.c                                           \
./lvgl/lv_misc/lv_circ.c                                           \
./lvgl/lv_misc/lv_task.c                                           \
./lvgl/lv_misc/lv_fs.c                                             \
./lvgl/lv_misc/lv_templ.c                                          \
./lvgl/lv_draw/lv_draw_vbasic.c                                    \
./lvgl/lv_draw/lv_draw_arc.c                                       \
./lvgl/lv_draw/lv_draw.c                                           \
./lvgl/lv_draw/lv_draw_triangle.c                                  \
./lvgl/lv_draw/lv_draw_label.c                                     \
./lvgl/lv_draw/lv_draw_img.c                                       \
./lvgl/lv_draw/lv_draw_rect.c                                      \
./lvgl/lv_draw/lv_draw_rbasic.c                                    \
./lvgl/lv_draw/lv_draw_line.c                                      \
./lvgl/lv_hal/lv_hal_disp.c                                        \
./lvgl/lv_hal/lv_hal_indev.c                                       \
./lvgl/lv_hal/lv_hal_tick.c                                        \
./lvgl/lv_core/lv_group.c                                          \
./lvgl/lv_core/lv_refr.c                                           \
./lvgl/lv_core/lv_indev.c                                          \
./lvgl/lv_core/lv_obj.c                                            \
./lvgl/lv_core/lv_lang.c                                           \
./lvgl/lv_core/lv_style.c                                          \
./lvgl/lv_core/lv_vdb.c                                            \
./lvgl/lv_objx/lv_calendar.c                                       \
./lvgl/lv_objx/lv_led.c                                            \
./lvgl/lv_objx/lv_table.c                                          \
./lvgl/lv_objx/lv_slider.c                                         \
./lvgl/lv_objx/lv_gauge.c                                          \
./lvgl/lv_objx/lv_objx_templ.c                                     \
./lvgl/lv_objx/lv_tabview.c                                        \
./lvgl/lv_objx/lv_canvas.c                                         \
./lvgl/lv_objx/lv_mbox.c                                           \
./lvgl/lv_objx/lv_page.c                                           \
./lvgl/lv_objx/lv_chart.c                                          \
./lvgl/lv_objx/lv_ta.c                                             \
./lvgl/lv_objx/lv_line.c                                           \
./lvgl/lv_objx/lv_win.c                                            \
./lvgl/lv_objx/lv_img.c                                            \
./lvgl/lv_objx/lv_kb.c                                             \
./lvgl/lv_objx/lv_cb.c                                             \
./lvgl/lv_objx/lv_list.c                                           \
./lvgl/lv_objx/lv_imgbtn.c                                         \
./lvgl/lv_objx/lv_roller.c                                         \
./lvgl/lv_objx/lv_preload.c                                        \
./lvgl/lv_objx/lv_btn.c                                            \
./lvgl/lv_objx/lv_btnm.c                                           \
./lvgl/lv_objx/lv_ddlist.c                                         \
./lvgl/lv_objx/lv_spinbox.c                                        \
./lvgl/lv_objx/lv_sw.c                                             \
./lvgl/lv_objx/lv_bar.c                                            \
./lvgl/lv_objx/lv_cont.c                                           \
./lvgl/lv_objx/lv_label.c                                          \
./lvgl/lv_objx/lv_tileview.c                                       \
./lvgl/lv_objx/lv_arc.c                                            \
./lvgl/lv_objx/lv_lmeter.c                                         \
./lvgl/lv_porting/lv_port_indev_templ.c                            \
./lvgl/lv_porting/lv_port_fs_templ.c                               \
./lvgl/lv_porting/lv_port_disp_templ.c                             \
./lv_drivers/win_drv.c                                             \
./lv_drivers/indev/AD_touch.c                                      \
./lv_drivers/indev/FT5406EE8.c                                     \
./lv_drivers/indev/evdev.c                                         \
./lv_drivers/indev/XPT2046.c                                       \
./lv_drivers/indev/libinput.c                                      \
./lv_drivers/indev/mousewheel.c                                    \
./lv_drivers/indev/keyboard.c                                      \
./lv_drivers/indev/mouse.c                                         \
./lv_drivers/display/fbdev.c                                       \
./lv_drivers/display/monitor.c                                     \
./lv_drivers/display/R61581.c                                      \
./lv_drivers/display/SSD1963.c                                     \
./lv_drivers/display/ST7565.c                                      




以下转自 @奔跑的孩子
-----------------------------
以下两个都是Ubuntu LVGL Framebuffer移植:

本站下载: lv_port_linux_frame_buffer.tgz (lvgl7.0) (70M)

本站下载: lv_linux_frame_buffer_v6.tgz  (lvgl6.0) (30M)





离线

楼主 #2 2019-05-28 16:37:35

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: Ubuntu Framebuffer 编译运行 LittleVGL

2019-05-28_163807.png



演示视频, 使用 CTRL + ALT + F1 / F7 切换。





离线

楼主 #3 2019-05-28 18:55:19

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: Ubuntu Framebuffer 编译运行 LittleVGL


V3s linux 效果





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn