您尚未登录。

楼主 # 2024-06-23 10:00:15

80802680
会员
注册时间: 2020-05-14
已发帖子: 8
积分: 20

D21x luban SDK LVGL UI示例怎么设置 支持显示中文字符

D21x linux SDK包LVGL UI示例怎么设置 支持显示中文字符

选择freetype包,编译打包提示错误

Scanning dependencies of target test_lvgl
[ 97%] Building C object CMakeFiles/test_lvgl.dir/base_ui/base_ui.c.o
[ 97%] Building C object CMakeFiles/test_lvgl.dir/base_ui/cpu_mem.c.o
[ 98%] Building C object CMakeFiles/test_lvgl.dir/base_ui/font/ui_font_H1.c.o
[ 98%] Building C object CMakeFiles/test_lvgl.dir/base_ui/font/ui_font_Title.c.o
[ 98%] Building C object CMakeFiles/test_lvgl.dir/base_ui/font/ui_font_Big.c.o
[ 98%] Building C object CMakeFiles/test_lvgl.dir/main.c.o
[ 98%] Building C object CMakeFiles/test_lvgl.dir/lv_drivers/aic_dec.c.o
[ 99%] Building C object CMakeFiles/test_lvgl.dir/lv_drivers/lv_fbdev.c.o
[ 99%] Building C object CMakeFiles/test_lvgl.dir/lv_drivers/lv_ge2d.c.o
[ 99%] Building C object CMakeFiles/test_lvgl.dir/lv_drivers/lv_port_indev.c.o
[ 99%] Building C object CMakeFiles/test_lvgl.dir/lv_drivers/lv_port_disp.c.o
[100%] Linking C executable test_lvgl
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: warning: libpng16.so.16, needed by /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so, not found (try using -rpath or -rpath-link)
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_expand_gray_1_2_4_to_8@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_read_end@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_get_error_ptr@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_gray_to_rgb@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_read_info@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_destroy_read_struct@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_read_user_transform_fn@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_read_image@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_create_read_struct@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_get_IHDR@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_read_update_info@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_longjmp_fn@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_get_valid@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_read_fn@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_create_info_struct@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_tRNS_to_alpha@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_interlace_handling@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_error@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_filler@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_get_io_ptr@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_packing@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_palette_to_rgb@PNG16_0'
/home/mcgs/d211-master/output/d211_demo128_nand/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.4.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/mcgs/d211-master/output/d211_demo128_nand/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/libfreetype.so: undefined reference to `png_set_strip_16@PNG16_0'
collect2: error: ld returned 1 exit status
CMakeFiles/test_lvgl.dir/build.make:241: recipe for target 'test_lvgl' failed
make[4]: *** [test_lvgl] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/test_lvgl.dir/all' failed
make[3]: *** [CMakeFiles/test_lvgl.dir/all] Error 2
Makefile:132: recipe for target 'all' failed
make[2]: *** [all] Error 2
package/utils/pkg-generic.mk:398: recipe for target '/home/mcgs/d211-master/output/d211_demo128_nand/build/lvgl-ui/.stamp_built' failed
make[1]: *** [/home/mcgs/d211-master/output/d211_demo128_nand/build/lvgl-ui/.stamp_built] Error 2
Makefile:73: recipe for target '_all' failed
make: *** [_all] Error 2

最近编辑记录 80802680 (2024-06-23 12:45:37)

离线

页脚

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

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