Getting "no such file or directory" for lfs and lvgl when upgrading to 2.6.1

I just upgraded my nRF Connect for VSC to 2.6.1 and now am getting these errors:

/opt/nordic/ncs/v2.6.1/zephyr/include/zephyr/fs/littlefs.h:14:10: fatal error: lfs.h: No such file or directory
   14 | #include <lfs.h>
      |          ^~~~~~~

and 

/Users/lj/Projects/GitHub/lj/test1/src/main.c:9:10: fatal error: lvgl.h: No such file or directory
    9 | #include <lvgl.h>

I saw this as well:

warning: ST7789V (defined at drivers/display/Kconfig.st7789v:6) was assigned the value 'y' but got
the value 'n'. Check these unsatisfied dependencies: DISPLAY (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V and/or look up ST7789V in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.

but I have CONFIG_DISPLAY=y in the prj.conf. This also followed but could be related to the prior error:

warning: The choice symbol ST7789V_RGB565 (defined at drivers/display/Kconfig.st7789v:24) was
selected (set =y), but no symbol ended up as the choice selection. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ST7789V_RGB565 and/or look up
ST7789V_RGB565 in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.

  • I had a problem with a second configuration file, which was being used instead of the prj.conf. It was nrf5340dk_nrf5340_cpuapp.conf and in the root directory.

    Originally I had it in there because I needed different configurations added for different builds. In this case a ST7789 display in one build configuration vs gc9x01x. I thought they were merged, but it looks like it used nrf5340dk_nrf5340_cpuapp.conf and prj.conf.

Related