ubuntu22.04 系统 esp-matter 编译问题

发布时间 2023-04-07 10:37:33作者: K_Code

 一. 获取 Matter仓库

#git clone --recursive https://github.com/espressif/esp-matter.git
若过程有报错,请执行
#cd esp-matter
#git submodule update --init --recursive -f
#加了一个-f,强制下载,在下载过程中,会因为子模块迭代的太多,报错文件名字过长之类的,保险起见加一个-f
#cd esp-matter/
#./install.sh

因为强制下载导致有些软连接失效需要重新 指定一下ln -s 源地址 目标地址
报错显示"Failed to install zap-cli",
解决方法:#sudo apt install libreadline-dev
#cd esp-matter/
#./install.sh

报错

Downloading and installing packages into local source directory:
Setting up CIPD package manager...[-][P17790 10:20:40.653 client.go:311 W] RPC failed transiently. 
Will retry in 1s {"error":"rpc error: code = Internal desc = prpc: when sending request:
Post \"https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion\": dial tcp
[2a03:2880:f102:183:face:b00c:0:25de]:443: i/o timeout
", "host":"chrome-infra-packages.appspot.com",
"method":"ResolveVersion", "service":"cipd.Repository", "sleepTime":"1s"}

解决的方法

export HTTPS_PROXY=127.0.0.1:7890