您尚未登录。

楼主 # 2025-01-09 08:42:05

wl989898
会员
注册时间: 2024-01-15
已发帖子: 38
积分: 1

在NANO上用LVGL8 freetype显示中文

先交叉编译freetype-2.10.0

./configure  --host=arm-none-linux-gnueabif   --prefix=$PWD/tmp CC=/home/zh/nano/arm-2014.05/bin/arm-none-linux-gnueabi-gcc
make
make install

把生成的头文件和库文件放到
/home/zh/nano/arm-2014.05/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/
/home/zh/nano/arm-2014.05/arm-none-linux-gnueabi/lib
这两个目录
编译LVGL 
02_lv_100ask_port_linux_frame_buffer

显示如下错误信息

./main.o: In function `main':
main.c:(.text.startup+0x80): undefined reference to `lv_100ask_demo_course_6_4_1'
/home/zh/nano/02_lv_100ask_port_linux_frame_buffer/lvgl/src/extra/libs/freetype/lv_freetype.o: In function `font_face_requester':
lv_freetype.c:(.text+0x2c): undefined reference to `FT_New_Face'
/home/zh/nano/02_lv_100ask_port_linux_frame_buffer/lvgl/src/extra/libs/freetype/lv_freetype.o: In function `get_glyph_dsc_cb_cache':
lv_freetype.c:(.text+0xc8): undefined reference to `FTC_Manager_LookupFace'
lv_freetype.c:(.text+0xec): undefined reference to `FT_Get_Charmap_Index'
lv_freetype.c:(.text+0x100): undefined reference to `FTC_CMapCache_Lookup'
lv_freetype.c:(.text+0x11c): undefined reference to `FTC_SBitCache_Lookup'
/home/zh/nano/02_lv_100ask_port_linux_frame_buffer/lvgl/src/extra/libs/freetype/lv_freetype.o: In function `lv_freetype_init':
lv_freetype.c:(.text+0x1bc): undefined reference to `FT_Init_FreeType'
lv_freetype.c:(.text+0x1ec): undefined reference to `FTC_Manager_New'
lv_freetype.c:(.text+0x200): undefined reference to `FTC_CMapCache_New'
lv_freetype.c:(.text+0x214): undefined reference to `FTC_SBitCache_New'
lv_freetype.c:(.text+0x244): undefined reference to `FTC_Manager_Done'
lv_freetype.c:(.text+0x24c): undefined reference to `FT_Done_FreeType'
lv_freetype.c:(.text+0x260): undefined reference to `FT_Done_FreeType'
/home/zh/nano/02_lv_100ask_port_linux_frame_buffer/lvgl/src/extra/libs/freetype/lv_freetype.o: In function `lv_freetype_destroy':
lv_freetype.c:(.text+0x300): undefined reference to `FTC_Manager_Done'
lv_freetype.c:(.text+0x30c): undefined reference to `FT_Done_FreeType'
/home/zh/nano/02_lv_100ask_port_linux_frame_buffer/lvgl/src/extra/libs/freetype/lv_freetype.o: In function `lv_ft_font_init':
lv_freetype.c:(.text+0x3a4): undefined reference to `FTC_Manager_LookupSize'
lv_freetype.c:(.text+0x44c): undefined reference to `FT_MulFix'
lv_freetype.c:(.text+0x464): undefined reference to `FT_MulFix'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'default' failed
make: *** [default] Error 1

make -L /home/zh/nano/arm-2014.05/arm-none-linux-gnueabi/lib -lfreetype  改为这个命令
显示

make -L /home/zh/nano/arm-2014.05/arm-none-linux-gnueabi/lib -lfreetype
make: Nothing to be done for '/home/zh/nano/arm-2014.05/arm-none-linux-gnueabi/lib'.

往下不知怎么搞了

离线

页脚

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

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