{"id":26814693,"url":"https://github.com/100askteam/lv_100ask_linux_desktop","last_synced_at":"2025-10-26T02:07:01.027Z","repository":{"id":42198277,"uuid":"426843289","full_name":"100askTeam/lv_100ask_linux_desktop","owner":"100askTeam","description":"百问网linux桌面GUI，基于LVGL 8.x。","archived":false,"fork":false,"pushed_at":"2021-11-26T07:09:10.000Z","size":4110,"stargazers_count":40,"open_issues_count":1,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T02:16:36.278Z","etag":null,"topics":["100ask","framebuffer","gui","linux","lvgl"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/100askTeam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-11T02:18:59.000Z","updated_at":"2025-03-21T05:35:06.000Z","dependencies_parsed_at":"2022-09-01T07:11:26.803Z","dependency_job_id":null,"html_url":"https://github.com/100askTeam/lv_100ask_linux_desktop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100askTeam%2Flv_100ask_linux_desktop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100askTeam%2Flv_100ask_linux_desktop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100askTeam%2Flv_100ask_linux_desktop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100askTeam%2Flv_100ask_linux_desktop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/100askTeam","download_url":"https://codeload.github.com/100askTeam/lv_100ask_linux_desktop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487643,"owners_count":21438629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["100ask","framebuffer","gui","linux","lvgl"],"created_at":"2025-03-30T02:16:40.692Z","updated_at":"2025-10-26T02:06:55.990Z","avatar_url":"https://github.com/100askTeam.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://www.100ask.net\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg width=\"100\" src=\"http://wechatapppro-1252524126.file.myqcloud.com/appTVs2sJfo3933/image/b_u_5fb1e35c3d801_CUAzKqf9/knhb7p8x0j7u.png\" alt=\"100ASK logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e100ASK Linux LVGL Desktop\u003c/h2\u003e\n\n100ASK Linux LVGL desktop 是一个 MIT 许可的开源项目。本项目主要目的是为大家提供一个嵌入式Linux GUI的参考解决方案：低内存占用、简洁美观的视觉效果、稳定且拓展性强的项目架构。\n\n# 介绍(Introduction)\n\n100ASK Linux LVGL desktop 是一个 MIT 许可的开源项目。该项目由 [百问网团队](https://www.100ask.net) 研发、发布，目的是为 100ASK_IMX6ULL、100ASK_STM32MP157开发板提供提供一个基础GUI，使用Makefile组织管理源码、基于GCC编译。通过修改少量的配置便在其他Linux、Linux开发板上运行。\n\n项目效果演示视频：[https://www.bilibili.com/video/BV1nT4y1R7rz](https://www.bilibili.com/video/BV1nT4y1R7rz)\n\n![https://img-blog.csdnimg.cn/da2dfa5b8a624d8f9390c4f3ad9847fb.jpg](https://img-blog.csdnimg.cn/da2dfa5b8a624d8f9390c4f3ad9847fb.jpg)\n\n## 快速开始\n\n如果使用的是[百问网IMX6ULL开发板](https://item.taobao.com/item.htm?id=610613585935)，那么你可以通过直接更新固件，最快获得体验。\n\n烧写工具及镜像获取：\n\n- 百度云：链接： [https://pan.baidu.com/s/17QWdasg3lcSb82JK4uUJuQ](https://pan.baidu.com/s/17QWdasg3lcSb82JK4uUJuQ)  提取码： root \n- 不限速下载地址： [https://download.csdn.net/download/qq_35181236/40774994](https://download.csdn.net/download/qq_35181236/40774994)\n\n或者选择按照下面的章节按步骤开始。\n\n### 编译项目\n\n1. 配置开发环境\n    本项目的开发环境为：` VMware Workstation + Ubuntu` ，\n    如果是学习韦东山嵌入式Linux教程的小伙伴可以跳过这一步，\n    需要搭建开发环境的请点击连接查看详细教程：xxxxxx 。\n2. 配置交叉编译环境。如果工具链没有配置正确，可能会导致编译不通过，即使编译通过了也不能在目标平台上运行，请注意检查运行环境，编译环境。\n3. 项目用到了dbus库，但是由于工具链可能有问题(暂未解决)，导致我们需要手动指定dbus的头文件路径，因此我们需要在工具链中进行一些操作：\n\n```shell\n\nbook@100ask:~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ ls dbus-\ndbus-1.0/   dbus-c++-1/ \nbook@100ask:~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ pwd\n/home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include\nbook@100ask:~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ cp dbus-1.0/dbus/ -rfd .\nbook@100ask:~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ sync\nbook@100ask:~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ ls dbus\ndbus/       dbus-1.0/   dbus-c++-1/ \nbook@100ask:~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ ls dbus\n\n```\n\n\u003e 编译的时候如果报错： `fatal error: dbus/dbus.h No such file or directory` 应该回来看这里的操作，按照自己的sdk路径参考修改即可。\n\n4. 先克隆主仓库：git clone xxxxxxxx\n5. 克隆主仓库后，同步子仓库模块： git submodule update --init --recursive\n6. 后续更新子仓库模块： git submodule update --remote\n7. 进入仓库根目录 `xxxxx` ，执行 `make clean \u0026\u0026 make` 开始编译。\n8. 提升编译速度。全速编译命令： `make clean \u0026\u0026 make -j$(nproc) RUN_JOBS=-j$(nproc)` \n    \"make -j$(nproc)\" 的 **$(nproc)** 是指定编译 **主桌面程序** 的内核线程数，命令会自动获取系统支持最大的线程数，可以手动指定线程数，如： -j16 ，\n    \"RUN_JOBS=j$(nproc)\"的 **$(nproc)** 是指定编译 **APP程序** 的内核线程数，命令会自动获取系统支持最大的线程数，可以手动指定线程数，如： -j16 ，\n    Linux 下输入 `nproc` 命令返回的数字是你机器的线程数。\n\n#### 编译其他板子\n\n配置好交叉编译工具链之后，只需要稍作修改便可以在 100ASK_IMX6ULL_MINI、100ASK_STM32MP157 开发板上运行：\n1. 参考[上面](#编译项目)的第三步操作\n2. 修改 Makefile 变量 `CFLAGS` 的这两个链接路径，指定为你的路径：\n\n```shell\n\n-I ~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include -I ~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/dbus-1.0/include\n\n```\n\n---------------\n\n示例：比如使用 100ASK_IMX6ULL_MINI开发板，并且是按照韦东山教程配套的资料文档配置好了工具链之后这样操作：\n\n1. 复制 dbus 库：\n\n```shell\n\nbook@100ask:~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ ls dbus-\ndbus-1.0/   dbus-c++-1/ \nbook@100ask:~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ pwd\n/home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include\nbook@100ask:~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ cp dbus-1.0/dbus/ -rfd .\nbook@100ask:~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ sync\nbook@100ask:~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ ls dbus\ndbus/       dbus-1.0/   dbus-c++-1/ \nbook@100ask:~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include$ ls dbus\n\n```\n\n2. 修改 Makefile 变量 `CFLAGS` 的这两个链接路径，指定为你的路径：\n\n```shell\n\n-I ~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/include -I ~/100ask_imx6ull-mini-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/dbus-1.0/include\n\n```\n\n\n### 如何运行\n1. 编译出来的可执行程序会放在项目根目录的 `bin` 目录下，将里面的可执行文件全部传到开发板文件系统中(如家目录)，\n2. 将 `assets/icon` 的 **icon** 目录及其中的所有图片文件传到开发板的文件系统中( **icon** 目录必须和可执行程序在同一级目录)\n3. 修改 `assets/services` 中的所有 `.services` 文件，假如你将可执行文件放在了家目录，那么就改成这样：\n```shell\n[D-BUS Service]\nName=net.ask100.lvgl.About\nExec=~/general_About # 原来是这样的Exec=/usr/share/100ask_desktop/general_About\n```\n4. 将修改后 `assets/services`  中的所有 `.services` 文件，复制到开发板的 dbus 服务目录下，本项目的目录是： `/usr/share/dbus-1/services/` \n5. 在执行之前初始化 dbus 运行环境，执行： export $(dbus-launch)\n6. 修改可执行文件的权限： sudo chmod  +x  ~/*\n7. 最后在可执行文件的目录下执行桌面程序： ./100ask_lvgl_Main \n8. 尽情享受吧\n\n## 仓库子模块说明\n\n- [x] lv_100ask_demos：百问网 LVGL 示例仓库 (平台无关，可以在支持LVGL的任意平台编译运行)\n- [x] lv_100ask_modules：百问网模块仓库 (此仓库为本项目而设，目的是为了提供一些通用的模块供本项目使用，并减少代码量和项目维护难度)\n- [ ] lv_demos：LVGL 官方的示例(LVGL官方仓库)\n- [x] lv_drivers：用于 LVGL 嵌入式 GUI 库的 TFT 和触摸板驱动程序(LVGL官方仓库)\n- [x] lvgl：LVGL库，项目基于此仓库(LVGL官方仓库)\n\n\u003e 上面 √ 选上的是必选仓库，如果不需要可选仓库，请注意修改配置文件和 Makefile。\n\n# 项目架构\n\n## 项目框图\n\n![项目框图](https://img-blog.csdnimg.cn/7a335dabd8ea4642bc7ba60f19d80fe8.jpg)\n\n## 目录说明\n``` shell\n├── assets  # 程序运行所需的资源，二次开发需要将里面的文件copy开发板的文件系统中\n│   ├── icon # 桌面背景和APP图标(默认存放位置：/usr/share/100ask_desktop/assets/icon)。需要将 assets/icon 文件夹复制到主桌面程序的同级目录(默认存放位置：/usr/share/100ask_desktop)下，背景、图标可以替换，注意名称要和之前的一样。\n│   └── services # DBus服务列表。增加APP后需要参考里面的格式新建服务文件，并将服务文件(不是整个文件夹)copy到dbus服务文件目录下：  /usr/share/dbus-1/services/\n├── lv_100ask_app # APP程序(二次开发新的APP主要在这里添加自己的APP)\n│   └── src\n│       ├── general_app # 平台无关的通用APP\n│       │   ├── general_2048_game # APP程序的目录\n│       │   │   ├── obj # 编译过程输出文件存放在这里(执行后 make clean 会清除)，可执行文件放在项目根目录的 bin 目录下\n│       │   │   └── src\t# APP程序代码\n│       │   ├── .......\n│       └── imx6ull_app # 硬件相关的APP\n│           ├── imx6ull_set_lan # APP程序的目录\n│           ├── .......\n├── lv_100ask_demos # 百问网平台无关的通用APP\n│   ├── docs\n│   └── src\n│       ├── lv_100ask_demo_2048\n│       ├── ......\n├── lv_100ask_modules # 百问网模块仓库 (此仓库为本项目而设，目的是为了提供一些通用的模块供本项目使用，并减少代码量和项目维护难度)\n│   ├── docs\n│   └── src\n│       ├── lv_100ask_boot_animation # 开机动画模块\n│       ├── lv_100ask_dbus_handler # DBus消息处理模块\n│       ├── lv_100ask_dbus_message_dispatch # 消息分发模块(目前是桌面主程序专用)\n│       ├── lv_100ask_demo_assistive_touch # 辅助触摸悬浮球模块\n│       └── lv_100ask_demo_init_icon # 桌面图标初始化模块(桌面主程序专用)\n├── lv_demos # LVGL 官方的示例(LVGL官方仓库)\n├── lv_drivers # 用于 LVGL 嵌入式 GUI 库的 TFT 和触摸板驱动程序(LVGL官方仓库)\n├── lvgl # LVGL库，项目基于此仓库(LVGL官方仓库)\n├── lv_lib_png # 显示png图片库(LVGL官方仓库)\n├── bin\t# 编译完成后，所有的可执行文件存放在这里(执行后 make clean 会清除)\n└── obj # 桌面程序的编译过程输出文件存放在这里(执行后 make clean 会清除)，可执行文件放在项目根目录的 bin 目录下\n```\n\n## 如何添加自己的程序\n\n参考 `lv_100ask_app/` 在原有基础上追加或创建自己的应用。\n\n1. 参考 `lv_100ask_app/src` 目录创建新的目录\n2. 修改 `lv_100ask_app/lv_100ask_app.h` 包含添加你的应用路径。\n3. 最后需要修改项目根目录的Makefile文件，在 SRC_DIR 变量添加自己创建的应用\n\n\n# 文档(Documentation)\n\nLVGL 文档教程：[http://lvgl.100ask.net/](http://lvgl.100ask.net/)\n\nLVGL 视频教程： TODO\n\n# 技术支持(FAQs)\n\n欢迎来论坛发帖交流：[http://bbs.100ask.net/](http://bbs.100ask.net/)\n\n# Issues\nTODO\n# Changelog\nTODO\n\n# License\nMIT\n\nCopyright © 2008-2020 深圳百问网科技有限公司 All Rights Reserved.\n\n\n\n# 关于作者\n- 百问网官网：[http://www.100ask.net](http://www.100ask.net)\n- 百问网官方wiki：[http://wiki.100ask.org](http://wiki.100ask.org)\n- 百问网官方论坛：[http://bbs.100ask.net](http://bbs.100ask.net)\n- 微信公众号：百问科技\n- CSDN：[https://edu.csdn.net/lecturer/90](https://edu.csdn.net/lecturer/90)\n- B站：[https://space.bilibili.com/275908810](https://space.bilibili.com/275908810)\n- 知乎：[https://www.zhihu.com/people/www.100ask/](https://www.zhihu.com/people/www.100ask/)\n- 微博：[https://weibo.com/888wds](https://weibo.com/888wds)\n- 电子发烧友学院：[http://t.elecfans.com/teacher/3.html](http://t.elecfans.com/teacher/3.html)\n\n\n公司名称：深圳百问网科技有限公司\n-  电话: 0755-86200561\n-  技术支持邮箱: weidongshan@qq.com \n-  地        址: 广东省深圳市龙岗区布吉南湾街道平吉大道建昇大厦B座\n-  邮        编: 518114 \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100askteam%2Flv_100ask_linux_desktop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F100askteam%2Flv_100ask_linux_desktop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100askteam%2Flv_100ask_linux_desktop/lists"}