XuNeo / luavgl

lua + lvgl = luavgl An optimized lvgl Lua binding
MIT License
57 stars 13 forks source link

fix(simulator): fix compile break #39

Closed XuNeo closed 1 month ago

XuNeo commented 1 month ago

LV_FS_STDIO_PLAT_LETTER is defined in xmake but not cmake.

/home/neo/projects/lvgl/luavgl/simulator/lv_conf.h:612:32: error: ‘LV_FS_STDIO_PLAT_LETTER’ undeclared (first use in this function); did you mean ‘LV_FS_STDIO_LETTER’?
  612 |     #define LV_FS_STDIO_LETTER LV_FS_STDIO_PLAT_LETTER     /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
/home/neo/projects/lvgl/luavgl/deps/lvgl/src/libs/fsdrv/lv_fs_stdio.c:76:24: note: in expansion of macro ‘LV_FS_STDIO_LETTER’
   76 |     fs_drv_p->letter = LV_FS_STDIO_LETTER;
      |                        ^~~~~~~~~~~~~~~~~~
/home/neo/projects/lvgl/luavgl/simulator/lv_conf.h:612:32: note: each undeclared identifier is reported only once for each function it appears in
  612 |     #define LV_FS_STDIO_LETTER LV_FS_STDIO_PLAT_LETTER     /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
/home/neo/projects/lvgl/luavgl/deps/lvgl/src/libs/fsdrv/lv_fs_stdio.c:76:24: note: in expansion of macro ‘LV_FS_STDIO_LETTER’
   76 |     fs_drv_p->letter = LV_FS_STDIO_LETTER;