lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
259 stars 166 forks source link

make BOARD show errors #304

Open klora-sun opened 12 months ago

klora-sun commented 12 months ago

hi, i have put lv_binding_micropythonas lv_bingings into microrpython lib,and i write this `#LittlevGL LVGL_BINDING_DIR = $(TOP)/lib/lv_bindings LVGL_DIR = $(LVGL_BINDING_DIR)/lvgl LVGL_GENERIC_DRV_DIR = $(LVGL_BINDING_DIR)/driver/generic INC += -I$(LVGL_BINDING_DIR) ALL_LVGL_SRC = $(shell find $(LVGL_DIR) -type f) $(LVGL_BINDING_DIR)/lv_conf.h LVGL_PP = $(BUILD)/lvgl/lvgl.pp.c LVGL_MPY = $(BUILD)/lvgl/lv_mpy.c LVGL_MPY_METADATA = $(BUILD)/lvgl/lv_mpy.json QSTR_GLOBAL_DEPENDENCIES += $(LVGL_MPY) CFLAGS_MOD += $(LV_CFLAGS)

$(LVGL_MPY): $(ALL_LVGL_SRC) $(LVGL_BINDING_DIR)/gen/gen_mpy.py $(ECHO) "LVGL-GEN $@" $(Q)mkdir -p $(dir $@) $(Q)$(CPP) $(LV_CFLAGS) -I $(LVGL_BINDING_DIR)/pycparser/utils/fake_libc_include $(INC) $(LVGL_DIR)/lvgl.h > $(LVGL_PP) $(Q)$(PYTHON) $(LVGL_BINDING_DIR)/gen/gen_mpy.py -M lvgl -MP lv -MD $(LVGL_MPY_METADATA) -E $(LVGL_PP) $(LVGL_DIR)/lvgl.h > $@

CFLAGS_MOD += -Wno-unused-function SRC_MOD += $(subst $(TOP)/,,$(shell find $(LVGL_DIR)/src $(LVGL_GENERIC_DRV_DIR) -type f -name "*.c") $(LVGL_MPY)) in py.mk.then wehen i make BOARD,the error show Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. LVGL-GEN build-REGh743LQ208RMI_lvgl/lvgl/lv_mpy.c Traceback (most recent call last): File "/home/admin1/micropython/ports/stm32/../../lib/lv_bindings/gen/gen_mpy.py", line 299, in ast = parser.parse(s, filename='') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/admin1/micropython/lib/lv_bindings/gen/../pycparser/pycparser/c_parser.py", line 149, in parse return self.cparser.parse( ^^^^^^^^^^^^^^^^^^^ File "/home/admin1/micropython/lib/lv_bindings/gen/../pycparser/pycparser/ply/yacc.py", line 331, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/admin1/micropython/lib/lv_bindings/gen/../pycparser/pycparser/ply/yacc.py", line 1199, in parseopt_notrack tok = call_errorfunc(self.errorfunc, errtoken, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/admin1/micropython/lib/lv_bindings/gen/../pycparser/pycparser/ply/yacc.py", line 193, in call_errorfunc r = errorfunc(token) ^^^^^^^^^^^^^^^^ File "/home/admin1/micropython/lib/lv_bindings/gen/../pycparser/pycparser/c_parser.py", line 1861, in p_error self._parse_error( File "/home/admin1/micropython/lib/lv_bindings/gen/../pycparser/pycparser/plyparser.py", line 67, in _parse_error raise ParseError("%s: %s" % (coord, msg)) pycparser.plyparser.ParseError: ../../lib/lv_bindings/lvgl/src/misc/lv_log.h:72:39: before: attribute make: [../../py/py.mk:41:build-REGh743LQ208RMI_lvgl/lvgl/lv_mpy.c] 错误 1 make: 正在删除文件“build-REGh743LQ208RMI_lvgl/lvgl/lv_mpy.c”` could someone help

PGNetHun commented 10 months ago

Hello @klora-sun ,

if it is still actual: please pull the lv_micropython repository, and checkout the multi-instance branch: https://github.com/lvgl/lv_micropython/tree/feat/multi-instance

Then try again to build your board. Please send also the build command you run (so I can reproduce), and a screenshot of the error if it fails again.

PS: please embed every command/code/console text in "Code" format, so it will be cleaner in the comment.

image

Thank you!