「App:Library:LVGL:docs:Porting:Set up a project」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動6行目: | 6行目: | ||
!英文 | !英文 | ||
!自動翻訳 | !自動翻訳 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| | | | ||
| | | | ||
|} | |} | ||
+ | |||
+ | == Get the library == | ||
+ | LVGL is available on GitHub: <nowiki>https://github.com/lvgl/lvgl</nowiki>. | ||
+ | |||
+ | You can clone it or Download the latest version of the library from GitHub. | ||
+ | |||
+ | == Add lvgl to your project == | ||
+ | The graphics library itself is the <code>lvgl</code> directory. It contains a couple of folders but to use <code>lvgl</code> you only need <code>.c</code> and <code>.h</code> files from the <code>src</code> folder. | ||
+ | |||
+ | === Automatically add files === | ||
+ | If your IDE automatically adds the files from the folders copied to the project folder (as Eclipse or VSCode does), you can simply copy the <code>lvgl</code> folder as it is into your project. | ||
+ | |||
+ | === Make and CMake === | ||
+ | LVGL also supports <code>make</code> and <code>CMake</code> build systems out of the box. To add LVGL to your Makefile based build system add these lines to your main Makefile: | ||
+ | LVGL_DIR_NAME ?= lvgl #The name of the lvgl folder (change this if you have renamed it) | ||
+ | LVGL_DIR ?= ${shell pwd} #The path where the lvgl folder is | ||
+ | include $(LVGL_DIR)/$(LVGL_DIR_NAME)/lvgl.mk | ||
+ | For integration with CMake take a look this section of the Documentation. | ||
+ | |||
+ | === Other platforms and tools === | ||
+ | |||
2022年6月21日 (火) 20:07時点における版
https://docs.lvgl.io/8.2/porting/project.html
Set up a project
英文 | 自動翻訳 |
---|---|
Get the library
LVGL is available on GitHub: https://github.com/lvgl/lvgl.
You can clone it or Download the latest version of the library from GitHub.
Add lvgl to your project
The graphics library itself is the lvgl
directory. It contains a couple of folders but to use lvgl
you only need .c
and .h
files from the src
folder.
Automatically add files
If your IDE automatically adds the files from the folders copied to the project folder (as Eclipse or VSCode does), you can simply copy the lvgl
folder as it is into your project.
Make and CMake
LVGL also supports make
and CMake
build systems out of the box. To add LVGL to your Makefile based build system add these lines to your main Makefile:
LVGL_DIR_NAME ?= lvgl #The name of the lvgl folder (change this if you have renamed it) LVGL_DIR ?= ${shell pwd} #The path where the lvgl folder is include $(LVGL_DIR)/$(LVGL_DIR_NAME)/lvgl.mk
For integration with CMake take a look this section of the Documentation.