Hi All,
I’m new to this forum, new to LVGL and pretty new to building C code.
What I’m trying to achieve is to get LVGL running on a Raspberry Pi Pico with an ILI9488 display and XPT2046 touch controller (I don’t care too much about the touch functionality for now, because I’m building a console with five rotary encoders and four buttons).
So far I haven’t been able to build lv_micropython. Building mpy-cross worked like a charm, but not the rp2 port. I’ve found to different instructions for how to do it and I’ve tried them both:
The first one I found in README.md:
Raspberry Pi Pico port
This port uses Micropython infrastructure for C modules and
USER_C_MODULES
must be given:cd ports/rp2 make USER_C_MODULES=../../lv_bindings/bindings.cmake
This returns the following error:
[ -d build-PICO ] || cmake -S . -B build-PICO -DPICO_BUILD_DOCS=0 -DMICROPY_BOARD=PICO -DUSER_C_MODULES=…/…/lv_bindings/bindings.cmake
/bin/sh: 1: cmake: not found
make: *** [Makefile:18: all] Error 127
The second one I found in ports/mp2/README.md:
Building of the RP2 firmware is done entirely using CMake, although a simple
Makefile is also provided as a convenience. To build the firmware run (from
this directory):
$ make submodules $ make clean $ make
‘make submodules’ and ’make clean’ work, but ‘make’ gives the following error:
[ -d build-PICO ] || cmake -S . -B build-PICO -DPICO_BUILD_DOCS=0 -DMICROPY_BOARD=PICO
/bin/sh: 1: cmake: not found
make: *** [Makefile:18: all] Error 127
It seems that both approaches give a similar error, so my questions is: what is the correct approach to make it work?
Another question I have is how to set the flag ‘LV_COLOR_DEPTH=16’ when building for the RPi Pico?
I’m building on a Rapsberry Pi 400 running the latest version of Raspberry OS (Debian Bullseye) and I cloned the repository using ‘git clone --recurse-submodules https://github.com/lvgl/lv_micropython.git’