This is a pre-configured Visual Studio project to try LittlevGL on a Windows PC. The project uses the SDL library which is copied and linked to the project, so you can compile it without any extra dependencies. The 64 bit libraries are used so it will work out-of-the-box on 64-bit systems.
Instructions for cloning, building and running the application are found below.
This repos contains other, necessary LittleVGL software repositories as git sub-modules. Those sub-modules are not pulled in with the basic git clone command and they will be needed. There are a couple of ways to pull in those submodules.
This command will clone this top level repo and all submodules in a single step.
git clone --recurse-submodules https://github.com/littlevgl/pc_simulator_sdl_visual_studio.git
If you've already cloned the main repo you can pull in the sub-modules with a second command. Both commands are shown below.
git clone https://github.com/littlevgl/pc_simulator_sdl_visual_studio.git
cd pc_simulator_sdl_visual_studio
git submodule update --init --recursive
Open the pc_simulator_sdl_visual_studio
solution file in Visual Studio. Click on the Local windows Debugger button in the top toolbar. The included project will be built and run, launching from a cmd window.
There are a list of possible test applications in the main.c file. Each test or demo is launched via a single function call. By default the demo_create
function is the one that runs, but you can comment that one out and choose any of the others to compile and run.
Use these examples to start building your own application testing code inside this pc_simulator.
This repository usually has its sub-module references updated shortly after the release of new, major releases of LittlevGL's core lvgl project. If you need to pull in bug fixes in those sub-modules in between major releases you will have to update the references on your own. Be aware that if source files are added or removed in those sub-modules then the visual studio project will most likely need adjusting. See the commit log for this repo for examples of the changes needed when sub-module references are updated.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。