File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 22
33ZLMediaKit 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
2324cargo 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 )
Original file line number Diff line number Diff line change 1- git clone --depth 1 https://gitee .com/xia-chu /ZLMediaKit
1+ git clone --depth 1 https://github .com/ZLMediaKit /ZLMediaKit.git
22cd ZLMediaKit
33git submodule update --init --recursive
44mkdir build
You can’t perform that action at this time.
0 commit comments