# lvgl_linux_simulator **Repository Path**: lcg0115/lvgl_linux_simulator ## Basic Information - **Project Name**: lvgl_linux_simulator - **Description**: Linux 环境下的 LVGL 模拟器 - **Primary Language**: C - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-11-05 - **Last Updated**: 2022-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 介绍 - lvgl_linux 是参考官方实现的一个在 Linux 平台下使用 SDL2 的 LVGL 模拟器 - 目前支持: - 基于 Linux 线程的 lvgl 心跳及任务处理 - 基于 Linux 操作的文件系统 lvgl_fs - 支持 freetype,英文字体:Times New Roman,中文字体:新宋体 ## 编译及运行 ```shell cd lvgl_linux ./make.sh && ./build/lvgl_linux ``` ## 问题解决 ### 1、没有安装 SDL2 - 报错信息如下 ```shell CMake Error at CMakeLists.txt:18 (find_package): By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SDL2", but CMake did not find one. Could not find a package configuration file provided by "SDL2" with any of the following names: SDL2Config.cmake sdl2-config.cmake Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set "SDL2_DIR" to a directory containing one of the above files. If "SDL2" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/zeepunt/code/lvgl_linux_simulator/build/CMakeFiles/CMakeOutput.log". make: *** No targets specified and no makefile found. Stop. ``` - 解决方案 ```shell sudo apt install libsdl2-dev ```