File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - __ 若您要构建指定版本的 Phira,请前往 [ release] ( https://github.com/TeamFlos/phira/releases ) 页面在 Assets
1212 中选择下载 ` Source code (tar.gz) ` 到本地,解压到任意路径即可。__
1313 - __ 警告:为了防止玄学问题,我们不建议路径中包含除了 ASCII 编码包含字符以外的任何字符。__
14- 3 . 静态库文件:您可以使用 ` ./prpr-avc/pull-static-lib.sh ` 来拉取静态库文件 。
14+ 3 . 静态库文件:参阅 [ 静态库 ] ( ./StaticLib.md#获取 ) 页 。
15154 . 构建过程需要库文件补充,输入以下命令即可(以Debian分支系统为例):
1616``` shell
1717sudo apt update
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ git clone https://github.com/TeamFlos/phira
3939git clone https://github.com/TeamFlos/phira-ohos
4040```
4141
42- 2 . 静态库文件:您可以使用 ` ./prpr-avc/pull-static-lib.sh ` 来拉取静态库文件 。
42+ 2 . 静态库文件:参阅 [ 静态库 ] ( ./StaticLib.md#获取 ) 页 。
4343
44443 . 添加 ` config.toml ` ,配置 cmake 位置,此部分为编译 ohos 平台的 phira 所需要的。
4545
Original file line number Diff line number Diff line change 33## 介绍
44- 此文件为 Phira 使用的用于解码视频的静态库,现版本静态库文件由 [ 此仓库] ( https://github.com/TeamFlos/prpr-avc-ffmpeg/ ) 提供。
55- Phira 引用的静态库 FFmpeg 版本无需非常严格。
6- - 预编译的静态库可以在 [ prpr-avc-ffmpeg仓库] ( https://github.com/TeamFlos/prpr-avc-ffmpeg ) 的 release 页面获取,但是通常,我们会建议您运行 ` prpr-avc ` 目录下的 ` pull-static-lib.sh ` 脚本自动拉取最新的静态库文件。
76## 构建
8- 参考[ prpr-avc-ffmpeg仓库] ( https://github.com/TeamFlos/prpr-avc-ffmpeg ) 工作流。
7+ 参考[ prpr-avc-ffmpeg仓库] ( https://github.com/TeamFlos/prpr-avc-ffmpeg ) 工作流。
8+ ## 获取
9+
10+ ## 在有bash的系统环境下
11+ - 在克隆的仓库目录中,` cd ` 到 ` prpr-avc ` 目录下,执行 ` bash pull-static-lib.sh ` 即可拉取静态库文件。
12+
13+ ## 在没有bash的系统环境下
14+ - 前往 [ release] ( https://github.com/TeamFlos/prpr-avc-ffmpeg/releases/latest ) 下载对应需要 target 的静态库压缩包文件。
15+ - 将压缩包中的文件解压到 ` prpr-avc\static-lib\%TARGET% ` 目录下即可,没有对应目录请自行创建。
Original file line number Diff line number Diff line change 1414 - __ 警告:为了防止玄学问题,我们不建议路径中包含除了 ASCII 编码包含字符以外的任何字符。__
15153 . perl,您可以在命令提示符(cmd)或者 PowerShell 使用 ` perl -v ` 检查系统是否安装了 perl,如果没有,请搜索并打开
1616 ` MSYS2 UCRT64 ` 输入 ` pacman -S perl ` 安装 perl
17- 4 . 静态库文件:您可以在 ` MSYS2中 ` 使用 ` ./prpr-avc/pull-static-lib.sh ` 来拉取静态库文件 。
17+ 4 . 静态库文件:参阅 [ 静态库 ] ( ./StaticLib.md#获取 ) 页 。
1818
1919## 开始构建
2020
Original file line number Diff line number Diff line change 1212 - __ 如果您无法连接到 GitHub,您也可以使用 git 加速网站提供的加速地址克隆与下载。__
1313 - __ 若您要构建指定版本的 Phira,请前往 release 页面在 Assets 中选择下载 ` Source code(zip) ` 到本地,解压到任意路径即可。__
1414 - __ 警告:为了防止玄学问题,我们不建议路径中包含除了 ASCII 编码包含字符以外的任何字符。__
15- 3 . 静态库文件:您可以使用 ` ./prpr-avc/pull-static-lib.sh ` 来拉取静态库文件,或手动前往 [ prpr-avc-ffmpeg发行页 ] ( https://github.com/TeamFlos/prpr-avc-ffmpeg/releases/latest ) 下载所需要的静态库文件,并手动解压 。
15+ 3 . 静态库文件:参阅 [ 静态库 ] ( ./StaticLib.md#获取 ) 页 。
16164 . 确认您拥有 ` x64 Native Tools Command Prompt for VS 20** ` ,若无此环境,但是已经安装了 cargo,请考虑单独安装
1717 ` Visual Studio 20xx ` ,并在安装时安装 ` MSVC ` 与 ` Windows SDK ` 组件,安装完成后您将会拥有
1818 ` x64 Native Tools Command Prompt for VS 20** ` 环境。
@@ -47,5 +47,4 @@ A. 缺失 Windows SDK,请检查是否正确安装 Windows SDK 后再试
4747
4848Q. 不够具有挑战性
4949
50- A. 这样,你去 [ GNU构建方式] ( ./Windows_Gnu.md ) 吧,稍微难一点点。
51- A2. 你可以去编译静态库,绝对有挑战性,但是我觉得你来找构建指南一定不是为了挑战性吧...
50+ A. 有空多写点代码
Original file line number Diff line number Diff line change 1111 - __ 若您要构建指定版本的 Phira,请前往 [ release] ( https://github.com/TeamFlos/phira/releases ) 页面在 Assets
1212 中选择下载 ` Source code (tar.gz) ` 到本地,解压到任意路径即可。__
1313 - __ 警告:为了防止玄学问题,我们不建议路径中包含除了 ASCII 编码包含字符以外的任何字符。__
14- 3 . 静态库文件:您可以使用 ` ./prpr-avc/pull-static-lib.sh ` 来拉取静态库文件 。
14+ 3 . 静态库文件:参阅 [ 静态库 ] ( ./StaticLib.md#获取 ) 页 。
1515
1616## 开始构建
1717
You can’t perform that action at this time.
0 commit comments