lv_lib_freetype
lv_lib_freetype copied to clipboard
怎么用freetype显示汉字
你好,Lvgl8.3怎么用freetype显示汉字?我的操作如下: 1、freetype编译: ./configure CC=arm-linux-xxx-gcc --host=arm-linux --prefix=$PWD/library --with-zlib=no --with-png=no make make install 2、正确连接到应用代码中、把对应字库拷贝到正确路径 3、lv_example_freetype_1();
汉字显示矩形框,报错打印如下:(试过freetype2.6.1和2.10.4,存在相同的问题;把7.x的lvgl_freetype.c拷贝到8.3中编译也存在相同的问题) [FTC_MruList_New 272] error=1. [FTC_Manager_LookupSize 208] error=1.
try this https://github.com/lvgl/lv_port_pc_eclipse/issues/51#issuecomment-544206194
file lv_drv_conf.h is in src/deps
Before continuing this topic, what an impressive body of work!
Like @Frulko I'm also trying to build this on a M1 Mac, and managed to resolve the first framebuffer issue using lvlg/lv_port_pc_eclipse#51 .
However, I got stuck on 96% with the following error:
lv_binding_js/src/deps/lv_drivers/indev/evdev.c:18:10: fatal error: 'linux/input.h' file not found
#include <linux/input.h>
I have updated the MakeFile with this:
dev-macos-arm:
@mkdir -p $(DEV_ARM)
cmake -B "$(DEV_ARM)" \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_BUILD_PLATFORM=arm64 \
-DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 \
-DOPENSSL_LIBRARIES=/opt/homebrew/opt/openssl@3/lib
cmake --build $(DEV_ARM)
I have also tried to build with arm cross compiler tools like arm-linux-gnueabihf, but then I get issues with a missing -arch option, which is part of the Apple extensions to gcc.
Likewise, I also understand my question is not related to your work, but maybe you can point me in the right direction?
Thanks for your work!
Closing this as there's a new build system in master branch. Please open a new issue if this is still happening!