您尚未登录。

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

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 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,349
积分: 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,349
积分: 9202

Re: Ubuntu Framebuffer 编译运行 LittleVGL


V3s linux 效果





离线

#4 2021-01-30 08:46:31

奔跑的孩子
会员
注册时间: 2021-01-28
已发帖子: 51
积分: 31.5

Re: Ubuntu Framebuffer 编译运行 LittleVGL

2021-01-30_083346.png

搞定, 感谢楼主!


以下两个都是Ubuntu LVGL Framebuffer移植:

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

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

最近编辑记录 奔跑的孩子 (2021-01-30 08:58:39)

离线

#5 2021-05-21 16:06:17

abnerl
会员
注册时间: 2020-06-09
已发帖子: 64
积分: 66.5

Re: Ubuntu Framebuffer 编译运行 LittleVGL

sudo ./demo
The framebuffer device was opened successfully.
800x600, 32bpp
The framebuffer device was mapped to memory successfully.
试了一下,无任何屏幕输出

离线

#6 2021-05-21 19:53:58

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: Ubuntu Framebuffer 编译运行 LittleVGL

abnerl 说:

sudo ./demo
The framebuffer device was opened successfully.
800x600, 32bpp
The framebuffer device was mapped to memory successfully.
试了一下,无任何屏幕输出

CTRL + ALT + F1/2/3/4





离线

#7 2021-05-23 11:21:58

charles
会员
注册时间: 2020-07-11
已发帖子: 6
积分: 5.5

Re: Ubuntu Framebuffer 编译运行 LittleVGL

光标闪烁的地方没有画面怎么解决呢

离线

#8 2021-05-25 13:51:05

abnerl
会员
注册时间: 2020-06-09
已发帖子: 64
积分: 66.5

Re: Ubuntu Framebuffer 编译运行 LittleVGL

哇酷小二 说:
abnerl 说:

sudo ./demo
The framebuffer device was opened successfully.
800x600, 32bpp
The framebuffer device was mapped to memory successfully.
试了一下,无任何屏幕输出

CTRL + ALT + F1/2/3/4

谢谢,果然如此

离线

#9 2021-12-15 16:38:56

luciferseva
会员
注册时间: 2020-05-20
已发帖子: 58
积分: 51.5

Re: Ubuntu Framebuffer 编译运行 LittleVGL

该评论内容与本帖子无关,鼓励各位坑友积极发言讨论与帖子有关的内容!

离线

  • 不通过:其他

#10 2022-08-08 19:36:46

达子666
会员
注册时间: 2022-05-09
已发帖子: 24
积分: 22

Re: Ubuntu Framebuffer 编译运行 LittleVGL

Ubuntu LVGL Framebuffer这个程序是可以在虚拟机运行也可以在真机上运行嘛,具体操作又是怎么样,要怎么正确的配置CMake

离线

#11 2022-08-09 11:23:25

达子666
会员
注册时间: 2022-05-09
已发帖子: 24
积分: 22

Re: Ubuntu Framebuffer 编译运行 LittleVGL

请问这个GCC是要怎么编译,我编译之后就报错了

离线

#12 2022-08-19 21:04:00

Ican
会员
注册时间: 2022-06-11
已发帖子: 30
积分: 0

Re: Ubuntu Framebuffer 编译运行 LittleVGL

请问你是用的ubuntu哪个版本,哪个版本的gcc编译器?

离线

页脚

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

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