Can't build lvgl micropython for Raspberry Pi Pico W

I have been trying to figure out why this won’t build. I’ve just been following the steps listed here: GitHub - lvgl/lv_micropython: Micropython bindings to LVGL for Embedded devices, Unix and JavaScript under the section Raspberry Pi Pico port.
The steps are as follows:

  1. git clone
  2. cd lv_micropython
  3. git submodule update --init --recursive lib/lv_bindings
  4. make -C ports/rp2 BOARD=PICO submodules
  5. make -j -C mpy-cross
  6. make -j -C ports/rp2 BOARD=PICO USER_C_MODULES=../../lib/lv_bindings/bindings.cmake

When I try running step 4, I get an error.

<current_working_directory>make -C ports/rp2 submodules
make: Entering directory 'current_working_directory/ports/rp2'
# Run the standard submodules target with minimum required submodules above
process_begin: CreateProcess(NULL, # Run the standard submodules target with minimum required submodules above, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:36: submodules] Error 2
make: Leaving directory 'current_working_directory/ports/rp2'

It says that the system cannot find the file specified, but I’m not sure what it needs. I just cloned all the files it should be looking for, right? Sorry if this is a dumb question, I’m a little new to this. Thanks

you are not running step 4.

This is step 4

make -C ports/rp2 BOARD=PICO submodules

not this

make -C ports/rp2 submodules

see the missing part?

Thanks, I don’t know how I missed that! I tried running the new command but it still outputs the exact same message.

Got to do a “make clean” in ports/rp2 directory or “make -C ports/rp2 clean” in lv_micropython directory before attempting a new build…

run this command

make -C ports/rp2 BOARD=PICO clean

and then try it again

make -C ports/rp2 BOARD=PICO submodules

I want to also make sure you are in the right folder when you run that. You need to be in the lv_micropython folder and not in lv_micropython/ports/rp2 If you are in the later then you can use this command

make BOARD=PICO submodules