添加linux安装protoc脚本

readme更新
This commit is contained in:
walker-sheng 2024-08-29 14:49:32 +08:00
parent ef0c9b089c
commit 9dee9892e8
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# 项目说明
protobuf 数据结构定义作为git子模块使用
## protoc环境安装说明
Linux下执行
```
sudo chmod +x install_protoc_linux.sh
sudo ./install_protoc_linux.sh
```

9
install_protoc_linux.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Copy the protoc-27.4-linux-x86_64 file to the home directory
cp -f ./protoc/protoc-27.4-linux-x86_64/bin/protoc /usr/local/bin/
cp -r -f ./protoc/protoc-27.4-linux-x86_64/include/* /usr/local/include/
chmod +x /usr/local/bin/protoc
# 验证安装
protoc --version

View File

@ -1,6 +1,6 @@
syntax = "proto3";
package rtss.basic_signal_data;
package basic_signal_data;
message Storage {
Canvas canvas = 1;