项目地址: https://github.com/littlevgl/linux_frame_buffer
###递归克隆###
git clone --recursive https://github.com/littlevgl/linux_frame_buffer.gitcd 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)
离线