lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
250 stars 161 forks source link

compille error in ports/unix, missing the `readline_hist` #235

Closed stallion5632 closed 1 year ago

stallion5632 commented 2 years ago
test@ubuntu:~/micropython/ports/unix$ make -j6
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
CC input.c
CC modtime.c
CC moduselect.c
CC alloc.c
CC fatfs_port.c
In file included from ../../py/mpstate.h:33:0,
                 from input.c:33:
input.c: In function ‘prompt_write_history’:
../../py/mpstate.h:293:40: error: ‘mp_state_vm_t {aka struct _mp_state_vm_t}’ has no member named ‘readline_hist’
 #define MP_STATE_VM(x) (mp_state_ctx.vm.x)
                                        ^
../../py/misc.h:127:34: note: in definition of macro ‘MP_ARRAY_SIZE’
 #define MP_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
                                  ^
./mpconfigport.h:54:23: note: in expansion of macro ‘MP_STATE_VM’
 #define MP_STATE_PORT MP_STATE_VM
                       ^~~~~~~~~~~
../../py/mpstate.h:293:40: error: ‘mp_state_vm_t {aka struct _mp_state_vm_t}’ has no member named ‘readline_hist’
 #define MP_STATE_VM(x) (mp_state_ctx.vm.x)
                                        ^
../../py/misc.h:127:47: note: in definition of macro ‘MP_ARRAY_SIZE’
 #define MP_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
                                               ^
./mpconfigport.h:54:23: note: in expansion of macro ‘MP_STATE_VM’
 #define MP_STATE_PORT MP_STATE_VM
                       ^~~~~~~~~~~
In file included from input.c:33:0:
../../py/mpstate.h:293:40: error: ‘mp_state_vm_t {aka struct _mp_state_vm_t}’ has no member named ‘readline_hist’
 #define MP_STATE_VM(x) (mp_state_ctx.vm.x)
                                        ^
./mpconfigport.h:54:23: note: in expansion of macro ‘MP_STATE_VM’
 #define MP_STATE_PORT MP_STATE_VM
                       ^~~~~~~~~~~
CC mpbthciport.c
../../py/mkrules.mk:80: recipe for target 'build-standard/input.o' failed
make: *** [build-standard/input.o] Error 1
make: *** Waiting for unfinished jobs....
amirgon commented 2 years ago

Hi @stallion5632

Every commit passes CI, so it definitely compiles and runs on Linux.

Are you trying to build your own Micropython with lv_binding_micropython?
I suggest you have a look at lv_micropython. We recommend using it directly, or at least as a reference if you are trying to build lv_binding_micropython with your custom micropython.