2022-05-09 10:18:10 +08:00
|
|
|
# 源码安装
|
2021-12-23 16:10:04 +08:00
|
|
|
|
2022-05-09 10:18:10 +08:00
|
|
|
如果环境允许(网络良好且宿主机强劲),我们建议使用[docker 方式](build_from_docker.md)。
|
2022-01-25 15:11:50 +08:00
|
|
|
|
2022-05-09 10:18:10 +08:00
|
|
|
## 下载
|
2021-12-23 16:10:04 +08:00
|
|
|
|
2022-05-09 10:18:10 +08:00
|
|
|
```bash
|
|
|
|
git clone -b master git@github.com:open-mmlab/mmdeploy.git --recursive
|
|
|
|
```
|
2021-12-23 16:10:04 +08:00
|
|
|
|
2022-05-09 10:18:10 +08:00
|
|
|
### FAQ
|
2022-03-28 13:45:08 +08:00
|
|
|
- 如果由于网络等原因导致拉取仓库子模块失败,可以尝试通过如下指令手动再次安装子模块:
|
2021-12-23 16:10:04 +08:00
|
|
|
|
|
|
|
```bash
|
2022-03-28 13:45:08 +08:00
|
|
|
git clone git@github.com:NVIDIA/cub.git third_party/cub
|
|
|
|
cd third_party/cub
|
|
|
|
git checkout c3cceac115
|
2021-12-23 16:10:04 +08:00
|
|
|
|
2022-03-28 13:45:08 +08:00
|
|
|
# 返回至 third_party 目录, 克隆 pybind11
|
|
|
|
cd ..
|
|
|
|
git clone git@github.com:pybind/pybind11.git pybind11
|
|
|
|
cd pybind11
|
|
|
|
git checkout 70a58c5
|
2021-12-23 16:10:04 +08:00
|
|
|
```
|
|
|
|
|
2022-03-28 13:45:08 +08:00
|
|
|
- 如果以 `SSH` 方式 `git clone` 代码失败,您可以尝试使用 `HTTPS` 协议下载代码:
|
2021-12-23 16:10:04 +08:00
|
|
|
|
|
|
|
```bash
|
2022-03-28 13:45:08 +08:00
|
|
|
git clone -b master https://github.com/open-mmlab/mmdeploy.git MMDeploy
|
|
|
|
cd MMDeploy
|
|
|
|
git submodule update --init --recursive
|
2022-05-09 10:18:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
## 编译
|
|
|
|
|
2022-03-28 13:45:08 +08:00
|
|
|
根据您的目标平台,点击如下对应的链接,按照说明编译 MMDeploy
|
2022-05-09 10:18:10 +08:00
|
|
|
- [Linux-x86_64](linux-x86_64.md)
|
|
|
|
- [Windows](windows.md)
|
|
|
|
- [Android-aarch64](android.md)
|
2022-06-07 19:04:29 +08:00
|
|
|
- [NVIDIA Jetson](jetsons.md)
|