Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make BOARD show errors #304

Open
klora-sun opened this issue Nov 28, 2023 · 1 comment
Open

make BOARD show errors #304

klora-sun opened this issue Nov 28, 2023 · 1 comment
Labels
waiting for user input There is no progress in this issue since we are waiting for user to provide more inputs or answers

Comments

@klora-sun
Copy link

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 showUse 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
Copy link
Collaborator

PGNetHun commented Jan 5, 2024

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!

@PGNetHun PGNetHun added the waiting for user input There is no progress in this issue since we are waiting for user to provide more inputs or answers label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user input There is no progress in this issue since we are waiting for user to provide more inputs or answers
Projects
None yet
Development

No branches or pull requests

2 participants