Closed gvanem closed 1 year ago
luavgl
mainly targets for embedded devices. As a work in progress, I have only tested the simulator on ubuntu and macos. You may need to follow simulator/lv_conf.h
and simulator/lv_drv_conf.h
to build your own simulator.
To address your issue, the lua.exe
must be built from source together with luavgl.c
and make sure lvgl is initialized firstly as shown in simulator/main.c
.
The lvgl.lua
file in source tree is only meant for linter
on vscode with lua extension.
To address your issue, the lua.exe must be built from source together with luavgl.c
Why?
The lvgl.lua file in source tree is only meant for linter on vscode with lua extension.
I did build a lvgl.dll
from the sources. My require "lvgl" did not load
lvgl.lua`.
Why?
Or you have to initialize lvgl
yourself in lua.exe
before require("lvgl")
. You can follow the instructions and simulator source code as a startpoint.
I'm trying to get this to build and run on Win-10 using MSVC /clang-cl. But have nothing but troubles. But first off, the example on the main page does not even parse with my Lua 5.4:
lua.exe test.lua
:It should read:
and not
bg_color = "#112233", -- #RRGGBB, 0xRRGGBB or "#RGB",
But then after adding a
require "lvgl"
at the top, alua.exe test.lua
crashes good insidelv_mem.c
. Call-stack:presumably since
lv_mem_init()
was not called forLV_MEM_CUSTOM == 0
.So I really have no idea how to use this library. Seems not very robust.
And BTW, why is not LuaJIT supported? Much faster AFAICS. And it does not build with LVGL from
master
. Why not?