Skip to content

Commit be2bfa7

Browse files
committed
fix(build): update ZLMediaKit repository URL in build script
- Changed the repository URL in `build_zlm.sh` from Gitee to GitHub. - Ensures users clone the correct source for building the project.
1 parent 8bfc3df commit be2bfa7

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22

33
ZLMediaKit rust api
44

5-
### build
5+
## 构建说明
66

7-
- 依赖
7+
### 依赖
88

9-
1. [rust-bindgen](https://github.com/rust-lang/rust-bindgen)需要安装`Clang`环境
9+
1. [rust-bindgen](https://github.com/rust-lang/rust-bindgen)
10+
需要安装 `Clang` 环境。
11+
参考:[bindgen requirements](https://rust-lang.github.io/rust-bindgen/requirements.html)
1012

11-
- 参考链接:https://rust-lang.github.io/rust-bindgen/requirements.html
13+
2. [ZLMediaKit](https://github.com/ZLMediaKit/ZLMediaKit)
14+
参考:[快速开始](https://github.com/ZLMediaKit/ZLMediaKit/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)
1215

13-
2. [ZLMediaKit](https://github.com/ZLMediaKit/ZLMediaKit)
14-
- 参考链接:https://github.com/ZLMediaKit/ZLMediaKit/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B
16+
- 编译并安装好 ZLMediaKit 后,设置环境变量 `ZLM_DIR`,该路径需包含 ZLMediaKit`include``lib``bin` 文件夹,并将 `bin` 添加到 `PATH` 环境变量中。
17+
- 如果未设置 `ZLM_DIR``rszlm-sys` 会自动拉取 ZLMediaKit 源码进行编译。
1518

16-
- 编译好并且 install`ZLMediaKit`之后,设置环境变量`ZLM_DIR`,该路径包含 ZLMediaKit 的`include``lib`以及`bin`文件夹,并将`bin`设置到`PATH`环境变量中
1719

18-
如果不设置`ZLM_DIR`环境变量,rszlm-sys 会拉取`ZLMediaKit`git 代码进行编译
19-
20-
- 编译
20+
### 编译
2121

2222
```shell
23+
./build_zlm.sh
2324
cargo build
2425
```
2526

@@ -44,3 +45,7 @@ cargo build
4445
```toml
4546
rszlm = { version = "*", features = ["webrtc"] }
4647
```
48+
49+
参考
50+
- [ZLMediaKit](https://github.com/ZLMediaKit/ZLMediaKit)
51+
- [rust-bindgen](https://github.com/rust-lang/rust-bindgen)

build_zlm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit
1+
git clone --depth 1 https://github.com/ZLMediaKit/ZLMediaKit.git
22
cd ZLMediaKit
33
git submodule update --init --recursive
44
mkdir build

0 commit comments

Comments
 (0)