克隆官网esp32和LVGL工程lv_port_esp32(解决子模块克隆失败的问题)
#直接克隆会出很多错
#先在giteee上拷贝一份,再克隆gitee上的
git clone https://gitee.com/zsy26226/lv_port_esp32.git
#打开lv_port_esp32文件夹下的 .gitmodules 文件,把子模块的git仓库也都拷贝一份到gitee中,并替换网址
#替换后是这样的
[submodule "lv_examples"]
path = components/lv_examples/lv_examples
url = https://gitee.com/zsy26226/lv_examples.git
branch = release/v7
[submodule "components/lvgl_esp32_drivers"]
path = components/lvgl_esp32_drivers
url = https://gitee.com/zsy26226/lvgl_esp32_drivers.git
[submodule "components/lvgl"]
path = components/lvgl
url = https://gitee.com/zsy26226/lvgl.git
#进入目录
cd lv_port_esp32
#递归克隆,更新子模块
git submodule update --init --recursive