Been trying to figure out for a few days how to get lv_bindings to compile with the latest micropython as it includes a feature I need that the stable 1.19.1 does not. It looks like the makefile has changed some and I am unable to get LVGL to be recognized as a module. Has anyone else been able to compile with with nightly micropython?
I’ve played around with this as well. Been having issues getting to compile as well. However it seems like the path of least resistance, so I will try to keep moving forward with it. Thanks.
This is as far as I’ve managed to get with compiling as an external usermod
CMake Error at /project/micropython/py/usermod.cmake:9 (get_target_property):
get_target_property() called with non-existent target "lvgl_interface".
Call Stack (most recent call first):
/project/micropython/py/usermod.cmake:24 (usermod_gather_sources)
/project/micropython/py/usermod.cmake:24 (usermod_gather_sources)
/project/micropython/py/usermod.cmake:47 (usermod_gather_sources)
main/CMakeLists.txt:14 (include)
CMake Error at /project/micropython/py/usermod.cmake:15 (get_target_property):
get_target_property() called with non-existent target "lvgl_interface".
Call Stack (most recent call first):
/project/micropython/py/usermod.cmake:24 (usermod_gather_sources)
/project/micropython/py/usermod.cmake:24 (usermod_gather_sources)
/project/micropython/py/usermod.cmake:47 (usermod_gather_sources)
main/CMakeLists.txt:14 (include)
CMake Error at /project/micropython/py/usermod.cmake:21 (get_target_property):
get_target_property() called with non-existent target "lvgl_interface".
Call Stack (most recent call first):
/project/micropython/py/usermod.cmake:24 (usermod_gather_sources)
/project/micropython/py/usermod.cmake:24 (usermod_gather_sources)
/project/micropython/py/usermod.cmake:47 (usermod_gather_sources)
main/CMakeLists.txt:14 (include)
Found User C Module(s): usermod_lv_bindings, lvgl_interface
CMake Error at /project/esp-idf/tools/cmake/component.cmake:470 (add_library):
add_library cannot create target "__idf_main" because another target with
the same name already exists. The existing target is a static library
created in source directory
"/project/micropython/ports/esp32/main". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
main/CMakeLists.txt:158 (idf_component_register)
I suggest you mention this on the github issue and continue the discussion there.
I think the work the for building lv_bindings on ESP32 as an external module was not completed yet, so it’s worth pinging the contributor.