使用STM32MP135x-DK进行lvgl9.1,显示屏设备节点使用的/dev/dri/card0
LV_USE_LINUX_FBDEV 0
LV_USE_LINUX_DRM 1
但是在编译时出现如下报错,但是在st sdk里面是能找到drm.h的
dx@dx:~/STM32MPU_workspace/Developer-Package/my_workspace/lv_port_linux/build$ source $HOME/STM32MPU_workspace/Developer-Package/SDK/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabidx@dx:~/STM32MPU_workspace/Developer-Package/my_workspace/lv_port_linux/build$ make[ 0%] Building C object lvgl/CMakeFiles/lvgl.dir/src/drivers/display/drm/lv_linux_drm.c.oIn file included from /home/dx/STM32MPU_workspace/Developer-Package/my_workspace/lv_port_linux/lvgl/src/drivers/display/drm/lv_linux_drm.c:21:/home/dx/STM32MPU_workspace/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory 40 | #include <drm.h> | ^~~~~~~compilation terminated.make[2]: *** [lvgl/CMakeFiles/lvgl.dir/build.make:1530: lvgl/CMakeFiles/lvgl.dir/src/drivers/display/drm/lv_linux_drm.c.o] Error 1make[1]: *** [CMakeFiles/Makefile2:162: lvgl/CMakeFiles/lvgl.dir/all] Error 2make: *** [Makefile:136: all] Error 2 |